/* ============================================================
   CHECKBOX — legal & support documents · "Electric on black"
   Shares tokens/nav/footer with /css/landing.css (loaded first).
   This file only styles the document body itself.
   ============================================================ */

.legal-wrap {
  position: relative;
  max-width: 768px;
  margin: 0 auto;
  padding: 148px 24px 96px;
}
@media (max-width: 640px) {
  .legal-wrap { padding: 124px 20px 72px; }
}

/* ── Document header ────────────────────────────────────────── */
.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--cy);
  text-transform: uppercase;
}
.legal-title {
  margin: 14px 0 0;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-3);
}
.legal-lead {
  margin: 26px 0 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-2);
}
.legal-lead b, .legal-lead strong { color: var(--text); font-weight: 600; }

/* ── On this page ───────────────────────────────────────────── */
.legal-toc {
  margin: 36px 0 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--text-3);
  text-transform: uppercase;
}
.legal-toc ol {
  margin: 12px 0 0;
  padding: 0 0 0 2px;
  list-style: none;
  columns: 2;
  column-gap: 28px;
}
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
.legal-toc li { break-inside: avoid; padding: 3.5px 0; }
.legal-toc a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease);
}
.legal-toc a:hover { color: var(--cy); }
.legal-toc .n {
  display: inline-block;
  min-width: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

/* ── Body typography ────────────────────────────────────────── */
.legal-doc { margin-top: 22px; }
.legal-doc h2 {
  margin: 52px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  scroll-margin-top: 110px;
}
.legal-doc h2 .n {
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cy);
  letter-spacing: .04em;
}
.legal-doc h3 {
  margin: 30px 0 0;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--text);
  scroll-margin-top: 110px;
}
.legal-doc p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}
.legal-doc p b, .legal-doc p strong,
.legal-doc li b, .legal-doc li strong { color: var(--text); font-weight: 600; }
.legal-doc ul {
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
}
.legal-doc ul li {
  position: relative;
  margin: 9px 0 0;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}
.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cy);
  opacity: .8;
}
.legal-doc a { font-weight: 550; }

/* ── Data / processor tables ────────────────────────────────── */
.legal-table-wrap {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow-x: auto;
}
.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}
.legal-table th {
  padding: 13px 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.legal-table td {
  padding: 13px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* ── Callout card (contact, key facts) ──────────────────────── */
.legal-card {
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.legal-card p { margin: 8px 0 0; }
.legal-card p:first-child { margin-top: 0; }

/* ── Numbered step list (delete-account, support) ───────────── */
.legal-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: legalstep;
}
.legal-steps li {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 52px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  counter-increment: legalstep;
}
.legal-steps li:last-child { border-bottom: none; }
.legal-steps li::before {
  content: counter(legalstep);
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cy);
}
.legal-steps li b, .legal-steps li strong { color: var(--text); font-weight: 600; }

/* ── Support page cards ─────────────────────────────────────── */
.support-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}
@media (max-width: 640px) { .support-cards { grid-template-columns: 1fr; } }
.support-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
a.support-card:hover { border-color: var(--glass-line); transform: translateY(-1px); }
.support-well {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.support-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.support-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.support-card-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--cy);
}

/* ── Closing hand-written sign-off ──────────────────────────── */
.legal-signoff {
  margin-top: 64px;
  text-align: center;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 21px;
  color: var(--text-3);
}
