/* ══════════════════════════════════════════════════════════════════════
   LEGAL & TRUST PAGES
   Shared styles for /privacy/, /terms/ and /trust/. Layers on top of
   styles.css and reuses its tokens, nav, footer and .fade-in reveal, and
   borrows the breadcrumb + hero rhythm from css/landing.css so these pages
   read as part of the site rather than a bolted-on legal microsite.

   These pages are long-form reading documents, so the type is set for
   sustained reading: wider line-height, a hard measure cap, and generous
   spacing between clauses. A prospect's security reviewer will actually
   read this page top to bottom — it should not fight them.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Content band ──────────────────────────────────────────────────────
   These pages are documents, not marketing pages: the body is capped at a
   68ch reading measure, which inside the site's full 1200px container left
   a large stranded gutter at desktop widths. Narrowing the band inside
   <main> keeps the crumbs, hero, body and closing CTA aligned with one
   another while the nav and footer keep full site width. */
.doc-page main .container { max-width: 1040px; }

/* ── Document shell ── */
.doc-hero { padding: 2.5rem 0 3rem; }
.doc-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.12;
  color: var(--text-light);
  margin: 1rem 0 1.1rem;
  max-width: 22ch;
}
.doc-lede {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0 0 1.75rem;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(184,134,11,0.14);
  max-width: 64ch;
}
.doc-meta strong { color: var(--gold); font-weight: 500; }

/* ── Two-column layout: sticky contents rail + body ── */
.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  padding: 3rem 0 4.5rem;
  border-top: 1px solid rgba(184,134,11,0.12);
}
.doc-toc { position: sticky; top: 6.5rem; }
.doc-toc h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.9rem;
  font-weight: 600;
}
.doc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.doc-toc li { counter-increment: toc; margin: 0 0 0.05rem; }
.doc-toc a {
  display: block;
  padding: 0.4rem 0.6rem 0.4rem 0;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.8rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.doc-toc a:hover { color: var(--text-light); border-left-color: var(--gold); }

/* ── Body copy ── */
.doc-body { max-width: 68ch; }
.doc-body section { padding: 0 0 2.6rem; scroll-margin-top: 6.5rem; }
.doc-body h2 {
  font-size: clamp(1.15rem, 2.1vw, 1.42rem);
  line-height: 1.25;
  color: var(--text-light);
  margin: 0 0 1rem;
  padding-top: 0.4rem;
}
.doc-body h3 {
  font-size: 0.98rem;
  color: var(--gold-light);
  margin: 1.6rem 0 0.6rem;
  font-weight: 600;
}
.doc-body p,
.doc-body li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.doc-body p { margin: 0 0 1rem; }
.doc-body ul, .doc-body ol { margin: 0 0 1.15rem; padding-left: 1.15rem; }
.doc-body li { margin: 0 0 0.5rem; }
.doc-body strong { color: var(--text-light); font-weight: 600; }
.doc-body a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(184,134,11,0.35); }
.doc-body a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Callout — used for the "this is an estimate, not advice" style warnings
   that keep the assessment tools from reading as regulated advice. */
.doc-note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: rgba(184,134,11,0.05);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.4rem;
}
.doc-note p:last-child { margin-bottom: 0; }
.doc-note-t {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ── Data tables (subprocessors, retention, rights) ── */
.doc-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.doc-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.doc-table th {
  text-align: left;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  padding: 0 0.9rem 0.65rem 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.doc-table td {
  padding: 0.8rem 0.9rem 0.8rem 0;
  border-bottom: 1px solid rgba(184,134,11,0.09);
  color: var(--text-muted);
  line-height: 1.6;
  vertical-align: top;
}
.doc-table td:first-child { color: var(--text-light); font-weight: 500; }

/* ── Trust Center: control-status board ── */
.trust-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 0 0 1.6rem;
}
.trust-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
  background: rgba(255,255,255,0.015);
}
.trust-card h3 {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0 0 0.55rem;
  font-weight: 600;
}
.trust-card p { font-size: 0.85rem; line-height: 1.65; color: var(--text-muted); margin: 0; }

/* Status pill. `.is-progress` and `.is-planned` are deliberately distinct
   from `.is-live` — an in-flight certification must never be able to read
   as a completed one at a glance. */
.trust-pill {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  border: 1px solid;
}
.trust-pill.is-live     { color: #7FD1A0; border-color: rgba(127,209,160,0.4); background: rgba(127,209,160,0.08); }
.trust-pill.is-progress { color: var(--gold-light); border-color: rgba(212,160,32,0.4); background: rgba(212,160,32,0.08); }
.trust-pill.is-planned  { color: var(--text-muted); border-color: rgba(154,136,112,0.35); background: rgba(154,136,112,0.06); }

/* ── Closing CTA (mirrors .lp-cta so the page ends like every other) ── */
.doc-cta { padding: 0 0 5rem; }
.doc-cta-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.4rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(184,134,11,0.055), rgba(184,134,11,0));
}
.doc-cta-box h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--text-light);
  margin: 0 0 0.8rem;
}
.doc-cta-box p {
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 auto 1.6rem;
  line-height: 1.75;
  font-size: 0.94rem;
}
.doc-cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.2rem; }
  .doc-toc {
    position: static;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
  }
  .doc-toc ol { columns: 2; column-gap: 1.5rem; }
  .doc-toc a { padding-left: 0; border-left: none; }
  .doc-toc a:hover { border-left: none; }
}
@media (max-width: 560px) {
  .doc-toc ol { columns: 1; }
  .doc-cta-box { padding: 1.8rem 1.2rem; }
}
