/* Truked legal pages — shared styles.
   Matches the tokens / typography of index.html so /privacy, /terms,
   and /driver-terms feel like part of the same site. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --ink: #0A0F1E;
  --ink2: #141E33;
  --ink3: #1C2B4A;
  --signal: #FF5C28;
  --signal-glow: rgba(255, 92, 40, 0.25);
  --green: #22C55E;
  --amber: #F59E0B;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.35);
  --text: #F1F5F9;
  --muted: #94A3B8;
  --border: #2A3B55;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav (simplified, matches index.html styling) ───────────────── */
nav.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 59, 85, 0.5);
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo-truk { color: var(--text); }
.logo-ed   { color: var(--signal); }
.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* ── Page layout ───────────────────────────────────────────────── */
main.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.meta strong { color: var(--text); }

/* ── DRAFT banner ──────────────────────────────────────────────── */
.draft-banner {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 32px;
  color: var(--amber);
  font-size: 14px;
  line-height: 1.6;
}
.draft-banner strong { color: #FCD34D; }

/* ── Typography ────────────────────────────────────────────────── */
main.legal h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  margin: 8px 0 20px;
  line-height: 1.15;
}
main.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.3px;
}
main.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
}
main.legal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
  letter-spacing: 0;
}
main.legal h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 24px 0 8px;
}
main.legal p {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 15px;
}
main.legal em  { color: var(--muted); font-style: italic; }
main.legal strong { color: var(--text); font-weight: 700; }

main.legal ul,
main.legal ol {
  margin: 0 0 16px 24px;
  padding: 0;
}
main.legal li {
  margin-bottom: 8px;
  font-size: 15px;
}
main.legal li::marker { color: var(--muted); }

main.legal a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
main.legal a:hover { color: #FF7A4D; }

main.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

main.legal blockquote {
  border-left: 3px solid var(--signal);
  background: var(--ink2);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 14px;
}

main.legal code {
  background: var(--ink2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--text);
}

/* ── Tables ────────────────────────────────────────────────────── */
main.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
main.legal th,
main.legal td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
main.legal th {
  background: var(--ink2);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}
main.legal td { color: var(--text); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  main.legal h1 { font-size: 30px; }
  main.legal h2 { font-size: 19px; }
  .nav-inner    { padding: 0 16px; }
  main.legal    { padding: 32px 16px 64px; }
}

/* ── Simple footer ─────────────────────────────────────────────── */
footer.legal-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 12px;
}
footer.legal-footer a:hover { color: var(--text); }
