If any part of a single consideration for one or more objects, or of several considerations for a single object, is unlawful, the entire contract is void.
Ca. Civ. Code § 1608
If any part of a single consideration for one or more objects, or of several considerations for a single object, is unlawful, the entire contract is void.
Ca. Civ. Code § 1608