/* modules/sales-page/legal.css
   Shared stylesheet for privacy-policy.html and terms-of-service.html.
   Deliberately separate from sales-page.css (not because the styling
   differs much, but because these two pages are a distinct concern —
   plain legal documents, not marketing) — consumes the same shared
   brand tokens from shared/styles/base.css, same as sales-page.css does.
   Prefixed .legal__* per the module convention (Section 3, rule 5 of
   PROJECT_HANDOFF.md). */

.legal {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.legal a { color: var(--blue); }

/* ---------- Nav (simplified — no mobile burger/menu needed, this is a
   read-only document, not a marketing page with multiple sections to
   jump between) ---------- */
.legal__nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 15, 28, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.legal__nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.legal__brand img { width: 24px; height: 24px; border-radius: 6px; }

.legal__nav-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  text-decoration: none;
}

.legal__nav-back:hover { color: var(--text); }

/* ---------- Document body ---------- */
.legal__container {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) 80px;
}

.legal__title {
  margin: 24px 0 4px;
  font-size: 28px;
  font-weight: 700;
}

.legal__updated {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--sub);
}

.legal__notice {
  margin: 0 0 32px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  line-height: 1.6;
  color: var(--sub);
}

.legal__section {
  margin: 0 0 28px;
}

.legal__section h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.legal__section h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 6px;
}

.legal__section p,
.legal__section li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--txt-mid, var(--text));
}

.legal__section ul,
.legal__section ol {
  margin: 6px 0 12px;
  padding-left: 22px;
}

.legal__section li { margin-bottom: 6px; }

.legal__section a { text-decoration: underline; }

.legal__toc {
  margin: 0 0 32px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.legal__toc h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sub);
  margin: 0 0 10px;
}

.legal__toc ol {
  margin: 0;
  padding-left: 18px;
}

.legal__toc li {
  font-size: 13px;
  margin-bottom: 4px;
}

.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.legal__footer {
  border-top: 1px solid var(--border);
  padding: 20px var(--space-4);
}

.legal__footer-inner {
  max-width: 760px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--sub);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal__footer-inner a { color: var(--sub); }
.legal__footer-inner a:hover { color: var(--text); }
