California Codes, Civil Code - CIV, Division 3 — Obligations, Part 2 — Contracts, Title 1 — Nature of a Contract, Chapter 5 — Consideration, Section 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.
Notes
Establishes that an entire contract is void when any part of a single consideration supporting one or more objects is unlawful, or when any of several considerations supporting a single object is unlawful. An unlawful portion of the relevant consideration therefore invalidates the whole contract under either stated configuration.
Use as reference
Lexinter.net | California Code, Civil Code - CIV § 1608 | https://laws.lexinter.net/codes/california/civil-code/division-3/part-2/title-1/chapter-5/section-1608