/* ==========================================================================
   legal.css — the legal documents (/terms-conditions, /privacy-policy, /cookie-policy).
   Reading pages: one 760px column, Fraunces for the title and section heads, Inter for the body, hairline tables that
   scroll in their own box. Loads after feature-v2.css (tokens, .col, .h). No blob, no reveals, no colour.
   ========================================================================== */

.lg { padding: 48px 0 clamp(72px, 8vw, 120px); }

/* head */
.lg-head { padding-bottom: 28px; border-bottom: 1px solid var(--v2-line); }
.lg-eyebrow { margin: 0 0 14px; font: 500 14px/1.4 var(--font-display); color: #6b7088; }
.lg-desc { max-width: 60ch; margin: 18px 0 0; font: 500 clamp(17px, 1.6vw, 20px)/1.45 var(--font-serif); font-style: italic; color: var(--ink); text-wrap: pretty; }
.lg-dates { margin: 18px 0 0; font: 400 14px/1.6 var(--font-body); color: #6b7088; }
.lg-dates span { display: block; }

/* switcher */
.lg-switch { margin-top: 22px; }
.lg-switch ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lg-switch a { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--v2-card); box-shadow: inset 0 0 0 1px var(--v2-line); font: 500 13.5px/1.3 var(--font-display); color: var(--v2-body); transition: background-color .2s, color .2s; }
.lg-switch a:hover { background: #eef1ff; color: var(--ink); }
.lg-switch a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.lg-switch--bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 0; }
.lg-switch-label { font: 400 14px/1.4 var(--font-body); color: #6b7088; }

/* prose */
.lg-prose { padding-top: 12px; font: 400 16.5px/1.65 var(--font-body); color: #343949; text-wrap: pretty; }
.lg-prose > * + * { margin-top: 18px; }
.lg-prose h2 { margin-top: 56px; font: 500 clamp(24px, 2.4vw, 30px)/1.2 var(--font-serif); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 16px); }
.lg-prose h3 { margin-top: 36px; font: 600 17px/1.4 var(--font-display); color: var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.lg-prose h2 + *, .lg-prose h3 + * { margin-top: 14px; }
.lg-prose strong { font-weight: 600; color: var(--ink); }
.lg-prose a { overflow-wrap: anywhere; color: var(--blue); text-decoration: underline; text-decoration-color: rgba(0, 61, 255, .35); text-underline-offset: 3px; }
.lg-prose a:hover { text-decoration-color: currentColor; }
.lg-prose ul, .lg-prose ol { padding-left: 1.4em; }
.lg-prose ul { list-style: disc; }
.lg-prose ol { list-style: decimal; }
.lg-prose li + li { margin-top: 6px; }
.lg-prose li > ul, .lg-prose li > ol { margin-top: 6px; }
.lg-prose hr { margin: 48px 0 24px; border: 0; border-top: 1px solid var(--v2-line); }
.lg-prose hr ~ p { font-size: 14.5px; line-height: 1.7; color: var(--v2-body); }
/* table of contents: the document's own "Contents" list, linked to its section headings */
.lg-toc { margin-top: 40px; padding: 22px 24px 24px; border-radius: 16px; background: var(--v2-card); box-shadow: inset 0 0 0 1px var(--v2-line); }
.lg-prose .lg-toc h2 { margin: 0; font: 600 14px/1.4 var(--font-display); letter-spacing: 0; color: var(--ink); }
.lg-prose .lg-toc ol, .lg-prose .lg-toc ul { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.lg-prose .lg-toc li { display: grid; grid-template-columns: 2.2em 1fr; gap: 0 4px; margin: 0; padding: 5px 0; font: 400 15px/1.4 var(--font-body); break-inside: avoid; }
.lg-prose .lg-toc ul li { grid-template-columns: 1fr; }
.lg-prose .lg-toc ol li::before { counter-increment: toc; content: counter(toc) "."; color: #6b7088; font-variant-numeric: tabular-nums; }
.lg-prose .lg-toc a { color: var(--ink); text-decoration: none; text-decoration-color: rgba(15, 13, 25, .3); overflow-wrap: normal; }
.lg-prose .lg-toc a:hover, .lg-prose .lg-toc a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .lg-toc--cols ol { columns: 2; column-gap: 32px; } }

.lg-prose code { font: 400 .92em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.lg-asat { font: 400 14px/1.6 var(--font-body); color: #6b7088; }
.lg-asat + .lg-scroll { margin-top: 10px; }

/* tables scroll inside their own box; the body never scrolls sideways */
.lg-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--v2-line); }
.lg-scroll table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.lg-scroll th, .lg-scroll td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--v2-line); }
.lg-scroll tr:last-child > * { border-bottom: 0; }
.lg-scroll thead th { background: var(--v2-card); font: 600 12.5px/1.4 var(--font-display); color: var(--ink); }
.lg-scroll tbody th { font-weight: 500; color: var(--ink); }
.lg-scroll th:first-child, .lg-scroll td:first-child { width: 26%; }

/* foot */
.lg-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--v2-line); }
.lg-contact { margin-top: 18px; font: 400 14px/1.6 var(--font-body); color: #6b7088; }
.lg-contact a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .lg { padding-top: 28px; }
  .lg-prose { font-size: 16px; }
  .lg-prose h2 { margin-top: 44px; }
}
