By that logic, every employee of Apple/Google/Meta or at least the ones working on related projects should be handled a fine every time Apple/Google/Meta gets fined by the EU for breaking the law/abusing its position? The are violating the law after all.
I don't see how to conclude that from my logic.
An equivalent one is a company not allowing Google employees to use their services for whatever reason. That's fine and acceptable.
You mean that document saying something like: "we can do what we want, no recourse possible"?
That should be forbidden too.
I'm pretty sure there's a line there about reverse engineering
You can put whatever you want in a contract, and the other party can sign it, but that is not enough for it to be valid. Contract law usually has call outs against obviously absurd, overreaching, or "I own everything and anything" clauses