/* ============================================================
   The legal pages: /privacy, /terms, /sub-processors
   ------------------------------------------------------------
   They open like every other inner page (founder, 2026-10-22: "They all
   have to look like the other pages"): page-hero.css's dark card under the
   bar, with the three documents as its index, so each is one click from
   the other two. Below it the document reads in one column of 720px, the
   contents beside it from 1024px up, held in view as the page scrolls and
   marking the section being read (legal.js). Under 1024px the contents
   fold into one line above the text.

   The words are a legal text and are not restyled into marketing: no
   pictures, no motion beyond the marker sliding to the section in view.
   ============================================================ */

.legal{padding:72px 0 112px}
.lg-grid{display:grid;grid-template-columns:minmax(0,720px);justify-content:center}
@media(min-width:1024px){
  .lg-grid{grid-template-columns:236px minmax(0,720px);gap:72px}
}
.lg-grid--wide{grid-template-columns:minmax(0,1100px)}
@media(min-width:1024px){.lg-grid--wide{grid-template-columns:minmax(0,1100px)}}

/* ---- the contents ------------------------------------------------------ */
.lg-side{min-width:0}
@media(min-width:1024px){
  .lg-side{position:sticky;top:calc(var(--nav-h, 72px) + 32px);align-self:start;
    max-height:calc(100vh - var(--nav-h, 72px) - 64px);overflow:auto;padding-bottom:8px}
}
.lg-toc{border:1px solid var(--line);border-radius:14px;background:var(--surface, #fff)}
.lg-toc > summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;
  font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);cursor:pointer;list-style:none}
.lg-toc > summary::-webkit-details-marker{display:none}
.lg-toc > summary::after{content:"";width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
.lg-toc[open] > summary::after{transform:translateY(2px) rotate(-135deg)}
.lg-toc ol{list-style:none;margin:0;padding:4px 10px 12px;counter-reset:lg}
.lg-toc li{counter-increment:lg}
.lg-toc a{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);gap:4px;padding:7px 8px;border-radius:8px;
  font-size:14px;line-height:1.4;color:var(--ink-80);text-decoration:none;transition:color .15s ease,background-color .15s ease}
.lg-toc a::before{content:counter(lg, decimal-leading-zero);font-size:12px;font-weight:500;line-height:1.65;color:var(--gold-active);
  font-variant-numeric:tabular-nums}
.lg-toc a:hover{color:var(--ink);background:var(--ground-2, #FAFAF9)}
.lg-toc a.is-on{color:var(--ink);background:var(--ground-2, #FAFAF9)}
.lg-toc a.is-on::after{content:"";position:absolute;left:-10px;top:8px;bottom:8px;width:2px;border-radius:2px;background:var(--gold-active)}
@media(min-width:1024px){
  /* beside the text the contents are always open, and their title is a label */
  .lg-toc{border:0;background:none}
  .lg-toc > summary{padding:0 0 12px 8px;cursor:default;pointer-events:none}
  .lg-toc > summary::after{display:none}
  .lg-toc ol{padding:0}
}
@media(max-width:1023px){.lg-side{margin-bottom:40px}}

/* ---- the text ---------------------------------------------------------- */
.legal-content{min-width:0;font-size:16px;line-height:1.72;color:var(--ink-80)}
.legal-content > p:first-child{font-size:18px;line-height:1.6;color:var(--ink)}
.legal-content h2{margin:64px 0 18px;padding-top:28px;border-top:1px solid var(--line);
  font-size:22px;line-height:1.3;letter-spacing:-.015em;font-weight:500;color:var(--ink);scroll-margin-top:calc(var(--nav-h, 72px) + 24px)}
.legal-content h2:first-child{margin-top:0;padding-top:0;border-top:0}
.legal-content h3{margin:28px 0 8px;font-size:16px;line-height:1.4;font-weight:500;color:var(--ink)}
.legal-content p{margin:0 0 14px}
.legal-content ul,.legal-content ol{margin:0 0 18px;padding-left:22px}
.legal-content li{margin-bottom:8px}
.legal-content li::marker{color:var(--gold-active)}
.legal-content a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.legal-content a:hover{text-decoration-color:var(--ink)}
.legal-content strong{color:var(--ink);font-weight:500}
.legal-content em{color:var(--ink);font-style:italic}
.legal-callout{margin:20px 0;padding:14px 18px;border:1px solid var(--line);border-left:3px solid var(--gold-active);
  border-radius:0 12px 12px 0;background:var(--ground-2, #FAFAF9);font-size:14px;color:var(--ink-80)}

/* ---- the sub-processors table ------------------------------------------ */
.legal-content table{width:100%;margin:28px 0 20px;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.5;
  border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface, #fff)}
.legal-content th{padding:14px 16px;text-align:left;vertical-align:bottom;font-size:12px;font-weight:500;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted);background:var(--ground-2, #FAFAF9);border-bottom:1px solid var(--line)}
.legal-content td{padding:16px;vertical-align:top;color:var(--ink-80);border-bottom:1px solid var(--line)}
.legal-content tr:last-child td{border-bottom:0}
.legal-content td:first-child{color:var(--ink);white-space:nowrap}
/* On a phone each processor is a card: its name, then each fact under the
   column it came from. The labels are the table's own headings. */
@media(max-width:760px){
  .legal-content table,.legal-content tbody,.legal-content tr,.legal-content td{display:block;width:auto}
  .legal-content table{border:0;background:none;border-radius:0}
  .legal-content thead{display:none}
  .legal-content tr{margin:0 0 14px;padding:6px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface, #fff)}
  .legal-content td{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;padding:8px 16px;border:0}
  .legal-content td::before{content:attr(data-label);font-size:12px;font-weight:500;letter-spacing:.04em;color:var(--muted)}
  .legal-content td:first-child{display:block;padding:12px 16px 6px;font-size:16px;white-space:normal}
  .legal-content td:first-child::before{content:none}
}

/* ---- the hero's words, at the values /use-cases gives them -------------- */
.ph .eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:500}
.ph .h1{font-size:clamp(34px,3.9vw,56px);line-height:1;letter-spacing:-.02em;font-weight:400;margin:0 auto;text-wrap:balance}
.ph .lead{font-size:15px;line-height:1.5;letter-spacing:-.013em;color:var(--ink-80);font-weight:400}

/* ---- the hero's index: the three documents ----------------------------- */
.lg-ix{--ph-ix:3;max-width:640px}
.lg-ix .ph-ix-item[aria-current="page"] .ph-ix-line{transform:scaleX(1)}
.lg-ix .ph-ix-item[aria-current="page"] .ph-ix-name{color:var(--ink)}
@media(max-width:960px){.lg-ix{display:grid}}
@media(max-width:560px){.lg-ix .ph-ix-item{flex-direction:column;align-items:center;gap:2px}}

/* ---- One step between blocks, as on the homepage (founder, 2026-11-01:
   "Make sure the sections in the entire website are like in home page"):
   144 on desktop, a dark card's edge counting as content, the closing
   card's bottom margin given back by the footer's top. Measured, as the
   homepage's was. Tablet and phone follow once the desktop is validated. */
@media(min-width:861px){.legal{padding-top:104px;padding-bottom:144px}}
/* Tablet and phone follow the desktop step: 120 to 860 wide, 96 to 560, the
   hero card's inset and the closer's bottom margin given back as above
   (validated 2026-11-01). */
@media(max-width:860px){body .legal{padding-top:80px;padding-bottom:120px}body .footer{padding-top:0}}
@media(max-width:560px){body .legal{padding-top:72px;padding-bottom:96px}}
