/* ============================================================
   Choyce Landing — legal pages (Privacy, Terms, Cookies, etc.)
   Inherits the design tokens from styles.css (light + dark).
   ============================================================ */

.legal-back {
  font-size: .9rem;
  font-weight: 600;
  color: var(--header-fg, var(--text));
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.legal-back:hover { color: var(--primary); }

/* ---- Layout ------------------------------------------------ */
.legal {
  padding: calc(72px + 3rem) 0 4rem;
}
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
}

/* ---- Document header -------------------------------------- */
.legal-head { margin-bottom: 2.5rem; }
.legal-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .75rem;
}
.legal h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 .75rem;
}
.legal-meta {
  font-size: .9rem;
  color: var(--text-muted);
}
.legal-meta strong { color: var(--text-soft); font-weight: 600; }
.legal-intro {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ---- Table of contents ----------------------------------- */
.legal-toc {
  margin: 2rem 0 2.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.legal-toc h2 {
  font-family: "Poppins", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .85rem;
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }
.legal-toc li { counter-increment: toc; margin: 0 0 .5rem; break-inside: avoid; }
.legal-toc a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .92rem;
}
.legal-toc a::before {
  content: counter(toc) ". ";
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.legal-toc a:hover { color: var(--primary); }

/* ---- Prose ------------------------------------------------ */
.legal-body { font-size: 1rem; line-height: 1.75; color: var(--text-soft); }
.legal-body section { padding-top: .5rem; }
.legal-body h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
  margin: 2.75rem 0 1rem;
  scroll-margin-top: 92px;
}
.legal-body h2 .num {
  color: var(--accent-dark);
  font-size: 1.1rem;
  margin-right: .4rem;
  font-variant-numeric: tabular-nums;
}
.legal-body h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
  margin: 1.75rem 0 .6rem;
  scroll-margin-top: 92px;
}
.legal-body p { margin: 0 0 1.1rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.legal-body li { margin: 0 0 .5rem; }
.legal-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.legal-body a:hover { text-decoration-color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body abbr { text-decoration: none; border-bottom: 1px dotted var(--text-muted); cursor: help; }

/* Uppercase emphasis blocks common in liability/warranty clauses */
.legal-body .legal-caps {
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .01em;
}

/* Callout / important notice */
.legal-note {
  margin: 1.5rem 0;
  padding: 1.1rem 1.35rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: .96rem;
  line-height: 1.65;
}
.legal-note strong { color: var(--text); }

/* Definition-style rows */
.legal-body dl { margin: 0 0 1.2rem; }
.legal-body dt { font-weight: 600; color: var(--text); margin-top: .75rem; }
.legal-body dd { margin: 0 0 .25rem; }

/* Tables (e.g. cookie tables, data categories) */
.legal-tablewrap { overflow-x: auto; margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 520px;
}
.legal-body th, .legal-body td {
  text-align: left;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-body thead th {
  background: var(--accent-muted);
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* Back-to-top + footer legal nav */
.legal-toplink {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.legal-footer-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.legal-footer-nav a { color: var(--text-soft); text-decoration: none; font-size: .85rem; }
.legal-footer-nav a:hover { color: var(--primary); }

/* Print — clean, ink-friendly */
@media print {
  .site-header, .site-footer, .legal-back, .legal-toplink { display: none !important; }
  .legal { padding: 0; }
  .legal-body a { color: #000; text-decoration: none; }
  body { background: #fff; color: #000; }
}
