/* ──────────────────────────────────────────────────────────────
   Exodocs: shared stylesheet for legal/document pages
   (privacy.html, terms.html). Matches the security.html design
   language: navy hero, DM Serif Display headings, Figtree body.
   ────────────────────────────────────────────────────────────── */

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

:root {
  --navy:      #0D1B2A;
  --navy-mid:  #152235;
  --blue:      #2B6CB0;
  --blue-lt:   #EBF4FF;
  --amber:     #ED8936;
  --green:     #38A169;
  --green-lt:  #F0FFF4;
  --text:      #1A2332;
  --muted:     #4A5568;
  --faint:     #718096;
  --border:    #E2E8F0;
  --bg:        #F7FAFC;
  --white:     #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.logo-icon svg { width: 17px; height: 17px; }
.logo-badge {
  width: 9px; height: 9px;
  background: var(--amber);
  border-radius: 50%;
  position: absolute;
  top: -3px; right: -3px;
  border: 2px solid white;
}
.logo-name { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 72px 40px 60px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(43,108,176,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(237,137,54,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(43,108,176,0.25);
  border: 1px solid rgba(43,108,176,0.4);
  color: #90CDF4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(34px, 5vw, 52px);
  color: white;
  line-height: 1.12;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
  font-weight: 300;
}
.hero-updated { font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.04em; }

/* ── TOC ── */
.toc-wrap { background: var(--bg); border-bottom: 1px solid var(--border); padding: 22px 40px; }
.toc { max-width: 820px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.toc a { font-size: 13px; font-weight: 500; color: var(--blue); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── DOCUMENT BODY ── */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 40px 88px; }
.intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  margin-bottom: 48px;
}

.section { margin-bottom: 48px; animation: fadeIn 0.5s ease both; }
.section:last-of-type { margin-bottom: 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-num {
  width: 30px; height: 30px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
}
.section h2 { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--text); line-height: 1.2; }

.section p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.section p:last-child { margin-bottom: 0; }
.section h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 22px 0 8px; }
.section a { color: var(--blue); text-decoration: none; }
.section a:hover { text-decoration: underline; }
.section strong { color: var(--text); }

.doc-list { list-style: none; margin: 8px 0 16px; }
.doc-list li {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  padding: 5px 0 5px 22px;
}
.doc-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px; height: 7px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}
.doc-list li strong { color: var(--text); }

code {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  background: rgba(0,0,0,0.05);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--navy);
}

/* Callout */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 10px;
  border-left: 4px solid var(--blue);
  background: var(--blue-lt);
  margin: 20px 0;
}
.callout.green { background: var(--green-lt); border-color: var(--green); }
.callout.amber { background: #FFF5EB; border-color: var(--amber); }
.callout svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.callout.green svg { color: var(--green); }
.callout.amber svg { color: var(--amber); }
.callout p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.callout p strong { color: var(--text); }

/* Contact card */
.contact-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
.contact-card h3 { font-family: 'DM Serif Display', serif; font-size: 21px; color: white; margin: 0 0 6px; }
.contact-card p { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 380px; margin: 0; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.contact-btn:hover { opacity: 0.9; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-name { font-family: 'DM Serif Display', serif; font-size: 18px; color: white; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-right { font-size: 12px; color: rgba(255,255,255,0.25); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 52px 20px 44px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero-sub { font-size: 15px; margin-bottom: 22px; }
  .toc-wrap { padding: 18px 16px; }
  .toc-label { display: none; }
  .doc { padding: 36px 16px 56px; }
  .intro { padding: 18px 18px; font-size: 15px; margin-bottom: 36px; }
  .section { margin-bottom: 40px; }
  .section h2 { font-size: 21px; }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 18px; }
  .contact-card p { max-width: 100%; }
  .contact-btn { width: 100%; justify-content: center; }
  footer { flex-direction: column; align-items: flex-start; padding: 32px 20px; gap: 20px; }
  .footer-links { gap: 14px; }
}

@media (max-width: 480px) {
  .hero { padding: 42px 16px 38px; }
  .doc { padding: 28px 16px 48px; }
  .section-num { width: 26px; height: 26px; font-size: 11px; }
  .section p, .doc-list li { font-size: 14px; }
}
