/* Shared styles for Vantway legal/policy pages
   (privacy, terms, cookies, trust)
   Matches the navy + DM Serif Display aesthetic used on the rest of the site. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: #0A1628;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Background layers ────────────────────────────── */
.bg-glow-1 {
  position: fixed; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,58,107,0.55) 0%, transparent 70%);
  top: -300px; right: -200px; pointer-events: none; z-index: 0;
}
.bg-glow-2 {
  position: fixed; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,125,210,0.08) 0%, transparent 70%);
  bottom: -200px; left: -100px; pointer-events: none; z-index: 0;
}
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2) 15%, rgba(0,0,0,0.2) 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2) 15%, rgba(0,0,0,0.2) 85%, transparent);
  pointer-events: none; z-index: 0;
}

/* ── Nav (shared with rest of site) ───────────────── */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.3s ease, box-shadow 0.3s ease; }
#nav.scrolled { background: rgba(10, 22, 40, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.nav-link { color: rgba(255,255,255,0.65); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; transition: color 0.2s ease; }
.nav-link:hover { color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 0; font-family: inherit; color: rgba(255,255,255,0.65); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s ease; }
.nav-dropdown-trigger:hover { color: #fff; }
.nav-dropdown-trigger:focus-visible { outline: 2px solid rgba(45,125,210,0.6); outline-offset: 4px; border-radius: 2px; }
.nav-dropdown-trigger .chev { width: 10px; height: 10px; transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); opacity: 0.75; }
.nav-dropdown[data-open="true"] .chev { transform: rotate(180deg); }
.nav-dropdown-panel { position: absolute; top: calc(100% + 14px); left: 50%; min-width: 200px; background: rgba(10, 22, 40, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 2px 6px rgba(45,125,210,0.1); opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-6px); transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); z-index: 110; }
.nav-dropdown-panel::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown[data-open="true"] .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-item { display: block; padding: 10px 14px; border-radius: 6px; color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.nav-dropdown-item:hover, .nav-dropdown-item:focus-visible { background: rgba(45,125,210,0.14); color: #fff; outline: none; }
.m-group-label { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(168,200,240,0.45); font-weight: 600; margin-top: 4px; }
.m-sub-link { padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.08); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #2D7DD2; color: #fff; font-size: 0.875rem; font-weight: 500; padding: 10px 22px; border-radius: 8px; text-decoration: none; letter-spacing: 0.01em; transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; box-shadow: 0 2px 8px rgba(45,125,210,0.3), 0 1px 2px rgba(45,125,210,0.2); cursor: pointer; border: none; }
.btn-primary:hover { background: #2570C4; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(45,125,210,0.4), 0 2px 4px rgba(45,125,210,0.2); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid #2D7DD2; outline-offset: 3px; }

/* Mobile-menu styles for legal pages mirror what nav.html injects globally. */

/* ── Footer ──────────────────────────────────────── */
footer { background: #060e1a; border-top: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 1; }
.footer-link { color: rgba(168,200,240,0.55); font-size: 0.875rem; text-decoration: none; transition: color 0.2s ease; }
.footer-link:hover { color: rgba(168,200,240,0.9); }

/* ── Legal-page typography & layout ──────────────── */
.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(168,200,240,0.55);
}
.legal-eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: rgba(45,125,210,0.5);
}
.legal-h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
}
.legal-lede {
  font-size: 1rem; line-height: 1.7;
  color: rgba(168,200,240,0.75);
  max-width: 640px;
}
.legal-meta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(168,200,240,0.12);
  background: rgba(255,255,255,0.025);
  border-radius: 999px;
  font-size: 0.8125rem; color: rgba(168,200,240,0.75);
}
.legal-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #1DB87A; box-shadow: 0 0 0 3px rgba(29,184,122,0.18); }

.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Sidebar TOC */
.toc {
  position: sticky; top: 100px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
}
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-thumb { background: rgba(168,200,240,0.12); border-radius: 2px; }
.toc-label {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(168,200,240,0.4);
  margin-bottom: 14px;
}
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 12px; border-radius: 6px;
  font-size: 0.8125rem; color: rgba(168,200,240,0.6);
  text-decoration: none; line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.toc-link .num { font-size: 0.6875rem; color: rgba(168,200,240,0.35); font-variant-numeric: tabular-nums; min-width: 16px; }
