The judicial systems in the United States and England are based on civil law.
A contract is not enforceable if the terms of the contract call for breaking the law.
Legal Agreements Around the World