/* --------------------------------------------------------------------
   legal.css — shared shell + prose styles for the standalone legal
   pages (privacy.html, terms.html).

   The landing page keeps its layout CSS inline in index.html; these
   pages share this file instead of duplicating it twice. Design tokens
   (colors, radii, spacing) all come from colors_and_type.css.
   -------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-header: "Inter", -apple-system, system-ui, sans-serif;
  --font-body:   "Inter", -apple-system, system-ui, sans-serif;
  --max-w-prose: 760px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep-slate);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: rgba(28, 30, 33, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(58, 61, 69, 0.6);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 30px; height: 30px; border-radius: 7px; }
.nav-logo span {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent-amber);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 120ms ease;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }
.nav-cta i { width: 14px; height: 14px; }

/* ── DOCUMENT ── */
.doc {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 130px 24px 80px;
}

.doc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint-amber-13);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.doc-eyebrow i { width: 13px; height: 13px; }

.doc h1 {
  font-family: var(--font-header);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.doc-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc h2 {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
  scroll-margin-top: 80px;
}

.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text-primary);
}

.doc p,
.doc li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.doc p { margin-bottom: 16px; }

.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 9px; }
.doc li strong { color: var(--text-primary); font-weight: 600; }

.doc strong { color: var(--text-primary); font-weight: 600; }

.doc a:not(.nav-logo):not(.nav-cta):not(.btn-doc):not(.support-card) {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 120ms ease;
}
.doc a:not(.nav-logo):not(.nav-cta):not(.btn-doc):not(.support-card):hover { opacity: 0.8; }

/* Lead-in summary card ("the short version") */
.doc-callout {
  background: var(--card-stainless);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  margin-bottom: 8px;
}
.doc-callout h2 { margin-top: 0; font-size: 18px; }
.doc-callout p:last-child,
.doc-callout ul:last-child { margin-bottom: 0; }

/* Subprocessor / disclosure table */
.doc-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.doc table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th, .doc td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.5;
  vertical-align: top;
}
.doc th {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}
.doc td:first-child { color: var(--text-primary); font-weight: 500; white-space: nowrap; }

/* ── SUPPORT PAGE ── */

/* Primary "email us" action */
.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent-amber);
  color: var(--text-on-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 120ms ease;
}
.btn-doc:hover { opacity: 0.88; }
.btn-doc i { width: 16px; height: 16px; }

.doc-contact-note {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 14px;
}

/* Topic cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.support-card {
  display: block;
  background: var(--card-stainless);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.support-card:hover { border-color: var(--accent-amber); transform: translateY(-2px); }

.support-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-inline);
  background: var(--tint-amber-13);
  color: var(--accent-gold);
  margin-bottom: 12px;
}
.support-card-icon i { width: 17px; height: 17px; }

.support-card h3 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.support-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ── FOOTER ── */
footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 24px; height: 24px; border-radius: 6px; opacity: 0.7; }
.footer-logo span { font-size: 15px; font-weight: 600; color: var(--text-secondary); }

.footer-copy { font-size: 13px; color: var(--text-tertiary); }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 120ms ease;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .doc { padding: 110px 20px 64px; }
  .doc h1 { font-size: 32px; }
  .doc h2 { font-size: 20px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
