How AI is Transforming the Legal Sector