I am not an attorney, but have been around tons. One thing you learn in Law 101 is that a contract that is antithetical to a law, or in other words enforces something illegal, is null and void, or perhaps that clause or section of the contract is null and void.
Good thing to learn more about or ask an attorney about.