:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #203332; background: #f2f6f5; }
* { box-sizing: border-box; }
body { margin: 0; padding: 32px 20px; }
.page { max-width: 920px; margin: 0 auto; background: white; border: 1px solid #d5e0dd; border-radius: 16px; padding: 32px; box-shadow: 0 8px 32px #163d3010; }
.brand { color: #155a49; font-size: 1rem; font-weight: 700; margin: 0 0 28px; }
.eyebrow { color: #506561; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; }
.intro { line-height: 1.6; margin: 0 0 16px; }
.reference { color: #506561; font-size: .9rem; overflow-wrap: anywhere; }
.terms { height: 52vh; min-height: 240px; max-height: 640px; overflow-y: auto; border: 1px solid #cddbd6; border-radius: 8px; padding: 24px; line-height: 1.7; overscroll-behavior: contain; overflow-wrap: anywhere; }
.terms h2 { font-size: 1.08rem; line-height: 1.5; margin: 28px 0 14px; }
.terms h2:first-child { margin-top: 0; }
.terms p { margin: 0 0 16px; }
.clause, .subclause { display: flex; gap: 12px; }
.clause-number { flex-shrink: 0; min-width: 2.5em; font-variant-numeric: tabular-nums; }
.subclause, .definition { margin-left: 3.25em !important; }
a { color: #146049; text-underline-offset: 3px; }
.actions { padding-top: 16px; }
.status { background: #eef5f2; padding: 12px 16px; border-radius: 6px; font-size: .9rem; line-height: 1.5; }
.status.error { background: #fff0ec; color: #842d21; }
.acceptance { font-size: .9rem; line-height: 1.6; }
button { border: 0; border-radius: 7px; padding: 13px 40px; color: white; background: #155a49; font: inherit; font-weight: 650; cursor: pointer; min-height: 48px; }
button:hover { background: #0d4537; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #ad6e08; outline-offset: 4px; }
.message { margin-top: 10vh; max-width: 640px; line-height: 1.7; }
@media (max-width: 600px) {
  body { padding: 12px; }
  .page { padding: 20px 16px; }
  .terms { padding: 16px 12px; font-size: .95rem; }
  .subclause, .definition { margin-left: 1em !important; }
  button { width: 100%; }
}
@media print {
  body, .page { padding: 0; border: 0; box-shadow: none; }
  .terms { height: auto; max-height: none; overflow: visible; border: 0; }
  .actions { display: none; }
}
