Digital transformation in the society: how to safeguard rights and freedoms?