My ex went to law school, and I found the attitude of "non-lawyers have no business having opinions about the law" that her law school promoted to be vile. That said, I've found that it's a good idea to assume that any legal issue is NOT straightforward. Doing otherwise usually ends up making me look ignorant, and has me spreading false conclusions to other non-lawyers around me.
The value doesn't have to be equal, simply that both sides offer something of value: https://en.wikipedia.org/wiki/Consideration#Monetary_value_o...
After going through an extremely nasty contract dispute I learned that contracts have limited value and that I should never trust anyone, even if 4 lawyers reviewed the terms.
There's a large cohort of smart people who've read a program and think this means they grasp its semantics; but without understanding the language specification, compiler bugs, undefined behavior implementation, posix specification, operating system bugs and configuration of deployment environment.
Much like programming languages, law language has evolved to be written in a way that's unambiguous as possible. Like programming languages, contracts and the like don't succeed in having 100% predictable semantics.
One source of unpredictability of results comes from the lack of a stable, 100% predictable execution platform (namely, judges, juries, lawyers, and current case law and legislation), much like compilers and platforms do not 100% specify their behavior, or even when they do, the run-time behavior is not perfectly predictable (e.g. when does the GC run).
Another source of unpredictability is that law at the end of the day must interface with the non-legal world ('facts' vs. law) and so touches global context which isn't known when the law or contract was drafted, which one might compare to dealing with unforeseen interactions with the OS, deployment environments, user input, etc.
So while laws and programs try to accurately and precisely encode their own internal semantics, they sometimes fail because they depend on other things that don't have perfectly defined semantics.
In reality the law is not a programming language, and trying to treat it as such is a common cause of disappointment, frustration, anger, needless bickering, extended conflict, and vexatiously long and mostly unenforceable contracts.