Nondisclosure agreements can stop intellectual property from walking out the door with departing employees, but only if companies draft them correctly.

In an attempt to cover all of a company’s confidential bases, NDA drafts can be overly broad, using language that may not hold up in courts of states such as California and New York, where employees legally can’t be stopped from things like discussing their salary with colleagues.