/* Certicar — Shared CSS for sub-pages (mentions-legales design system) */

@font-face { font-family: 'HafferSQ'; src: url('../fonts/HafferSQ-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'HafferSQ'; src: url('../fonts/HafferSQ-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'HafferSQ'; src: url('../fonts/HafferSQ-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'HafferSQ'; src: url('../fonts/HafferSQ-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

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

:root {
  --purple: #5955ef;
  --purple-dark: #4441ba;
  --purple-deeper: #3D35A8;
  --purple-light: #EDE9FE;
  --purple-glow: rgba(89, 85, 239, 0.15);
  --text: #1a1a2e;
  --text-50: rgba(26, 26, 46, 0.5);
  --text-30: rgba(26, 26, 46, 0.3);
  --grey-bg: #f5f5f7;
  --grey-border: #e8e8ec;
  --grey-border-light: #ededf0;
  --lime: #C8FF00;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'HafferSQ', 'Onest', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ===== ANNOUNCEMENT BAR ===== */
.announce-bar {
  width: 100%;
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px; font-weight: 500;
  font-family: 'Onest', sans-serif;
  letter-spacing: 0.01em;
  position: relative; z-index: 101;
}
.announce-bar span { display: inline-flex; align-items: center; gap: 14px; }
.announce-badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  width: 100%;
  padding: 0 clamp(24px, 4vw, 48px);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--grey-border);
  transition: box-shadow 0.4s;
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-links { display: flex; align-items: center; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-50);
  padding: 7px 14px; border-radius: var(--radius-pill); text-decoration: none;
  transition: all 0.3s;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.nav-logo { display: flex; align-items: center; }
.nav-logo a { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 38px; width: auto; }

.cta-3d {
  display: inline-flex; align-items: center;
  text-decoration: none; cursor: pointer;
  border-radius: 12px;
  background: #4845c7;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(89,85,239,0.12);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-3d:hover {
  box-shadow: 0 6px 24px rgba(89,85,239,0.35), 0 2px 8px rgba(89,85,239,0.15);
  transform: translateY(-2px);
}
.cta-3d-inner {
  display: flex; align-items: center;
  border-radius: 10px;
  background: var(--purple);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.cta-3d-inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}
.cta-3d-text {
  padding: 9px 18px;
  font-size: 13.5px; font-weight: 600;
  color: #fff; white-space: nowrap;
  position: relative; z-index: 1;
}
.cta-3d-icon {
  width: 32px; height: 32px;
  margin: 3px; margin-left: 0;
  background: #fff;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 2px rgba(0,0,0,0.12);
}
.cta-3d-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #5955ef;
  display: flex; align-items: center; justify-content: center;
}
.cta-3d-circle svg { width: 11px; height: 11px; color: #fff; }

/* ===== HERO ===== */
.legal-hero { width: 100%; padding: 22px 22px 0; }
.legal-hero-container {
  position: relative; width: 100%;
  padding: clamp(80px, 10vw, 140px) clamp(28px, 5vw, 80px) clamp(80px, 10vw, 120px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
}
.legal-hero-noise {
  position: absolute; inset: 0; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 128px;
}
.legal-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.legal-hero-content {
  position: relative; z-index: 10;
  max-width: 920px; margin: 0 auto;
  text-align: center;
}
.legal-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill); padding: 6px 16px;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.legal-hero-eyebrow svg { color: rgba(255,255,255,0.8); }
.legal-hero-eyebrow span {
  color: rgba(255,255,255,0.9); font-size: 12px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Onest', sans-serif;
}
.legal-hero h1 {
  color: #fff; font-weight: 600;
  font-family: 'Onest', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
}
.legal-hero h1 .text-outline {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.6);
  color: transparent;
}
.legal-hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  line-height: 1.6;
  max-width: 540px; margin: 0 auto;
}
.legal-hero-meta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 12px; font-weight: 500;
  font-family: 'Onest', sans-serif;
}
.legal-hero-meta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80;
}

