/* /privacy and /terms. The text comes from views/partials/legal/*.ejs (generated by scripts/build-legal.mjs). */
.legal-page { background: var(--white); }
.legal { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 72px; justify-content: center; align-items: start; }

/* Contents list: sticks beside the text on desktop, hidden below 1000px */
.legal__toc { position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow-y: auto; padding-top: 10px; font-size: 14px; line-height: 1.45; }
.legal__toc-title { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 16px; }
.legal__toc ol { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.legal__toc a { display: flex; gap: 10px; color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__toc-num { flex: 0 0 18px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.legal__body { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.legal__title { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 14px; }
.legal__body .legal__meta { font-size: 15px; color: var(--muted); margin: 0 0 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal__meta strong { font-weight: 700; }
.legal__section + .legal__section { margin-top: 44px; }
.legal__heading { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 26px); font-weight: 600; line-height: 1.25; margin: 0 0 14px; }
.legal__num { color: var(--gold-deep); }
.legal__body p { margin: 0 0 1em; }
.legal__body p:last-child { margin-bottom: 0; }
.legal__body a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal__body a:hover { color: var(--gold-deep); }

@media (max-width: 999.98px) {
  .legal { grid-template-columns: minmax(0, 720px); }
  .legal__toc { display: none; }
}
@media (max-width: 640px) {
  .legal__body { font-size: 16.5px; }
  .legal__body .legal__meta { margin-bottom: 36px; padding-bottom: 24px; }
  .legal__section + .legal__section { margin-top: 36px; }
}
