/* ==========================================================================
   legal.css — Legal pages (Terms, Privacy, Cookie, Refund, Disclaimer).
   Hero follows the Security & privacy page (band-paper, frame-head, chips);
   the body reuses the disclosures document grid: sticky numbered index on
   the left, numbered sections on the right. Same tokens as the rest of the site.
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lg-hero .lede { margin-inline: auto; max-width: 46ch; }
.lg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 30px auto 0; max-width: 820px; }
.lg-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--brown-2); text-decoration: none; transition: border-color .16s, color .16s, background .16s; }
.lg-tab i { color: var(--accent); font-size: 16px; }
.lg-tab:hover { border-color: var(--line-strong); color: var(--brown); }
.lg-tab[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.lg-tab[aria-current="page"] i { color: #fff; }
.lg-meta { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: var(--brown-4); }
.lg-meta i { font-size: 15px; }

/* ── Document grid: sticky index + numbered sections ──────────────────── */
.lg-band { padding: 64px 0 84px; }
.lg-doc { display: grid; grid-template-columns: 236px 1fr; gap: 64px; align-items: start; }
.lg-doc--single { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
.lg-index { position: sticky; top: 92px; }
.lg-index-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown-4); font-weight: 600; padding: 0 0 14px 12px; }
.lg-index ol { list-style: none; margin: 0; padding: 0; }
.lg-index a { display: flex; gap: 11px; align-items: baseline; padding: 9px 12px; border-left: 2px solid var(--line); color: var(--brown-4); font-size: 13px; line-height: 1.35; text-decoration: none; transition: color .16s, border-color .16s; }
.lg-index a:hover { color: var(--brown-2); }
.lg-index .n { font-family: var(--mono); font-size: 11px; flex: 0 0 auto; }
.lg-index a.active { border-left-color: var(--accent); color: var(--accent); font-weight: 600; }

.lg-body { max-width: 720px; min-width: 0; }
.lg-intro { font-size: 16px; line-height: 1.65; color: var(--brown-2); margin: 0 0 8px; max-width: 64ch; }
/* no scroll-margin here: the site's html scroll-padding-top (96px) already clears the header */
.lg-sec { padding: 40px 0 44px; border-top: 1px solid var(--line); }
.lg-sec:first-child { border-top: 0; padding-top: 4px; }
.lg-sec-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.lg-sec-n { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--accent-ink); line-height: .9; flex: 0 0 auto; }
.lg-sec h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 2.8vw, 32px); line-height: 1.1; margin: 4px 0 0; color: var(--brown); text-wrap: balance; }
.lg-sec h3 { font-size: 16px; font-weight: 700; color: var(--brown); margin: 22px 0 6px; }
.lg-sec p, .lg-sec li { font-size: 16px; line-height: 1.65; color: var(--brown-2); text-wrap: pretty; }
.lg-sec p { margin: 0 0 14px; max-width: 64ch; }
.lg-sec p:last-child { margin-bottom: 0; }
.lg-sec ul { margin: 4px 0 16px; padding: 0; list-style: none; max-width: 64ch; }
.lg-sec ul ul { margin: 6px 0 4px 26px; }
.lg-sec li { position: relative; padding: 6px 0 6px 26px; }
.lg-sec li::before { content: ""; position: absolute; left: 6px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lg-sec ul ul li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.lg-sec b { color: var(--brown); font-weight: 600; }
.lg-sec a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.lg-caps { text-transform: none; font-weight: 600; color: var(--brown) !important; }
.lg-address { font-style: normal; line-height: 1.6; color: var(--brown-2); margin: 0; }

@media (max-width: 1000px) {
  .lg-doc { grid-template-columns: 1fr; gap: 0; }
  .lg-index { display: none; }
}
@media (max-width: 560px) {
  .lg-band { padding: 40px 0 64px; }
  .lg-tabs { gap: 8px; }
  .lg-tab { padding: 8px 13px; font-size: 13px; }
  .lg-sec-n { font-size: 30px; }
  .lg-sec-head { gap: 14px; }
}
