/* Privacy and Terms pages.
   The same near-black and ivory as the rest of the site. A plain-words summary up top, then the full text
   with a contents rail that follows you down. Every section opens with a short "In short" so nobody has to
   read legalese to know where they stand. */

.pg-legal main { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.lg-hero { padding-bottom: 0; }
.pr-dot { width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--listen); box-shadow: 0 0 8px var(--listen); }
.lg-hero h1 { font-size: clamp(54px, 8.4vw, 118px); }
.lg-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.lg-meta b { font-weight: 600; color: var(--ink-2); }
.lg-switch { display: inline-flex; gap: 4px; margin-top: 30px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.lg-switch a { padding: 10px 18px; border-radius: 999px; font: 600 14px/1 var(--font); color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.lg-switch a:hover { color: var(--ink); }
.lg-switch a[aria-current="page"] { background: var(--ink); color: #0a0a0b; }

/* ---------- The short version ---------- */
.lg-short { max-width: 1200px; margin: clamp(64px, 8vw, 104px) auto 0; padding: 0 clamp(16px, 4vw, 40px); }
.lg-short .panel { padding-top: clamp(48px, 6vw, 80px); }
.lg-short h2 { font-size: clamp(38px, 5vw, 68px); }
.lg-short .sub { margin-bottom: 0; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: clamp(40px, 5vw, 60px) 0 0; padding: 0; list-style: none; text-align: left; }
.promises li { position: relative; padding: 24px 24px 26px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.promises .pi { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.promises .pi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promises .pi.g { color: var(--listen); }
.promises .pi.v { color: var(--doing-ink); }
.promises .pi.a { color: var(--caution); }
.promises .pi.r { color: var(--danger); }
.promises b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.promises p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.lg-short-foot { margin: 28px 0 0; font-size: 14px; color: var(--ink-3); text-align: center; text-wrap: balance; }

/* ---------- Document: contents rail + text ---------- */
.lg-doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); max-width: 1200px; margin: clamp(80px, 10vw, 130px) auto 0; padding: 0 clamp(16px, 4vw, 40px); }
.toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 128px); overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.toc p { margin: 0 0 14px; font: 600 12px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--ink-3); text-decoration: none; transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; color: var(--ink-3); opacity: .7; }
.toc a:hover { color: var(--ink-2); }
.toc a.on { color: var(--ink); }
.toc a.on::before { color: var(--listen); opacity: 1; }

.doc { min-width: 0; max-width: 760px; counter-reset: sec; }
.doc > section { padding: 0 0 clamp(48px, 6vw, 72px); scroll-margin-top: 100px; counter-increment: sec; }
.doc > section + section { padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.doc h2 { max-width: none; margin: 0; font: 400 clamp(32px, 3.6vw, 46px)/1.05 var(--serif); letter-spacing: -.015em; text-align: left; }
.doc h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 14px; font: 600 12px/1 var(--font); letter-spacing: .18em; color: var(--ink-3); }
.doc h3 { margin: 36px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.doc p { margin: 16px 0 0; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(243, 240, 234, .3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin: 8px 0 0; padding-left: 4px; }
.doc li::marker { color: var(--ink-3); }
.doc code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); font: 500 .86em/1.4 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; }

/* "In short": the plain-words line every section opens with */
.gist { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin: 24px 0 8px; padding: 18px 20px; border-radius: 18px; background: rgba(60, 227, 164, .055); box-shadow: inset 0 0 0 1px rgba(60, 227, 164, .16); }
.gist::before { content: 'In short'; padding: 5px 9px; border-radius: 999px; background: rgba(60, 227, 164, .14); font: 650 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--listen); white-space: nowrap; }
.doc .gist p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.6; }

/* A callout for things that matter more than the rest */
.note-box { margin: 24px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.note-box.warn { background: rgba(255, 179, 64, .06); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, .2); }
.doc .note-box p { margin: 0; }
.doc .note-box p + p { margin-top: 10px; }
.caps { font-size: 14.5px !important; letter-spacing: .01em; text-transform: uppercase; }

/* Tables: data flows, processors, retention */
.tbl { margin: 24px 0 0; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { font: 600 11.5px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: rgba(255, 255, 255, .02); }
.tbl tbody th { font-weight: 600; color: var(--ink); }
.tbl td { color: var(--ink-2); }
.tbl td small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }

/* The four moments: when Springle sees and hears */
.moments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 0 !important; list-style: none; }
.moments li { margin: 0; padding: 16px 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.moments b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.doc .moments span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.moments i { display: inline-block; margin-top: 12px; padding: 4px 9px; border-radius: 999px; font: 600 11px/1 var(--font); font-style: normal; letter-spacing: .04em; }
.moments i.off { background: rgba(255, 255, 255, .05); color: var(--ink-3); }
.moments i.on { background: rgba(60, 227, 164, .12); color: var(--listen); }

/* Definition-style list for "Your rights" */
.rights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 0 !important; list-style: none; }
.rights li { margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.rights b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.doc .rights span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* Contact card at the end */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 0; padding: 24px; border-radius: 22px; background: radial-gradient(80% 120% at 0% 0%, rgba(255, 246, 232, .06), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.doc .contact p { margin: 0; color: var(--ink); }
.doc .contact .btn { color: #0a0a0b; text-decoration: none; }
.doc .contact p small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }

.lg-end { margin: 0; padding-top: 8px; font-size: 14px; color: var(--ink-3); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .lg-doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 20px 22px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
  .promises { grid-template-columns: 1fr 1fr; }
  .moments { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .promises, .rights { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .gist { grid-template-columns: 1fr; gap: 10px; }
  .gist::before { justify-self: start; }
}
@media print {
  .nav, .glow-top, .toc, .lg-switch, .foot img { display: none !important; }
  body, html { background: #fff; color: #000; }
  .lg-doc { display: block; }
  .doc p, .doc li, .tbl td, .gist p { color: #222 !important; }
  .doc h2, .doc h3, .doc strong { color: #000 !important; }
}

/* Details still to fill in before launch: impossible to miss */
.fill { padding: 0 6px; border-radius: 6px; background: rgba(255, 179, 64, .14); box-shadow: inset 0 0 0 1px rgba(255, 179, 64, .45); color: var(--caution) !important; font-weight: 600; white-space: nowrap; }

/* Phones: each table row becomes a small card, with its column names as labels (set by legal.js) */
@media (max-width: 640px) {
  .tbl { overflow: visible; background: none; box-shadow: none; }
  .tbl table { min-width: 0; }
  .tbl thead { display: none; }
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl tr { margin-top: 10px; padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
  .tbl th, .tbl td { padding: 0; border: 0; }
  .tbl td { margin-top: 10px; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
}
