Legality depend on the place (country, state). They&#x27;re legal in some cases but with restriction.<p>For example in France it&#x27;s legal, but with conditions:<p>* it must be limited in time (e.g. usually max 2 years) and space (e.g. same city, not the whole country)<p>* if they want to &quot;activate&quot; the non-compete they have to pay you something like 30% of what you were making for the time they want to block you<p>* it shouldn&#x27;t prevent you to get a job, meaning they can prevent you from going to the direct competitor but not block you for the whole industry