/* ── Legal page layout ───────────────────────────────────────── */
footer { padding: 40px 0 32px; }

.legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  padding: 80px 0 120px;
  align-items: start;
}

/* ── Sidebar TOC ────────────────────────────────────────────── */
.toc {
  position: sticky;
  top: 92px;
}
.toc-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.toc-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 2px;
}
.toc-list a {
  display: block;
  font-size: 13px; color: var(--text-2);
  padding: 7px 12px; border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.15s; line-height: 1.4;
}
.toc-list a:hover {
  color: var(--text-0);
  background: rgba(255,255,255,0.03);
}
/* Per-page accent colours set inline on the element via data-accent or overriding in page-specific styles */

/* ── Legal header ───────────────────────────────────────────── */
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.legal-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 16px;
}
.legal-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 20px;
}
.legal-header h1 .holo {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-meta {
  display: flex; gap: 24px; align-items: center;
  flex-wrap: wrap; margin-top: 24px;
}
.legal-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
}
.legal-meta-item .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-3);
}

/* ── Sections ───────────────────────────────────────────────── */
.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}
.legal-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-0);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.legal-section h2 .sec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 400;
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.05em; flex-shrink: 0;
}
.legal-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-0); margin: 24px 0 12px;
  letter-spacing: -0.01em;
}
.legal-section p {
  font-size: 15px; line-height: 1.75;
  color: var(--text-1); margin-bottom: 16px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul,
.legal-section ol {
  margin: 12px 0 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.legal-section ul li,
.legal-section ol li {
  font-size: 15px; line-height: 1.7; color: var(--text-1);
}
.legal-section a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

/* ── Callout boxes ──────────────────────────────────────────── */
.callout {
  padding: 20px 24px; border-radius: 12px; margin: 24px 0;
}
.callout p {
  font-size: 14px; color: var(--text-1); line-height: 1.65; margin: 0;
}
.callout strong { color: var(--text-0); }

/* ── Data table ─────────────────────────────────────────────── */
.data-table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0; font-size: 14px;
}
.data-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); text-align: left;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.data-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  color: var(--text-1); line-height: 1.5; vertical-align: top;
}
.data-table td:first-child { color: var(--text-0); font-weight: 500; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }

/* ── Commitment grid (privacy overview) ─────────────────────── */
.commitment-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 32px 0;
}
.commitment-card {
  padding: 20px; border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
}
.commitment-card .icon {
  width: 36px; height: 36px; border-radius: 10px;
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.commitment-card .icon.cyan-bg   { background: rgba(6,182,212,0.12); }
.commitment-card .icon.violet-bg { background: rgba(124,58,237,0.12); }
.commitment-card .icon.green-bg  { background: rgba(34,197,94,0.12); }
.commitment-card strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--text-0); margin-bottom: 6px;
}
.commitment-card span { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* ── Rights grid (privacy) ──────────────────────────────────── */
.rights-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 20px 0;
}
.right-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
}
.right-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.right-item .t1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--text-0); margin-bottom: 4px;
}
.right-item .t2 { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* ── Divider ────────────────────────────────────────────────── */
.legal-divider { height: 1px; background: var(--line); margin: 48px 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .commitment-grid { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}
@media (max-width: 600px) {
  .legal-wrap { padding: 48px 0 80px; }
}
