/* Legal pages (privacy, termini, cookie, note legali). A calm reading room: a large header with the three things to
   know, a switcher between the four documents, numbered sections, an index that follows the reader and a thin
   reading-progress line. Same tokens as the landing; tables scroll on their own on phones. */
.lg-main { padding-top: 53px; background: var(--bg); color: var(--fg); }
.lg-head { position: relative; isolation: isolate; width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(56px, 8vw, 112px) clamp(36px, 5vw, 64px); }
.lg-head::before { content: ""; position: absolute; z-index: -1; inset: -53px calc(50% - 50vw) 0; background: radial-gradient(60% 80% at 85% 0%, rgba(201, 89, 221, .10), transparent 70%), radial-gradient(50% 70% at 10% 10%, rgba(8, 148, 255, .10), transparent 70%), var(--bg-alt); }
.lg-head .eyebrow { display: inline-flex; margin: 0; padding: 6px 12px; border-radius: 980px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--fg-2); letter-spacing: 0; text-transform: none; }
.lg-head h1 { margin: 18px 0 0; max-width: 14ch; font-size: clamp(44px, 7vw, 88px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.lg-lead { max-width: 720px; margin: 22px 0 0; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
.lg-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.lg-switch a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px; border-radius: 980px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; color: var(--fg); white-space: nowrap; transition: background .2s, box-shadow .2s, color .2s; }
.lg-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.lg-switch a:hover { box-shadow: inset 0 0 0 1px var(--fg-2); }
.lg-switch a[aria-current] { background: var(--fg); color: var(--bg); box-shadow: none; }
.lg-switch a[aria-current] svg { opacity: 1; }
.lg-brief { margin-top: clamp(36px, 5vw, 56px); }
.lg-brief-t { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.lg-brief ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lg-brief li { display: grid; align-content: start; gap: 8px; padding: 22px 22px 24px; border-radius: 20px; background: var(--tile); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .05); }
.lg-brief li::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--ai); }
.lg-brief b { font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.lg-brief span { font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.lg-body { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); max-width: 1100px; width: min(1100px, 100% - 2 * var(--gutter)); padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 120px); }
.lg-toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.lg-toc p { margin: 0 0 10px 12px; font-weight: 600; color: var(--fg-2); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.lg-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; border-left: 1px solid var(--line); }
.lg-toc li { counter-increment: toc; }
.lg-toc a { position: relative; display: flex; gap: 10px; margin-left: -1px; padding: 7px 12px; border-left: 2px solid transparent; color: var(--fg-2); line-height: 1.3; transition: color .2s, border-color .2s; }
.lg-toc a::before { content: counter(toc); min-width: 1.3em; color: var(--fg-2); opacity: .55; font-variant-numeric: tabular-nums; }
.lg-toc a:hover { color: var(--fg); }
.lg-toc a.on { color: var(--fg); font-weight: 600; border-left-color: var(--fg); }
.lg-col { display: grid; gap: 48px; min-width: 0; }
.lg-doc { min-width: 0; font-size: 17px; line-height: 1.68; }
.lg-doc section { scroll-margin-top: 80px; }
.lg-doc section + section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.lg-doc h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.lg-n { flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; background: var(--bg-alt); font-size: 16px; font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; transform: translateY(-3px); }
.lg-doc h3 { margin: 28px 0 8px; font-size: 19px; letter-spacing: -.015em; }
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.lg-doc li { margin: 0 0 10px; padding-left: 4px; }
.lg-doc li::marker { color: var(--fg-2); }
.lg-doc a, .lg-help a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lg-doc code { padding: 1px 6px; border-radius: 6px; background: var(--bg-alt); font-size: .9em; }
.lg-id { padding: 14px 18px; border-radius: 14px; background: var(--bg-alt); font-size: 15px; color: var(--fg-2); }
.lg-table { overflow-x: auto; margin: 0 0 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.lg-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.lg-table th, .lg-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lg-table thead th { background: var(--bg-alt); font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--fg-2); }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 28px 30px; border-radius: 24px; background: var(--k-bg); color: var(--k-fg); }
.lg-help h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.lg-help p { margin: 6px 0 0; font-size: 15px; color: var(--k-fg-2); }
.lg-help .lg-mail { margin: 0; }
.lg-help .lg-mail a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 980px; background: var(--k-fg); color: var(--k-bg); font-size: 15px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.lg-progress { position: fixed; z-index: 60; inset: 52px 0 auto; height: 2px; pointer-events: none; }
.lg-progress span { display: block; height: 100%; background: var(--ai); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.foot2 .bot a[aria-current] { color: var(--fg); }
@media (max-width: 860px) {
  .lg-brief ul { grid-template-columns: minmax(0, 1fr); }
  .lg-body { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { position: static; max-height: none; padding: 18px 16px; border-radius: 18px; background: var(--bg-alt); }
  .lg-toc ol { border-left: 0; }
  .lg-toc a { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) { .lg-switch a { flex: 1 1 calc(50% - 4px); justify-content: center; } .lg-help { padding: 24px 22px; } }
@media print { .lnav, .lg-switch, .lg-toc, .lg-help, .lg-progress, .foot2 { display: none; } .lg-head::before { display: none; } .lg-body { display: block; } }