/* ===== IDENTITY GRID (used for "info clefs" sections) ===== */
.identity-section { padding: clamp(72px, 10vw, 120px) clamp(24px, 4vw, 96px) clamp(48px, 6vw, 64px); }
.identity-inner { max-width: 76rem; margin: 0 auto; }
.identity-header {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px; margin-bottom: clamp(32px, 5vw, 48px);
}
.section-label {
  font-family: 'Onest', sans-serif;
  font-size: 0.875rem; font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-title {
  font-family: 'Onest', sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600; line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.identity-card {
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-md);
  padding: 22px 22px 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s, background 0.3s;
}
.identity-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 8px 24px rgba(89,85,239,0.08);
}
.identity-card.with-icon { display: flex; gap: 14px; align-items: flex-start; }
.identity-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.identity-card-icon svg { width: 20px; height: 20px; color: #fff; }
.identity-card-body { flex: 1; }
.identity-label {
  font-family: 'Onest', sans-serif;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-50);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.identity-value {
  font-family: 'Onest', sans-serif;
  font-size: 1.0625rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.identity-value.mono {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.identity-value a { color: var(--purple); text-decoration: none; border-bottom: 1px solid rgba(89,85,239,0.25); transition: border-color 0.25s, color 0.25s; }
.identity-value a:hover { color: var(--purple-dark); border-bottom-color: var(--purple); }

/* ===== ARTICLES (for legal-style content) ===== */
.articles-section { padding: clamp(48px, 6vw, 64px) clamp(24px, 4vw, 96px) clamp(72px, 10vw, 120px); }
.articles-inner {
  max-width: 76rem; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
}
.toc {
  position: sticky; top: 96px;
  padding: 22px 22px;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.toc-title {
  font-family: 'Onest', sans-serif;
  font-size: 11.5px; font-weight: 700;
  color: var(--text-50);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Onest', sans-serif;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-50);
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.25s;
}
.toc-list a:hover { color: var(--text); background: var(--grey-bg); }
.toc-list a .toc-num {
  font-size: 10.5px; font-weight: 700;
  color: var(--purple);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  min-width: 18px;
}

.articles-content { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 28px); }
.article {
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.article:hover {
  border-color: var(--grey-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(89,85,239,0.12);
}
.article-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--grey-border-light);
  margin-bottom: 22px;
}
.article-num {
  font-family: 'Onest', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--purple);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.article-title {
  font-family: 'Onest', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.2;
}
.article-body { font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.article-body p { margin-bottom: 14px; color: rgba(26,26,46,0.78); }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(89,85,239,0.25);
  transition: border-color 0.25s, color 0.25s;
}
.article-body a:hover { color: var(--purple-dark); border-bottom-color: var(--purple); }
.article-body ul {
  list-style: none;
  margin: 12px 0 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.article-body ul li {
  padding-left: 22px;
  position: relative;
  color: rgba(26,26,46,0.78);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
}
.article-body h3 {
  font-family: 'Onest', sans-serif;
  font-size: 1.0625rem; font-weight: 600;
  color: var(--text);
  margin: 22px 0 10px;
  letter-spacing: -0.01em;
}
.article-callout {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--purple-light);
  border: 1px solid rgba(89,85,239,0.18);
  border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 12px;
}
.article-callout svg {
  flex-shrink: 0;
  color: var(--purple);
  margin-top: 2px;
}
.article-callout p {
  margin: 0;
  font-size: 13.5px;
  color: var(--purple-deeper);
  line-height: 1.55;
}
.article-callout p strong { color: var(--purple-deeper); }

/* ===== CONTENT NARRATIVE (for storytelling pages like a-propos) ===== */
.content-section { padding: clamp(48px, 6vw, 64px) clamp(24px, 4vw, 96px) clamp(72px, 10vw, 120px); }
.content-inner { max-width: 720px; margin: 0 auto; }
.content-inner h2 {
  font-family: 'Onest', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600; letter-spacing: -0.02em;
  margin: clamp(40px, 5vw, 56px) 0 16px;
  line-height: 1.15;
}
.content-inner h2:first-child { margin-top: 0; }
.content-inner h3 {
  font-family: 'Onest', sans-serif;
  font-size: 1.125rem; font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.content-inner p {
  font-size: 1rem; line-height: 1.7;
  color: rgba(26,26,46,0.78);
  margin-bottom: 16px;
}
.content-inner p:last-child { margin-bottom: 0; }
.content-inner strong { color: var(--text); font-weight: 600; }
.content-inner a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(89,85,239,0.25);
  transition: border-color 0.25s, color 0.25s;
}
.content-inner a:hover { color: var(--purple-dark); border-bottom-color: var(--purple); }
.content-inner ul {
  list-style: none;
  margin: 12px 0 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.content-inner ul li {
  padding-left: 22px;
  position: relative;
  color: rgba(26,26,46,0.78);
  line-height: 1.65;
}
.content-inner ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
}
.content-inner .lede {
  font-size: 1.125rem; line-height: 1.6;
  color: rgba(26,26,46,0.85);
  margin-bottom: 24px;
}
.content-inner .callout {
  margin: 24px 0;
  padding: 20px 22px;
  background: var(--purple-light);
  border: 1px solid rgba(89,85,239,0.18);
  border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 14px;
}
.content-inner .callout svg {
  flex-shrink: 0;
  color: var(--purple);
  margin-top: 3px;
}
.content-inner .callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--purple-deeper);
  line-height: 1.6;
}
.content-inner .callout p strong { color: var(--purple-deeper); }

/* ===== STATS GRID (key numbers) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 28px 0 32px;
}
.stat-card {
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.stat-value {
  font-family: 'Onest', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: 'Onest', sans-serif;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-50);
  line-height: 1.4;
}

/* ===== LEGAL CTA (footer CTA) ===== */
.legal-cta { padding: 0 clamp(24px, 4vw, 96px) clamp(64px, 8vw, 96px); }
.legal-cta-container {
  max-width: 76rem; margin: 0 auto;
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 72px) clamp(28px, 5vw, 64px);
  text-align: center;
  position: relative; overflow: hidden;
}
.legal-cta-container::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.legal-cta-container h2 {
  color: #fff;
  font-family: 'Onest', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.legal-cta-container p {
  color: rgba(255,255,255,0.7);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  max-width: 480px; margin: 0 auto 28px;
  line-height: 1.6;
  position: relative; z-index: 1;
}
.legal-cta-actions {
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  position: relative; z-index: 1;
}
.cta-hero {
  display: inline-flex; align-items: center;
  text-decoration: none; cursor: pointer;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  padding: 4px;
  box-shadow:
    0 1px 0 0 rgba(0,0,0,0.06),
    0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s;
}
.cta-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.25);
}
.cta-hero-inner {
  display: flex; align-items: center;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.9);
  position: relative; overflow: hidden;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.04);
}
.cta-hero-text {
  padding: 12px 24px;
  font-family: 'Onest', sans-serif;
  font-size: 14.5px; font-weight: 700;
  color: var(--purple-dark);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.3s, letter-spacing 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-hero:hover .cta-hero-text { color: var(--purple); letter-spacing: 0.02em; }
.cta-hero-icon {
  width: 38px; height: 38px;
  margin: 4px; margin-left: 0;
  background: var(--purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(89,85,239,0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
  overflow: hidden;
}
.cta-hero:hover .cta-hero-icon { background: var(--purple-dark); transform: scale(1.1); }
.cta-hero-icon svg { width: 14px; height: 14px; color: #fff; }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  color: #fff;
  font-family: 'Onest', sans-serif;
  font-size: 14.5px; font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}
.cta-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.cta-ghost svg { width: 14px; height: 14px; }

/* ===== FOOTER ===== */
.footer {
  padding: 64px clamp(24px, 4vw, 48px) 32px;
  border-top: 1px solid var(--grey-border);
  background: var(--grey-bg);
}
.footer-inner { max-width: 76rem; margin: 0 auto; }

.footer-brand {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--grey-border);
}
.footer-logo {
  font-size: 1.5rem; font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
  display: inline-block;
}
.footer-tagline {
  font-size: 13px; color: var(--text-50);
  font-weight: 500;
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--grey-border);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: 'Onest', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-50);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col a:hover { color: var(--purple); }
.footer-col a.current { color: var(--purple); }
.footer-phone svg {
  color: #25D366;
  flex-shrink: 0;
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--grey-border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(89,85,239,0.12);
  color: inherit;
}
.footer-social a svg {
  width: 18px; height: 18px;
  color: var(--text);
  transition: color 0.2s;
}
.footer-social a:hover svg { color: var(--purple); }

.footer-copy {
  font-size: 12px;
  color: var(--text-30);
  text-align: center;
}

@media (max-width: 640px) {
  .footer { padding: 48px 20px 24px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-col { gap: 10px; }
  .footer-brand { margin-bottom: 32px; padding-bottom: 24px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .articles-inner { grid-template-columns: 1fr; }
  .toc { position: relative; top: auto; order: 0; }
  .toc-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc-list a { padding: 6px 10px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .legal-hero { padding: 12px 12px 0; }
  .legal-hero-container { padding: 64px 24px 64px; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .legal-cta-actions { width: 100%; flex-direction: column; }
  .legal-cta-actions > * { width: 100%; justify-content: center; }
  .cta-hero-text { flex: 1; text-align: center; }
}
