/* Shared chrome for the legal pages and the 404 page.
   The homepage keeps its own copy of these rules inline. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #eeecea;
  --bg2: #f4f2ef;
  --border: #d4d0cb;
  --card-bg: #f9f8f6;
  --blue: #1a5fd4;
  --blue-light: #2d7df7;
  --teal: #0a9e84;
  --navy: #0f1f3d;
  --text: #1a1a1a;
  --muted: #6b6560;
  --muted-dark: #8a93a8;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: 72px;
}
a.nav-logo { text-decoration: none; color: inherit; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(11,14,20,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: none; gap: 32px; }
@media(min-width:900px) { .nav-links { display: flex; } }
.nav-links a { color: var(--muted-dark); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 1rem;
  transition: background 0.2s, transform 0.2s; white-space: nowrap;
}
.nav-phone:hover { background: var(--blue); transform: translateY(-1px); }
.nav-phone svg { width: 15px; height: 15px; }
@media(min-width:900px) { .nav-phone { display: none; } }
.nav-support {
  display: none; align-items: center; gap: 8px;
  background: var(--blue-light); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 1rem;
  transition: background 0.2s, transform 0.2s; white-space: nowrap;
}
.nav-support:hover { background: var(--blue); transform: translateY(-1px); }
.nav-support svg { width: 15px; height: 15px; flex-shrink: 0; }
@media(min-width:900px) { .nav-support { display: flex; } }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: 12px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px 0; transition: all 0.3s; border-radius: 2px;
}
@media(max-width:899px) { .nav-hamburger { display: block; } }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(11,14,20,0.97); backdrop-filter: blur(20px);
  z-index: 99; padding: 40px 5%;
  flex-direction: column; gap: 0;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: #e8edf5; text-decoration: none; font-size: 1.2rem; font-weight: 600;
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--blue-light); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.legal-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 48px 1.5rem 80px;
}
.legal-main h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.legal-main .meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }
.legal-main h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}
.legal-main p, .legal-main li { margin: 0 0 0.85rem; font-size: 1.05rem; }
.legal-main ul, .legal-main ol { padding-left: 1.25rem; margin: 0 0 0.85rem; }
.legal-main a { color: var(--blue); }
.legal-main a:hover { color: var(--navy); }
.legal-main .example {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  white-space: pre-wrap;
}
.not-found { padding-top: 72px; padding-bottom: 120px; }
.not-found .kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--blue-light);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 8px;
}
.btn-primary:hover { background: var(--blue); color: #fff; }

footer { background: var(--navy); padding: 56px 5% 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 1rem; color: #9aa3b8; line-height: 1.65; max-width: 320px; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.1em; color: #9aa3b8;
}
.footer-col a { display: block; color: #9aa3b8; text-decoration: none; font-size: 1rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: #9aa3b8; }
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: #9aa3b8; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

@media(max-width:600px) {
  nav { padding: 0 4%; }
}
