The Legal Aspects of Digital Transformation