/* ============================================
   EUROSHIELD - Design System
   ============================================ */

:root {
  --bg: #0a0e14;
  --bg-2: #0f141c;
  --bg-3: #161d28;
  --surface: #1a2230;
  --border: #243044;
  --border-2: #2d3b54;
  --text: #e8edf5;
  --text-2: #a8b3c7;
  --text-3: #6b7891;
  --accent: #f5a623;
  --accent-2: #ffc457;
  --accent-glow: rgba(245, 166, 35, 0.15);
  --blue: #4a9eff;
  --green: #3ddc97;
  --red: #ff5470;
  --maxw: 1240px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Monaco, monospace;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "ss01";
  background-image:
    radial-gradient(circle at 15% 5%, rgba(245, 166, 35, 0.04), transparent 50%),
    radial-gradient(circle at 85% 95%, rgba(74, 158, 255, 0.03), transparent 50%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { color: var(--text-2); margin-bottom: 1rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   NAVBAR + DROPDOWNS
   ============================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-logo .logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--accent);
  border-radius: 6px;
  color: var(--bg);
}
.nav-logo .logo-mark svg { width: 16px; height: 16px; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link svg { width: 12px; height: 12px; opacity: 0.6; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  min-width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  box-shadow: var(--shadow-lg);
}
.dropdown.dropdown-1col { grid-template-columns: 1fr; min-width: 280px; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.dropdown a:hover { background: var(--bg-3); }
.dropdown a strong { font-size: 0.88rem; color: var(--text); font-weight: 600; }
.dropdown a span { font-size: 0.78rem; color: var(--text-3); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

/* Mobile menu */
.nav-toggle { display: none; padding: 8px; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open .nav-link { width: 100%; padding: 12px 16px; }
  .nav-links.open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    grid-template-columns: 1fr; min-width: 0;
    box-shadow: none; margin: 4px 0 12px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 16px; height: 16px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 880px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(61, 220, 151, 0); }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta .meta-item { display: flex; flex-direction: column; }
.hero-meta .meta-item strong { font-size: 1.5rem; color: var(--text); font-weight: 700; }
.hero-meta .meta-item span { font-size: 0.82rem; color: var(--text-3); margin-top: 2px; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card .icon-box {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.card .icon-box svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-2); margin-bottom: 12px; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.card .card-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header p { font-size: 1.05rem; color: var(--text-2); }

/* ============================================
   STATS
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg-2);
  padding: 32px 24px;
}
.stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.stat strong .unit { font-size: 1.2rem; color: var(--accent); margin-left: 2px; }
.stat span { font-size: 0.88rem; color: var(--text-3); }

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-2);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   PROSE (long-form pages)
   ============================================ */
.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 16px; font-size: 1.85rem; }
.prose h3 { margin: 32px 0 12px; font-size: 1.3rem; }
.prose p { font-size: 1rem; line-height: 1.75; margin-bottom: 16px; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose ul li, .prose ol li { color: var(--text-2); margin-bottom: 8px; line-height: 1.7; }
.prose a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.prose a:hover { border-color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--text-2);
  font-style: italic;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 10px; height: 10px; opacity: 0.5; }
.breadcrumb .current { color: var(--text); }

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item div { margin-top: 12px; color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   CTA BLOCK
   ============================================ */
.cta-block {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-block h2 { margin-bottom: 12px; }
.cta-block p { max-width: 560px; margin: 0 auto 24px; }
.cta-block .hero-cta { justify-content: center; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand p { font-size: 0.9rem; color: var(--text-3); margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-2); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer-bottom a:hover { color: var(--accent); }

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Logo cloud marquee */
.logos-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin: 64px 0;
}
.logos-track {
  display: flex; gap: 64px;
  animation: scroll 35s linear infinite;
  width: max-content;
}
@keyframes scroll {
  to { transform: translateX(calc(-50%)); }
}
.logos-track .logo-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Dashboard mockup */
.dashboard-mock {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 4px;
  box-shadow: var(--shadow-lg);
  margin-top: 48px;
  position: relative;
}
.dashboard-mock::before {
  content: '';
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%, var(--blue));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}
.dashboard-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.dashboard-bar .dot-r { width: 10px; height: 10px; border-radius: 50%; background: var(--red); opacity: 0.6; }
.dashboard-bar .dot-y { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.dashboard-bar .dot-g { width: 10px; height: 10px; border-radius: 50%; background: var(--green); opacity: 0.6; }
.dashboard-content {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.dashboard-cell {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.dashboard-cell .label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.dashboard-cell .value { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.dashboard-cell .delta { font-size: 0.78rem; color: var(--green); margin-top: 2px; }
.dashboard-cell .delta.bad { color: var(--red); }
@media (max-width: 700px) { .dashboard-content { grid-template-columns: 1fr 1fr; } }

/* Tag/chip */
.chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* City grid */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }
.city-grid a {
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.15s;
}
.city-grid a:hover { border-color: var(--accent); color: var(--accent); }
.city-grid a svg { width: 12px; height: 12px; opacity: 0.5; }

/* Two column layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* === Override : bouton CTA plus subtil === */
.nav-cta {
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 4px !important;
  letter-spacing: 0;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  transform: none !important;
}
.nav-cta svg {
  width: 12px !important;
  height: 12px !important;
  stroke-width: 1.5 !important;
}
.nav-cta:hover svg {
  transform: translateX(2px);
}

/* Boutons primaires aussi un peu plus discrets */
.btn-primary svg {
  stroke-width: 1.5 !important;
}
.btn-primary {
  font-weight: 500 !important;
}
.btn svg {
  transition: transform 0.2s;
}
.btn:hover svg {
  transform: translateX(2px);
}


/* === MODAL LÉGALE === */
.legal-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: legalFade 0.25s ease;
}
.legal-modal.open { display: flex; }
@keyframes legalFade { from { opacity: 0; } to { opacity: 1; } }

.legal-modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: legalSlide 0.3s ease;
}
@keyframes legalSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.legal-modal-header h2 {
  font-size: 1.25rem;
  margin: 0 0 2px;
  color: var(--text);
}
.legal-modal-header p {
  font-size: 0.82rem;
  color: var(--text-3);
  margin: 0;
}
.legal-modal-actions {
  display: flex; gap: 8px;
  flex-shrink: 0;
}
.legal-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.legal-btn:hover { color: var(--accent); border-color: var(--accent); }
.legal-btn svg { width: 16px; height: 16px; }

.legal-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.legal-modal-body::-webkit-scrollbar { width: 8px; }
.legal-modal-body::-webkit-scrollbar-track { background: transparent; }
.legal-modal-body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

.legal-modal-body h2 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
  color: var(--text);
  font-weight: 600;
}
.legal-modal-body h2:first-child { margin-top: 0; }
.legal-modal-body h3 {
  font-size: 0.95rem;
  margin: 18px 0 8px;
  color: var(--text);
  font-weight: 600;
}
.legal-modal-body p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 12px;
}
.legal-modal-body .lead-legal {
  font-size: 0.95rem;
  color: var(--text-2);
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-style: italic;
}
.legal-modal-body ul, .legal-modal-body ol {
  margin: 0 0 16px 24px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.legal-modal-body li {
  margin-bottom: 6px;
  line-height: 1.65;
}
.legal-modal-body strong { color: var(--text); font-weight: 600; }
.legal-modal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-modal-body a:hover { color: var(--accent-2); }
.legal-modal-body .legal-meta {
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-3);
  font-style: italic;
}
.legal-modal-body .cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.85rem;
}
.legal-modal-body .cookie-table th,
.legal-modal-body .cookie-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.legal-modal-body .cookie-table th {
  background: var(--bg-3);
  color: var(--text);
  font-weight: 600;
}
.legal-modal-body .cookie-table td {
  color: var(--text-2);
}

/* Print */
@media print {
  body * { visibility: hidden; }
  .legal-modal, .legal-modal * { visibility: visible; }
  .legal-modal { position: absolute; inset: 0; background: white; padding: 0; }
  .legal-modal-box { max-height: none; box-shadow: none; border: none; }
  .legal-modal-actions { display: none; }
  .legal-modal-body { color: black; padding: 16px; overflow: visible; }
  .legal-modal-body h2, .legal-modal-body h3, .legal-modal-body strong { color: black; }
  .legal-modal-body p, .legal-modal-body li { color: #222; }
}
@media (max-width: 600px) {
  .legal-modal { padding: 0; }
  .legal-modal-box { max-height: 100vh; border-radius: 0; }
  .legal-modal-body { padding: 20px; }
  .legal-modal-header { padding: 16px 20px; }
}

/* Footer legal links */
.footer-legal-links {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 0.82rem;
}
.footer-legal-links a {
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.15s;
}
.footer-legal-links a:hover { color: var(--accent); }
