Legal framework for data transfer