&gt; Two people can agree on anything, even giving up rights.<p>That isn&#x27;t accurate. For example, you cannot agree to be a slave or to give up your right to overtime, a safe work environment, etc.; even non-compete agreements often are difficult to enforce. The law trumps your contract.<p>More accurately, <i>Two people can agree on anything</i>; they can put whatever they want in the contract but it may not be enforceable.