/* ============================================================
   Bootheo — Legal pages (Privacy, Terms)
   Inherits brand tokens from styles.css (loaded first).
   Light editorial reading layout · Bolt accent · slate ink.
   ============================================================ */

.legal {
  background: var(--slate-50);
  min-height: 100vh;
}

/* ---- Masthead ---- */
.legal__head {
  border-bottom: 1px solid var(--border-light);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(42,127,255,0.05), transparent 55%),
    var(--slate-50);
}
.legal__head .wrap { padding: 64px var(--gutter) 52px; }
.legal__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bolt-700);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.legal__eyebrow .tick { width: 6px; height: 6px; border-radius: 50%; background: var(--bolt-500); }
.legal__title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 18px 0 0;
  color: var(--slate-950);
}
.legal__meta {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mute-light);
}
.legal__meta b { color: var(--slate-950); font-weight: 500; }
.legal__meta a { color: var(--bolt-700); text-decoration: none; }
.legal__meta a:hover { text-decoration: underline; }

/* ---- Body layout: TOC + prose ---- */
.legal__body .wrap {
  padding: 56px var(--gutter) 88px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 900px) {
  .legal__body .wrap {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

/* ---- Table of contents ---- */
.toc {
  position: sticky;
  top: 92px;
  font-size: 14px;
  border-left: 1px solid var(--border-light);
  padding-left: 0;
}
.toc__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-light);
  padding: 0 0 12px 18px;
  display: block;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 0 7px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--slate-500);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc a:hover { color: var(--slate-950); }
.toc a.is-active { color: var(--bolt-700); border-left-color: var(--bolt-500); font-weight: 500; }
@media (max-width: 899px) { .toc { display: none; } }

/* ---- Prose ---- */
.prose { max-width: 72ch; }
.prose h2 {
  font-size: 25px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--slate-950);
  margin: 52px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  scroll-margin-top: 92px;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--slate-950);
  margin: 30px 0 0;
  letter-spacing: -0.01em;
}
.prose p {
  font-size: 16px;
  line-height: 1.62;
  color: #2b313c;
  margin: 14px 0 0;
}
.prose ul { margin: 16px 0 0; padding: 0; list-style: none; }
.prose li {
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: #2b313c;
  padding-left: 24px;
  margin: 11px 0 0;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bolt-500);
}
.prose a { color: var(--bolt-700); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* Bold paragraph → emphasized callout (e.g. "Important:", deletion stages) */
.prose .callout {
  margin: 18px 0 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--bolt-500);
  border-radius: 0 10px 10px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--slate-950);
}
.prose .callout strong, .prose .callout b { font-weight: 600; }

/* All-caps legal blocks (disclaimers / liability) get a quieter, denser treatment */
.prose p.legalcaps {
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--slate-500);
}

/* ---- Back-to-top / footer spacing already from styles.css .foot ---- */
.legal__return {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
}
.legal__return a {
  color: var(--bolt-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legal__return a:hover { text-decoration: underline; }

/* Simplified nav variant for legal pages */
.nav--legal .nav__links a:not(.nav__cta) { color: var(--slate-500); }
.nav--legal .nav__links a:not(.nav__cta):hover { color: var(--slate-950); }
