A contractual term is contrary to public policy and therefore unenforceable if it is inconsistent with constitutional values, considering the terms of the contract and the circumstances of the case. The test has two stages: (1) Does the term offend constitutional values? (2) If yes, should the court refuse to enforce it? Courts must balance the constitutional values of dignity and freedom (supporting contractual autonomy) against the specific values implicated in the case. Pacta sunt servanda (agreements must be kept) itself reflects constitutional values.