An agreement doesn’t stand above the law. I’m pretty sure that clause is void for, basically, being illegal. Not a lawyer though.