/* Legal pages (/terms/, /privacy/): the page hero, a switcher between the documents, the short version in a
   card, then the full text beside a sticky "On this page". Same tokens and type as the rest of the site. */
.lg-hero { padding-bottom: 8px; }
/* the hero and the text share one column set, so the title lines up with "On this page" */
.lg-hero .wrap, .lg { max-width: 1140px; }
.lg-hero .d1 { font-size: clamp(42px, 5.6vw, 76px); }
.lg-tabs { display: inline-flex; gap: 2px; margin-top: 34px; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .045); }
.lg-tabs a { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; font: 500 13.5px/1 var(--sans); color: var(--dim); transition: background .15s, color .15s; }
.lg-tabs a:hover { color: var(--ink); }
.lg-tabs a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); }

.lg { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(88px, 10vw, 140px); }
.lg-toc { position: sticky; top: calc(var(--nav) + 28px); align-self: start; max-height: calc(100vh - var(--nav) - 56px); overflow: auto; }
.lg-toc p { margin: 0 0 12px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.lg-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 1px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: color .15s, border-color .15s; }
.lg-toc a:hover { color: var(--ink); }
.lg-toc a.on { border-color: var(--ink); color: var(--ink); }

/* the short version: what matters most, in plain words, before the full text */
.lg-short { margin: 0 0 56px; padding: 26px 28px 24px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -32px rgba(0, 0, 0, .25); }
.lg-doc .lg-short h2 { margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; font-size: 18px !important; }
.lg-doc .lg-short ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lg-doc .lg-short li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--dim); }
.lg-doc .lg-short li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 10px; height: 5px; border-left: 1.6px solid var(--tl-accent); border-bottom: 1.6px solid var(--tl-accent); transform: rotate(-45deg); }
.lg-doc .lg-short li b { color: var(--ink); font-weight: 600; }
.lg-doc .lg-short .fine { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* the full text */
.lg-doc { font-size: 15.5px; line-height: 1.7; color: var(--dim); }
.lg-doc section { scroll-margin-top: calc(var(--nav) + 24px); }
.lg-doc h2 { margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); font: 600 22px/1.3 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.lg-doc section:first-of-type h2 { margin-top: 0; }
.lg-doc h3 { margin: 28px 0 8px; font: 600 16px/1.4 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 16px; padding-left: 22px; }
.lg-doc li { margin: 6px 0; padding-left: 2px; }
.lg-doc li::marker { color: var(--faint); }
.lg-doc b, .lg-doc strong { color: var(--ink); font-weight: 600; }
.lg-doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.lg-doc a:hover { text-decoration-color: var(--ink); }
.lg-doc .caps { font-size: 14px; letter-spacing: .005em; }
.lg-doc .note { margin: 18px 0; padding: 14px 18px; border-radius: var(--r); background: rgba(31, 138, 134, .06); box-shadow: inset 0 0 0 1px rgba(31, 138, 134, .16); font-size: 14.5px; color: var(--text); }

/* tables: what we collect, why, and for how long */
.lg-table { margin: 8px 0 20px; overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.lg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.lg-table th, .lg-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.lg-table thead th { border-top: 0; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.lg-table td:first-child { color: var(--ink); font-weight: 500; }

@media (max-width: 960px) {
  .lg { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lg-toc { display: none; }
}
@media (max-width: 620px) {
  .lg-short { padding: 22px 20px 20px; margin-bottom: 44px; }
  .lg-doc h2 { font-size: 20px; margin-top: 44px; }
}
.lg-doc code { padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .05); font: 500 .86em/1 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
