A legal framework for AI training data—from first principles to the Artificial Intelligence Act | Synapse