Part I: Foundations of Generative AI in Law