Why is contract not above law?


Is there any country in the world where contract overrides law? If not, why not? What if both parties intend to sign and follow a contract that is against the law?


My reason for asking is whether a contract can legitimately override EU refunds laws.



Is there any country where contract overrides law?