Legal Regulation of Generative AI