If a contract contains unlawful terms then as far as the law is concerned, the contract does not contain the terms in the first place. So you are well within your rights to ignore such terms.
Put differently, my employer pays me to write code, not to review the validity of terms in their contract. If their legal department is incompetent then that's their problem not mine.
If they expect me to perform (or not perform) actions on their behalf when I am not at work, and especially once my employment ends, then they are free to offer a consideration in exchange.
Put differently, my employer pays me to write code, not to review the validity of terms in their contract. If their legal department is incompetent then that's their problem not mine.
If they expect me to perform (or not perform) actions on their behalf when I am not at work, and especially once my employment ends, then they are free to offer a consideration in exchange.