We normally have to adhere to regulations when:
- Buying labour (employment: minimum wage, parental leave etc.)
- Renting out property (tenancy: notice periods, property standards etc.)
- Selling goods (consumer guarantees)
- Offering online services (personal/data privacy)
- Etc. etc.
We know that at least in some cases it is possible to break free from those restrictions. For example, instead of employing people we can do business with them i.e. have contract for services (as opposed to contract of service). We can put any bizarre privacy-related provisions in the EULA of our apps and websites (although I heard the EU regulations can override them). Perhaps we can try selling goods/services on the express condition that consumer guarantees do not apply.
So, in modern common-law countries (say the Five-Eyes UK, US, CA, AU, NZ), how impossible is it to contract out of any regulation? To what extent is it common for the law to limit the freedom of contract and dictate what terms you can/cannot contract on? How challengeable/constitutional those limitations are? In most cases, is it just a matter of writing a good/smart contract to break free from the limitations, or is the freedom of contract just limited full stop?