California Code
TITLE 4 - UNLAWFUL CONTRACTS
Section 1667.

1667. That is not lawful which is:

1. Contrary to an express provision of law;

2. Contrary to the policy of express law, though not expressly prohibited; or,

3. Otherwise contrary to good morals.

(Enacted 1872.)