The legal landscape of generative AI