> No more than a prenup, or a restraining order.
Not sure what you're trying to say, as laws vary wildly from locality to locality.
The concept, in California, is called "severability". This describes the condition. Invalidating one part of a mutual contract does not invalidate other parts. Because wording and legal statutes are complicated, this isn't as simple as it seems at a glance.