Financial engineering AI legal contingencies