I quit a job I'd been at for well over a decade, because the company's new owner was making everyone sign noncompete, non-disparagement, and intellectual property contracts. They would own everything I invented while employed with them, even if I did it at home on my own time, if in their opinion it had anything to do with their business. I checked with a lawyer first, who said it was probably all enforceable in my state.