/*
 * Long-form pages: privacy/, terms/, security/, accessibility/. Loaded after styles.css + motion.css;
 * reuses the nav, .eyebrow, .btn, .link and the footer. Only what's new lives here.
 */

/* ---------- hero ---------- */
.lhero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 140px) var(--gutter) clamp(72px, 9vw, 128px);
}
.lhero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.lhero__lede { margin-top: 32px; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 52ch; }
.lhero__meta { margin-top: 40px; font: 400 13px/1.4 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- the short version ---------- */
.tldr {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.tldr__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tldr__list li { padding: 36px clamp(16px, 2.4vw, 32px) 36px 0; display: grid; gap: 10px; align-content: start; }
.tldr__list li + li { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.tldr__list b { font: 400 22px/1.2 var(--f-display); letter-spacing: -.015em; }
.tldr__list span { color: var(--ink-2); }

/* ---------- body: contents rail + article ---------- */
.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter) var(--section-gap);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(48px, 8vw, 128px);
  align-items: start;
}
.toc { position: sticky; top: 120px; }
.toc__h { font: 500 12px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 28px 1fr;
  font: 400 15px/1.35 var(--f-ui); color: var(--ink-2);
  transition: color .25s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font: 500 12px/1.7 var(--f-label); color: var(--muted); }
.toc a:hover, .toc a:focus-visible { color: var(--blue); }

.prose { max-width: 860px; font-size: 18px; color: var(--ink-2); }
.prose p, .prose > section > ul:not(.badges):not(.points) { max-width: 68ch; }
.prose > section + section { margin-top: clamp(72px, 8vw, 104px); }
.prose > section { scroll-margin-top: 120px; }
.prose h2 {
  font: 400 clamp(28px, 2.6vw, 36px)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 28px;
}
.prose h3 { font: 400 clamp(19px, 1vw + 14px, 22px)/1.25 var(--f-display); letter-spacing: -.01em; color: var(--ink); margin: 40px 0 14px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + .table, .prose .table + p, .prose ul + .table { margin-top: 18px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--blue);
}
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:not(.btn):hover { color: var(--blue); }

/* tables (wrapped so they scroll sideways on phones instead of the page) */
.table { overflow-x: auto; border-top: 1px solid var(--line); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.table caption { text-align: left; }
.table th, .table td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.table th { font: 500 12px/1.4 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table td:first-child { color: var(--ink); }

.callout {
  max-width: none !important;
  margin-top: 28px; padding: 28px 32px;
  border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 16px 16px 0;
}
.callout p + p { margin-top: 10px; }

/* ---------- security: standards badges ---------- */
.prose .badges {   /* .prose: beats .prose ul's gap: 12px */
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px;
}
.prose .badges > li, .prose .points > li { padding-left: 0; }
.prose .badges > li::before, .prose .points > li::before { content: none; }
/* open columns with a top rule, like .points below (no boxed cards; founder, 2026-11-24) */
.badges li {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding-top: 22px; border-top: 1px solid var(--line);
}
/* our own typographic mark: an outlined tile, no fill */
.badge {
  width: 56px; aspect-ratio: 1; border-radius: 14px;
  display: grid; place-content: center; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.badge b { font: 700 14px/1 var(--f-body); letter-spacing: .02em; text-transform: uppercase; }
.badge small { display: block; margin-top: 4px; font: 500 8.5px/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.badge--blue { background: var(--blue); color: oklch(100% 0 0); box-shadow: none; }
.badge--blue small { color: oklch(100% 0 0 / .8); }
.badges h3 { margin: 2px 0 6px; font-size: clamp(18px, .8vw + 14px, 20px); }
.badges p { font-size: 16px; }

/* ---------- security: what we do, as a grid ---------- */
.points {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px;
}
.points li { padding-top: 22px; border-top: 1px solid var(--line); }
.points h3 { margin: 0 0 8px; font-size: clamp(18px, .8vw + 14px, 20px); }
.points p { font-size: 16px; }

.lcta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .tldr__list { grid-template-columns: 1fr 1fr; }
  .tldr__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .tldr__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .badges, .points { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tldr__list { grid-template-columns: 1fr; }
  .tldr__list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- print: just the words ---------- */
@media print {
  .nav, .footer__big, .toc, .progress, .skip { display: none !important; }
  .legal { display: block; padding-top: 24px; }
  .prose { max-width: none; color: oklch(0% 0 0); }
  .prose a:not(.btn)::after { content: " (" attr(href) ")"; font-size: .85em; }
}
