/* Legal pages: privacy-policy.html, terms-and-conditions.html, eula.html, acceptable-use-policy.html.
   Same tokens and type as the landing pages; the footer is the shared one in footer.css. A reading page: one column of text at a comfortable measure,
   a sticky contents list beside it on wide screens (folded into a disclosure on phones), no motion beyond hover. */
:root {
  --bg:#050506; --hair:rgba(255,255,255,0.08); --hair-hi:rgba(255,255,255,0.14);
  --fg:#f4f4f4; --mute:#a0a6ae; --dim:#8b949e; --faint:#5d6266; --text:#b3b8bf;
  --beam:#f7b675;
  --mono:'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease:cubic-bezier(0.16,1,0.3,1);
  --gut:clamp(20px, 4vw, 48px);
  --wrap:min(1180px, 100% - 2 * var(--gut));
}
* { box-sizing:border-box; }
/* hidden on html too: older Android Chrome ignores overflow-x:clip, and would widen the page to fit the warm wash */
html { scroll-behavior:smooth; overflow-x:hidden; }
html, body { margin:0; background:var(--bg); color:var(--fg); font-family:'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; }
/* clip, not hidden: hidden would make body a scroll container and break the sticky contents list */
body { overflow-x:clip; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
::selection { background:#3b50d9; color:#fff; }
.cap-trim { display:block; line-height:1; text-box:trim-both cap alphabetic; }
.mono { font-family:var(--mono); font-size:11px; font-weight:400; letter-spacing:0.14em; text-transform:uppercase; color:var(--faint); }

/* ---------- Head: eyebrow, title, date, and the four documents as tabs ---------- */
/* clip: the warm wash below is wider than a phone, and phones widen the layout to fit it even with body clipped */
.legal { position:relative; overflow-x:clip; }
/* A faint wash of the seam's warm light at the top of the page, nothing more */
.legal::before { content:''; position:absolute; left:50%; top:0; width:min(1100px, 140%); height:420px; transform:translateX(-50%); background:radial-gradient(ellipse 50% 60% at 50% 0%, rgba(247,182,117,0.07), rgba(247,182,117,0) 70%); pointer-events:none; }
.lg-head { position:relative; width:var(--wrap); margin:0 auto; padding:clamp(128px, 16vh, 168px) 0 0; }
.lg-head .mono { margin:0 0 18px; }
.lg-head h1 { margin:0; font-size:clamp(40px, 6vw, 76px); font-weight:600; letter-spacing:-0.05em; line-height:0.95; text-wrap:balance; }
.lg-meta { display:flex; flex-wrap:wrap; gap:6px 12px; margin:22px 0 0; font-size:14px; color:var(--dim); }
.lg-meta span + span::before { content:''; display:inline-block; width:3px; height:3px; margin:0 12px 3px 0; border-radius:50%; background:var(--faint); vertical-align:middle; }
.lg-tabs { display:flex; gap:4px; margin-top:clamp(36px, 5vw, 52px); padding-bottom:0; border-bottom:1px solid var(--hair); overflow-x:auto; scrollbar-width:none; }
.lg-tabs::-webkit-scrollbar { display:none; }
.lg-tabs a { position:relative; flex:none; padding:0 14px 16px; font-size:14px; font-weight:500; color:var(--dim); transition:color 0.2s; }
.lg-tabs a:first-child { padding-left:0; }
.lg-tabs a:hover { color:var(--fg); }
.lg-tabs a[aria-current] { color:var(--fg); }
.lg-tabs a[aria-current]::after { content:''; position:absolute; left:14px; right:14px; bottom:-1px; height:1px; background:var(--fg); }
.lg-tabs a[aria-current]:first-child::after { left:0; }

/* ---------- Body: contents on the left, the document on the right ---------- */
.lg-body { width:var(--wrap); margin:0 auto; padding:clamp(48px, 6vw, 72px) 0 0; display:grid; grid-template-columns:minmax(0, 260px) minmax(0, 700px); justify-content:space-between; gap:64px; align-items:start; }

.lg-toc { position:sticky; top:96px; max-height:calc(100vh - 120px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--hair-hi) transparent; }
.lg-toc summary { display:flex; align-items:center; justify-content:space-between; list-style:none; margin-bottom:14px; pointer-events:none; }
.lg-toc summary::-webkit-details-marker { display:none; }
.lg-toc summary svg { display:none; width:16px; height:16px; color:var(--dim); transition:transform 0.3s var(--ease); }
.lg-toc ol { margin:0; padding:0; list-style:none; }
.lg-toc a { display:grid; grid-template-columns:26px 1fr; gap:6px; padding:7px 0; font-size:13.5px; line-height:1.4; color:var(--dim); transition:color 0.2s; }
.lg-toc a:hover { color:var(--fg); }
.lg-toc a[aria-current] { color:var(--fg); }
.toc-n { font-family:var(--mono); font-size:11px; line-height:1.4; padding-top:1.5px; color:var(--faint); }
.lg-toc a[aria-current] .toc-n { color:var(--beam); }

/* ---------- The document ---------- */
.lg-doc { min-width:0; font-size:15.5px; line-height:1.72; color:var(--text); }
.lg-doc p { margin:0 0 1.1em; }
.lg-doc strong { color:var(--fg); font-weight:600; }
.lg-doc em { font-style:italic; }
.lg-doc a { color:var(--fg); text-decoration:underline; text-decoration-color:rgba(255,255,255,0.28); text-underline-offset:3px; text-decoration-thickness:1px; overflow-wrap:anywhere; transition:text-decoration-color 0.2s; }
.lg-doc a:hover { text-decoration-color:var(--fg); }
.lede { padding-bottom:clamp(36px, 4vw, 48px); margin-bottom:clamp(36px, 4vw, 48px); border-bottom:1px solid var(--hair); }
.lede p:first-child { font-size:17px; line-height:1.65; color:var(--mute); }
.lede > :last-child { margin-bottom:0; }

.sec { padding-bottom:clamp(28px, 3vw, 36px); margin-bottom:clamp(36px, 4vw, 48px); border-bottom:1px solid var(--hair); }
.sec:last-child { border-bottom:0; margin-bottom:0; }
.sec > :last-child { margin-bottom:0; }
.sec h2 { display:flex; flex-direction:column; gap:12px; margin:0 0 22px; scroll-margin-top:100px; font-size:clamp(22px, 2.2vw, 26px); font-weight:600; letter-spacing:-0.03em; line-height:1.2; color:var(--fg); text-wrap:balance; }
.sec-n { font-family:var(--mono); font-size:11px; font-weight:400; letter-spacing:0.14em; color:var(--faint); }
.lg-doc h3 { margin:30px 0 12px; font-size:16.5px; font-weight:600; letter-spacing:-0.015em; line-height:1.35; color:var(--fg); }
.lg-doc h2 + h3 { margin-top:0; }
.lg-doc h4 { margin:26px 0 10px; font-size:15.5px; font-weight:600; letter-spacing:-0.01em; line-height:1.4; color:var(--fg); }
.lg-doc h3 + h4, .lg-doc h2 + h4 { margin-top:0; }
.lg-doc .addr { padding-left:16px; box-shadow:inset 1px 0 0 var(--hair-hi); line-height:1.65; }

/* The privacy notice's table of personal information categories */
.tbl { margin:0 0 1.6em; border-radius:14px; box-shadow:inset 0 0 0 1px var(--hair); overflow:hidden; }
.tbl table { width:100%; border-collapse:collapse; font-size:14px; line-height:1.55; }
.tbl th { padding:12px 16px; text-align:left; font-family:var(--mono); font-size:10.5px; font-weight:400; letter-spacing:0.14em; text-transform:uppercase; color:var(--faint); background:rgba(255,255,255,0.03); }
.tbl td { padding:14px 16px; vertical-align:top; border-top:1px solid var(--hair); }
.tbl td:first-child { width:32%; color:var(--fg); font-weight:500; }
.tbl td.yn { width:1%; white-space:nowrap; text-align:right; }
.tbl th:last-child { text-align:right; }
.yn span { display:inline-block; padding:3px 9px; border-radius:99px; font-size:12px; font-weight:500; }
.yn .yes { color:var(--fg); background:rgba(255,255,255,0.08); box-shadow:inset 0 0 0 1px var(--hair-hi); }
.yn .no { color:var(--faint); }
.anchor { display:block; position:relative; top:-100px; visibility:hidden; height:0; }
[id] { scroll-margin-top:100px; }

.lg-doc ul { margin:0 0 1.3em; padding:0; list-style:none; }
.lg-doc li { position:relative; padding-left:22px; margin:0 0 0.55em; }
.lg-doc li::before { content:''; position:absolute; left:2px; top:0.86em; width:8px; height:1px; background:var(--faint); }


.lg-ask { width:var(--wrap); margin:0 auto; padding:clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); display:grid; grid-template-columns:minmax(0, 260px) minmax(0, 700px); justify-content:space-between; gap:64px; }
.lg-ask p { grid-column:2; margin:0; padding:22px 24px; border-radius:16px; background:rgba(255,255,255,0.03); box-shadow:inset 0 0 0 1px var(--hair); font-size:15px; color:var(--mute); }
.lg-ask a { color:var(--fg); text-decoration:underline; text-decoration-color:rgba(255,255,255,0.28); text-underline-offset:3px; }
.lg-ask a:hover { text-decoration-color:var(--fg); }

/* ---------- Tablets and phones: one column, contents folded above the document ---------- */
@media (max-width:900px) {
  .lg-body, .lg-ask { grid-template-columns:minmax(0, 1fr); gap:0; }
  .lg-ask p { grid-column:1; }
  .lg-toc { position:static; max-height:none; overflow:visible; margin-bottom:40px; border-radius:14px; background:rgba(255,255,255,0.03); box-shadow:inset 0 0 0 1px var(--hair); }
  .lg-toc summary { margin:0; padding:16px 18px; pointer-events:auto; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .lg-toc summary svg { display:block; }
  .lg-toc details[open] summary svg { transform:rotate(180deg); }
  .lg-toc ol { padding:0 18px 12px; }
  .lg-toc a { padding:9px 0; border-top:1px solid var(--hair); font-size:14px; }
}
@media (max-width:600px) {
  .lg-doc { font-size:15px; line-height:1.7; }
  .lede p:first-child { font-size:16px; }
  .lg-meta { flex-direction:column; gap:2px; }
  /* the categories table becomes one card per row */
  .tbl thead { display:none; }
  .tbl tr { display:grid; grid-template-columns:1fr auto; gap:4px 12px; padding:14px 16px; border-top:1px solid var(--hair); }
  .tbl tbody tr:first-child { border-top:0; }
  .tbl td { padding:0; border:0; width:auto !important; }
  .tbl td:first-child { grid-column:1; grid-row:1; }
  .tbl td.yn { grid-column:2; grid-row:1; }
  .tbl td:nth-child(2) { grid-column:1 / -1; color:var(--dim); font-size:13.5px; }
  .lg-meta span + span::before { display:none; }
  .lg-tabs a { padding:0 11px 14px; font-size:13.5px; }
  .lg-tabs a[aria-current]::after { left:11px; right:11px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
