/* Terms and conditions only: linked after pages.css by the page's front matter "css": ["p-terms-and-conditions"].
   Page review round 2 (w2h, 18 Nov 2026): the Design seat's fixes 1-7 (contact panel, a shorter hero with lead and
   date line, the measure, numbered clauses at a reading size with an "On this page" list, the crest) and the AEO seat's
   "In short" and date line. The school's words are untouched; this sheet only sets them. Tokens from style.css.
   p-privacy-policy.css carries the same rules (plus its two definition lists and the analytics note). */

/* ---------- hero: one-line h1 at 1440, the lead, the date line, the crest large and faint on the right ---------- */
.phero--legal h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; max-width: 20ch; margin-bottom: 18px; }
.phero--legal .phero__lead { max-width: 56ch; }
/* the page's own crumb is .62 ivory in pages.css: 4.4:1 at 390 px over the lighter top of the plain hero, so it is
   lifted here to .8 (measured 18 Nov from fresh screenshots, every hero text >= 4.5:1 at 390 / 768 / 1440) */
.phero--legal .crumbs ol { color: rgba(251, 248, 242, .8); }
.legal-date { margin: 22px 0 0; font: 600 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(251, 248, 242, .9); }
.legal-date::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 2px; margin: -2px 12px 0 0; background: var(--gold); }
.legal-crest { position: absolute; z-index: -1; right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: clamp(36px, 4.4vw, 64px); width: min(34vw, 500px); height: auto; opacity: .1; pointer-events: none; user-select: none; }
@media (max-width: 960px) { .legal-crest { display: none; } }  /* never behind the text on a tablet or phone */

/* ---------- the column: "On this page" rail from 1100 px, the policy at about 68 characters a line ---------- */
.legal .prose { max-width: 36em; }
@media (min-width: 1100px) { .guide.legal { grid-template-columns: 250px minmax(0, 640px); } }
.legal .guide__toc li { grid-template-columns: 34px 1fr; }
.legal .guide__toc li::before { content: counter(toc, decimal-leading-zero); font: italic 400 17px/1.3 var(--serif); color: var(--gold-ink); padding-top: 5px; }

/* ---------- the "In short" answer (ours) above the school's text ---------- */
.legal-short { margin: 0 0 2.6em; }
.legal-short .kicker { margin: 0 0 12px; }
.legal-short .answer { margin: 0; }
.legal-short__note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- numbered clauses (01-10, matching the rail), headings at a reading size ---------- */
.legal__body { counter-reset: lsec; }
.legal__body > h2 { counter-increment: lsec; position: relative; font-size: clamp(25px, 2vw, 30px); margin-top: 1.8em; }
.legal__body > h2::before { content: counter(lsec, decimal-leading-zero); display: inline-block; margin-right: .5em; font-style: italic; font-size: .8em; color: var(--gold-ink); }
@media (min-width: 1100px) {
  .legal__body > h2::before { position: absolute; right: 100%; top: .2em; margin-right: .6em; }
}


/* ---------- the contact panel: the 1px line ring on white (the ccard look), not a filled cream box ---------- */
.prose .legal-contact { padding: 22px 24px; background: var(--white); border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.legal-contact > p { margin: 0; }
.legal-contact > p + p { margin-top: .55em; }
.legal-contact__reg { font-size: 14px; color: var(--muted); }
.prose .legal-contact__alt { margin-top: .9em; padding-top: .9em; border-top: 1px solid var(--line); font-size: .94em; }
.legal-also { margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
