ai legal liability for firms