California Codes, Civil Code - CIV, Division 3 — Obligations, Part 2 — Contracts, Title 1 — Nature of a Contract, Chapter 4 — Object of a Contract, Section 1599
Where a contract has several distinct objects, of which one at least is lawful, and one at least is unlawful, in whole or in part, the contract is void as to the latter and valid as to the rest.
Notes
Establishes that when a contract contains several distinct objects and at least one is lawful while at least one is unlawful in whole or part, only the unlawful object is void and the remainder stays valid. The rule therefore preserves lawful distinct portions rather than voiding the entire multi-object contract.
Use as reference
Lexinter.net | California Code, Civil Code - CIV § 1599 | https://laws.lexinter.net/codes/california/civil-code/division-3/part-2/title-1/chapter-4/section-1599