AI legal frameworks and financial solutions