California Business and Professions Code Section 16600
CA Bus & Prof Code § 16600 (2017)
Except as provided in this chapter, every contract by which anyone is restrained from engaging in a lawful profession, trade, or business of any kind is to that extent void.