legal framework AI