:root {
  --blue-700: #2563eb; --blue-100: #eff6ff;
  --ink: #0f1e38; --ink-mid: #374151; --muted: #6b7280; --subtle: #9ca3af;
  --white: #ffffff; --off: #f8faff; --line: #e5e7eb; --line-mid: #d1d5db;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h: 72px; --max: 1200px; --radius-md: 8px; --radius-xl: 16px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--ink-mid); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* NAV */
nav#navbar { position: fixed; top: 0; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 999; transition: box-shadow .3s; }
nav#navbar.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.nav-container { max-width: var(--max); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); transition: height .3s; }
nav#navbar.scrolled .nav-container { height: 56px; }
.scrolled .nav-logo img { padding: 0; height: 45px; }
.nav-logo { display: flex; align-items: center; align-self: stretch; }
.nav-logo img { padding: 5px 0; height: var(--nav-h); width: auto; object-fit: contain; }
.nav-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 50px; margin-left: 60px; }
.nav-link { font-size: .95rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav-link:hover { color: var(--blue-700); }
.nav-cta { background: var(--ink); color: #fff; font-size: .875rem; font-weight: 700; padding: 10px 22px; border-radius: var(--radius-md); transition: opacity .2s; display: inline-block; }
.nav-cta:hover { opacity: .85; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.nav-sep { width: 1px; height: 16px; background: #d1d5db; flex-shrink: 0; }

/* LAYOUT */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.page-wrap { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 80px) 40px 100px; }

/* HERO */
.page-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-700); margin-bottom: 16px; display: block; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; color: var(--ink); margin-bottom: 12px; }
.page-meta { font-size: .875rem; color: var(--subtle); margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }

/* CONTENT */
.legal-section { margin-bottom: 48px; }
.legal-section h2 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal-section p { font-size: .975rem; line-height: 1.8; color: var(--ink-mid); margin-bottom: 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 12px 0 14px 0; display: flex; flex-direction: column; gap: 10px; list-style: none; }
.legal-section li { font-size: .975rem; line-height: 1.7; color: var(--ink-mid); display: flex; gap: 12px; align-items: flex-start; }
.legal-section li::before { content: '—'; color: var(--blue-700); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.legal-section li strong { color: var(--ink); font-weight: 700; }

.legal-section table { width: 100%; border-collapse: collapse; margin: 16px 0 14px; font-size: .9rem; }
.legal-section th { text-align: left; font-weight: 700; color: var(--ink); background: var(--blue-100); padding: 10px 14px; border: 1px solid var(--line-mid); }
.legal-section td { padding: 10px 14px; border: 1px solid var(--line); color: var(--ink-mid); line-height: 1.6; vertical-align: top; }
.legal-section tr:nth-child(even) td { background: var(--off); }

.contact-box { background: var(--off); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; margin-top: 48px; }
.contact-box h2 { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.contact-box p { font-size: .9rem; color: var(--ink-mid); line-height: 1.7; }
.contact-box a { color: var(--blue-700); }

/* FOOTER */
footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-tagline { font-size: .85rem; color: var(--muted); line-height: 1.6; max-width: 240px; }
.footer-col h3 { font-size: .75rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); margin-bottom: 20px; }
.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: .85rem; color: var(--muted); transition: color .15s; }
.footer-link:hover { color: var(--blue-700); }
.footer-bottom { padding-top: 32px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--subtle); text-align: center; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .page-wrap { padding-left: 20px; padding-right: 20px; }
  .nav-container { padding: 0 20px; }
  .nav-center { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #0f1e38; color: #e5e7eb;
  padding: 20px 40px; border-top: 1px solid rgba(255,255,255,.1);
  animation: cookieSlide .35s ease;
}
@keyframes cookieSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cookie-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 260px; }
.cookie-text strong { font-size: .9rem; font-weight: 700; color: #fff; }
.cookie-text span { font-size: .83rem; line-height: 1.6; color: #9ca3af; }
.cookie-text a { color: #60a5fa; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .85rem; font-weight: 700;
  padding: 10px 22px; border-radius: 8px; cursor: pointer; border: none;
  transition: opacity .2s;
}
.cookie-btn:hover { opacity: .85; }
.cookie-decline {
  background: transparent; color: #9ca3af;
  border: 1px solid rgba(255,255,255,.2);
}
.cookie-decline:hover { color: #fff; border-color: rgba(255,255,255,.5); opacity: 1; }
.cookie-accept { background: #2563eb; color: #fff; }
@media (max-width: 640px) {
  #cookie-banner { padding: 20px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

.contact-detail { margin-top: 12px; }

/* ===== TERMS-PAGE OVERRIDES (unique rules from terms.html) ===== */
/* terms.html uses standard list bullets rather than the arrow pseudo-element pattern */
body.terms-page .legal-section ul { margin: 12px 0 14px 20px; display: flex; flex-direction: column; gap: 8px; list-style: disc; }
body.terms-page .legal-section li { display: list-item; gap: 0; align-items: unset; }
body.terms-page .legal-section li::before { content: none; }