.toc-link:hover { color: #fff; background: rgba(45,125,210,0.08); }
.toc-link.is-active { color: #fff; background: rgba(45,125,210,0.12); border-left-color: #2D7DD2; }
@media (max-width: 880px) {
  .toc { position: static; max-height: none; padding: 18px; border: 1px solid rgba(168,200,240,0.1); border-radius: 14px; background: rgba(255,255,255,0.025); }
}

/* Sections */
.section { padding-top: 56px; scroll-margin-top: 90px; }
.section:first-child { padding-top: 0; }
.section-num {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem; font-weight: 400; font-style: italic;
  color: rgba(45,125,210,0.85);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.section-h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 18px;
}
.section-h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(168,200,240,0.85);
  margin-top: 28px; margin-bottom: 12px;
}
.prose p {
  font-size: 0.95rem; line-height: 1.75;
  color: rgba(229,236,247,0.78);
  margin-bottom: 14px;
}
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: #5fa3df; text-decoration: underline; text-decoration-color: rgba(95,163,223,0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: rgba(95,163,223,1); }
.prose ul { list-style: none; padding: 0; margin: 0 0 14px; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem; line-height: 1.7;
  color: rgba(229,236,247,0.78);
  margin-bottom: 8px;
}
.prose ul li::before {
  content: ''; position: absolute;
  left: 4px; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(45,125,210,0.7);
}
.prose ul li strong { color: #fff; }

/* Table style used in Trust Center */
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 6px 0 18px;
  border: 1px solid rgba(168,200,240,0.1);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.875rem;
}
.prose thead { background: rgba(45,125,210,0.08); }
.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(168,200,240,0.08);
  color: rgba(229,236,247,0.82);
  vertical-align: top;
}
.prose th {
  color: rgba(168,200,240,0.7);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose td strong { color: #fff; font-weight: 600; }

/* Pill / severity tags inside tables */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.tag.crit { background: rgba(220,90,90,0.14); color: #ff9b9b; border: 1px solid rgba(220,90,90,0.3); }
.tag.high { background: rgba(240,168,80,0.12); color: #f6c478; border: 1px solid rgba(240,168,80,0.3); }
.tag.med  { background: rgba(45,125,210,0.14); color: #8cc1ee; border: 1px solid rgba(45,125,210,0.32); }
.tag.low  { background: rgba(29,184,122,0.14); color: #6fd6a6; border: 1px solid rgba(29,184,122,0.3); }

.section-divider {
  margin-top: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,200,240,0.12), transparent);
}

.contact-card {
  margin-top: 56px;
  padding: 32px;
  border: 1px solid rgba(168,200,240,0.12);
  background: rgba(45,125,210,0.05);
  border-radius: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.contact-card h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.35rem; color: #fff; margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; color: rgba(168,200,240,0.7); line-height: 1.65; margin-bottom: 14px; }
.contact-card .row { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.875rem; }
.contact-card .row strong { color: rgba(168,200,240,0.5); font-weight: 500; margin-right: 8px; }
.contact-card .row a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(45,125,210,0.5); }
.contact-card .row a:hover { border-bottom-color: #2D7DD2; }

/* ── Cookie banner (site-wide) ────────────────────── */
.cookie-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  z-index: 200;
  padding: 20px 22px;
  background: rgba(10, 22, 40, 0.96);
  border: 1px solid rgba(168,200,240,0.14);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 4px 12px rgba(45,125,210,0.12);
  font-size: 0.875rem;
  color: rgba(229,236,247,0.85);
  line-height: 1.55;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}
.cookie-banner.is-open { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner p a { color: #8cc1ee; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner button {
  font-family: inherit; font-size: 0.8125rem; font-weight: 500;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.cookie-banner .btn-accept { background: #2D7DD2; color: #fff; border-color: #2D7DD2; }
.cookie-banner .btn-accept:hover { background: #2570C4; }
.cookie-banner .btn-essential { background: transparent; color: rgba(229,236,247,0.85); border-color: rgba(168,200,240,0.2); }
.cookie-banner .btn-essential:hover { border-color: rgba(168,200,240,0.45); color: #fff; }
.cookie-banner .btn-customize { background: transparent; color: rgba(168,200,240,0.7); border-color: transparent; padding-left: 6px; padding-right: 6px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .btn-customize:hover { color: #fff; }
@media (max-width: 540px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
}

/* ── Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.7s ease-out both; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
