/* ============================================================
   Legal pages (/terms/, /privacy/, /accessibility/)
   Same family palette, the quietest arrangement: cream page, ink text,
   gold only on links. No motion layer (family.js is not loaded here).
   ============================================================ */

:root{ --accent: var(--violet); --accent-2: var(--mint); }

/* the nav is fixed elsewhere and gets its glass from family.js; here it simply sits on the paper */
.lg__nav{ position:sticky; background:var(--bg); border-bottom:1px solid rgba(27,26,22,.08); }
.lg__nav .nav__links a[aria-current="page"]{ opacity:1; font-weight:700; }

.lg{ padding-block:clamp(56px,9vw,120px) 0; }
.lg__wrap{ max-width:880px; }
.lg__title{ font-family:var(--display); font-weight:900; font-size:clamp(2.4rem,7vw,4.6rem); line-height:1; letter-spacing:-.02em; margin-bottom:clamp(2rem,5vw,3.4rem); }

.lg__body{ font-size:clamp(1.02rem,1.25vw,1.12rem); line-height:1.8; color:var(--fg); }
.lg__body[dir="ltr"]{ text-align:left; }
.lg__body > * + *{ margin-top:1em; }
.lg__body h2{ font-family:var(--sans); font-weight:800; font-size:clamp(1.3rem,2.2vw,1.65rem); line-height:1.3; margin-top:2.2em; scroll-margin-top:110px; }
.lg__body h3{ font-weight:700; font-size:1.12em; margin-top:1.6em; scroll-margin-top:110px; }
.lg__body ul{ padding-inline-start:1.3em; }
.lg__body li + li{ margin-top:.45em; }
.lg__body li::marker{ color:var(--violet); }
.lg__body a{ color:#7A6328; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.lg__body a:hover{ color:var(--ink); }
.lg__body [id]{ scroll-margin-top:110px; }
.lg__body strong{ font-weight:700; }

.lg__table{ overflow-x:auto; margin-block:1.4em; border:1px solid rgba(27,26,22,.14); border-radius:12px; }
.lg__table table{ width:100%; border-collapse:collapse; font-size:.94em; line-height:1.55; }
.lg__table td{ padding:.7em .9em; border-top:1px solid rgba(27,26,22,.1); vertical-align:top; }
.lg__table tr:first-child td{ border-top:none; background:var(--paper2); }

.lg__card{ display:grid; gap:.1rem; background:var(--paper2); border-radius:var(--r); padding:clamp(1.1rem,2.4vw,1.8rem); }
.lg__card > div{ display:grid; grid-template-columns:8.5em 1fr; gap:1rem; padding-block:.55rem; border-top:1px solid rgba(27,26,22,.08); }
.lg__card > div:first-child{ border-top:none; }
.lg__card dt{ font-weight:700; }
.lg__date{ color:var(--ink2); font-size:.95em; margin-top:2em !important; }

.lg__foot{ margin-top:clamp(90px,12vw,160px); padding-block:clamp(56px,8vw,90px) clamp(30px,4vw,44px); }
.foot__legal a[aria-current="page"]{ opacity:1; font-weight:700; }

@media (max-width:820px){ .lg__nav .nav__pill{ display:none; } .lg__nav .nav__links{ display:flex; gap:1.1rem; margin-inline:0; } .lg__nav .nav__links a{ font-size:.92rem; } }
@media (max-width:520px){
  .lg__nav{ flex-wrap:wrap; gap:.7rem 1rem; }
  .lg__card > div{ grid-template-columns:1fr; gap:.1rem; }
}

/* high contrast: the family flips --bg/--fg; keep the link colour readable */
html.a11y-contrast .lg__body a{ color:#000; }
html.a11y-contrast .lg__card, html.a11y-contrast .lg__table tr:first-child td{ background:#fff; border:1px solid #000; }

/* LevitMono has no Hebrew: keep the mono ROLE, set it in Assistant (same call as the courses page) */
.lg__foot .foot__h{ font-family:var(--sans); font-weight:700; letter-spacing:.08em; font-size:.95rem; }
