/* legal.css — shared styles for terms.html, privacy.html, refunds.html
   Tokens mirror the :root block in index.html. If the marketing site's
   palette changes, change it here too — these pages do not read index.html. */

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

:root {
  --asphalt: #141414;
  --asphalt-mid: #1f1f1f;
  --red: #CC2200;
  --chrome-dim: #8a8a8a;
  --amber: #F5A623;
  --off-white: #F0EDEA;
  --surface: #1c1c1c;
  --border: rgba(200,200,200,0.12);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--asphalt);
  color: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV — trimmed version of the index.html bar. The legal pages are a
   destination, not part of the sales flow, so the section anchors are
   dropped and only the route back to the site and to the app remain. */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--off-white);
  text-decoration: none;
}
.nav-logo span { color: var(--red); }
.nav-right { display: flex; gap: 1.5rem; align-items: center; }
.nav-right a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-right a:hover { color: var(--off-white); }

/* DOCUMENT */
.doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 8rem 1.75rem 5rem;
}

.doc-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.doc h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.doc-updated {
  font-size: 0.85rem;
  color: var(--chrome-dim);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.doc h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; }

.doc h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

.doc p { margin-bottom: 1rem; }
.doc ul, .doc ol { margin: 0 0 1rem 1.35rem; }
.doc li { margin-bottom: 0.5rem; }
.doc strong { color: #fff; font-weight: 600; }

.doc a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: #fff; }

/* Callout — used where a clause changes what someone should actually do,
   not for emphasis. Amber rule on the left, no card, no shadow. */
.note {
  border-left: 3px solid var(--amber);
  background: var(--surface);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.note p:last-child { margin-bottom: 0; }

/* Refund matrix */
.matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.matrix th, .matrix td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.matrix th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--off-white);
  border-bottom: 1px solid rgba(200,200,200,0.28);
}
.matrix td:first-child { color: #fff; font-weight: 500; width: 34%; }

/* FOOTER */
footer {
  background: #0c0c0c;
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  color: var(--off-white); margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--red); }
.footer-tag { font-size: 0.8rem; color: var(--chrome-dim); }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.8rem; color: var(--chrome-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--off-white); }
.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem; color: rgba(200,200,200,0.25);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem; margin-top: 0.5rem;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  nav { padding: 0 1.25rem; }
  .nav-right { gap: 1rem; }
  .doc { padding: 6.5rem 1.25rem 4rem; }
  footer { grid-template-columns: 1fr; padding: 2.5rem 1.25rem; }
  .footer-links { gap: 1.25rem; }
  .matrix { font-size: 0.85rem; }
  .matrix th, .matrix td { padding: 0.7rem 0.5rem; }
  .matrix td:first-child { width: 40%; }
}

@media print {
  nav, footer { display: none; }
  body { background: #fff; color: #000; }
  .doc { padding: 0; max-width: none; }
  .doc a { color: #000; }
  .note { border-left-color: #000; background: #f2f2f2; }
}
