Cal. Civ. Code § 1607
The consideration of a contract must be lawful within the meaning of Section 1667.