/* =============================================
   DISPR — Couche éditoriale et composants 2026
   Chargée après dispr-sections.css / about-page.css
   ============================================== */

/* =============================================
   1. HERO — kicker, faits, label logos
   ============================================== */

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 28px;
  padding: 8px 18px 8px 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: rgba(31, 175, 138, 0.07);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
}

.hero-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(31, 175, 138, 0.15);
  flex-shrink: 0;
}

.hero-subtitle {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Faits chiffrés — remplace les avatars stock */
.hero-facts {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 clamp(20px, 3vw, 38px);
  border-left: 1px solid var(--stroke);
}

.hero-fact:first-child {
  border-left: 0;
}

.hero-fact__value {
  font-family: var(--font-headings);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-fact__label {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
  max-width: 16ch;
}

.hero-logos__label {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 242, 236, 0.45);
  text-align: center;
}

@media (max-width: 640px) {
  .hero-kicker {
    font-size: 12px;
    line-height: 1.35;
    padding: 10px 16px;
    text-align: center;
  }

  .hero-fact {
    padding: 0 14px;
  }

  .hero-fact__value {
    font-size: 20px;
  }

  .hero-fact__label {
    font-size: 11px;
  }
}

/* Un fond attaché à la fenêtre sous un en-tête fixe fait apparaître un
   rectangle de recomposition derrière le menu, et pénalise le scroll mobile. */
body,
.main-page-wrapper {
  background-attachment: scroll;
}

/* Le style du tiroir mobile ne doit pas s'appliquer à la barre desktop */
@media (min-width: 992px) {
  .theme-main-menu .navbar-collapse {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}

/* =============================================
   2. SECTION — Pourquoi les projets IA échouent
   ============================================== */

.failures {
  position: relative;
  padding: clamp(80px, 9vw, 120px) 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #04231D 55%, var(--bg-deep) 100%);
  overflow: hidden;
}

.failures::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

.failures .container {
  position: relative;
  z-index: 1;
}

.failures__header {
  max-width: 860px;
  margin: 0 auto clamp(44px, 5vw, 64px);
  text-align: center;
}

.failures__header .badge-pill {
  margin-bottom: var(--space-lg);
}

.failures__title {
  font-family: var(--font-headings);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.failures__lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto;
}

.failures__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
}

.failure-card {
  position: relative;
  padding: clamp(26px, 2.6vw, 34px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  transition: border-color var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.failure-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 100%);
  transform: translateY(-3px);
}

.failure-card__index {
  display: block;
  font-family: var(--font-headings);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(234, 242, 236, 0.32);
  margin-bottom: 20px;
}

.failure-card__title {
  font-family: var(--font-headings);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.failure-card__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.failures__footer {
  margin: clamp(40px, 4vw, 56px) auto 0;
  max-width: 700px;
  text-align: center;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
}

.failures__footer strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 991px) {
  .failures__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* =============================================
   3. SECTION — Formats d'intervention
   ============================================== */

.engagements {
  position: relative;
  padding: clamp(80px, 9vw, 120px) 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #062F2B 100%);
  overflow: hidden;
}

.engagements__header {
  max-width: 760px;
  margin: 0 auto clamp(44px, 5vw, 64px);
  text-align: center;
}

.engagements__header .badge-pill {
  margin-bottom: var(--space-lg);
}

.engagements__title {
  font-family: var(--font-headings);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.engagements__lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

.engagements__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 24px);
  align-items: stretch;
}

.engagement-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 34px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.engagement-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.engagement-card--featured {
  border-color: var(--accent-border);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(31, 175, 138, 0.12) 0%, transparent 70%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.engagement-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--stroke);
}

.engagement-card__step {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.engagement-card__duration {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(234, 242, 236, 0.5);
  text-align: right;
}

.engagement-card__title {
  font-family: var(--font-headings);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.engagement-card__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.engagement-card__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}

.engagement-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-light);
}

.engagement-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.engagement-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  transition: gap var(--transition-base), color var(--transition-base);
}

.engagement-card__link:hover {
  gap: 13px;
  color: var(--accent2);
}

.engagements__footer {
  margin: clamp(36px, 4vw, 50px) auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(234, 242, 236, 0.55);
}

@media (max-width: 991px) {
  .engagements__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* =============================================
   4. Preuves — stats, témoignages, CTA
   ============================================== */

/* Raccords entre sections : plus de coupures franches */
#feature-1 {
  background: linear-gradient(180deg, #062F2B 0%, var(--bg) 26%, var(--bg) 100%);
}

#feature-2 {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.stats-section .stat-unit {
  color: var(--accent-text);
  font-weight: 300;
  margin-right: 2px;
}

.stats-kicker {
  margin: 0 0 clamp(36px, 4vw, 52px);
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 242, 236, 0.42);
}

.testimonial-outcome {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: rgba(31, 175, 138, 0.09);
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-text);
}

.cta-reassure {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}

.cta-reassure li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(234, 242, 236, 0.6);
}

.cta-reassure li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.cta-actions .btn-primary,
.cta-actions .btn-secondary {
  margin: 0;
}

@media (max-width: 640px) {
  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* =============================================
   4b. Section partenaires (écosystème)
   ============================================== */

.partners-section {
  position: relative;
  padding: clamp(72px, 9vw, 110px) 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(31, 175, 138, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  overflow: hidden;
}

.partners-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.partners-header .badge-pill {
  margin: 0 auto 24px;
}

.partners-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 960px;
  margin: 0 auto;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: clamp(22px, 2.5vw, 32px) 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
  border-color: rgba(31, 175, 138, 0.28);
  transform: translateY(-3px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(31, 175, 138, 0.08);
}

.partner-name {
  font-family: var(--font-headings);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(234, 242, 236, 0.78);
  text-align: center;
  line-height: 1.3;
}

.partner-logo:hover .partner-name {
  color: var(--text);
}

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

@media (max-width: 480px) {
  .partners-grid {
    gap: 10px;
  }

  .partner-logo {
    min-height: 80px;
    padding: 18px 12px;
  }
}

/* =============================================
   5. Section « Ce qu'on construit » — équilibre
   ============================================== */

.stats-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}

.features-stats .stats-duo .stat-item {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.features-stats .stats-duo .stat-value {
  font-family: var(--font-headings);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.features-stats .stats-duo .stat-legend {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: left;
  max-width: 30ch;
}

.pills-label {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 242, 236, 0.42);
  text-align: right;
}

.features-stats .features-note {
  text-align: left;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--stroke);
}

@media (max-width: 767px) {
  .stats-duo {
    grid-template-columns: 1fr;
  }

  .pills-label {
    text-align: left;
  }
}

/* =============================================
   6. Cibles — rééquilibrage de la colonne visuelle
   ============================================== */

@media (min-width: 992px) {
  .target-grid {
    grid-template-columns: 7fr 5fr;
  }

  .target-animation,
  .target-anim-container {
    min-height: 400px;
    height: 400px;
  }
}

/* =============================================
   7. Footer — identité et contact
   ============================================== */

.footer-baseline {
  margin: 20px 0 16px;
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-mail {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.footer-mail:hover {
  border-bottom-color: var(--accent-text);
}

/* =============================================
   8. À propos — blocs sans images de substitution
   ============================================== */

/* Chaîne « données → règles → agent → contrôle » */
.conviction-chain {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(2, 20, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.conviction-chain__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 242, 236, 0.45);
  margin-bottom: 6px;
}

.chain-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.chain-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
}

.chain-step__icon svg {
  width: 16px;
  height: 16px;
}

.chain-step__name {
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.chain-step__note {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.chain-step--human {
  border-color: var(--accent-border);
  background: rgba(31, 175, 138, 0.09);
}

/* Bloc « d'où on vient » qui remplace les photos d'illustration */
.origin-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.origin-card {
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.origin-card:hover {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.055);
}

.origin-card__eyebrow {
  display: block;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.origin-card__title {
  font-family: var(--font-headings);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.origin-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Carte recrutement sans image distante */
.team-card--hiring .team-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 40%, rgba(31, 175, 138, 0.18) 0%, rgba(31, 175, 138, 0.04) 70%);
}

.team-card--hiring .team-card__plus {
  font-family: var(--font-headings);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent-text);
}

/* =============================================
   9. Contact — étapes suivantes et équilibre
   ============================================== */

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.next-steps__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 242, 236, 0.45);
  margin-bottom: 22px;
}

.next-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 22px;
}

.next-step:last-child {
  padding-bottom: 0;
}

.next-step__marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-bg);
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
}

.next-step:not(:last-child) .next-step__marker::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: 1px;
  height: calc(100% + 14px);
  background: var(--stroke);
  transform: translateX(-50%);
}

.next-step__title {
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.next-step__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.form-consent {
  margin-top: var(--space-md);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(234, 242, 236, 0.5);
  text-align: center;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  height: 100%;
}

/* =============================================
   10. Discover — réassurance
   ============================================== */

.discover__founder {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.discover__founder strong {
  color: var(--text);
  font-weight: 600;
}

/* Bank scroll item label (inline style extraction) */
.bank-scroll-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: currentColor;
  letter-spacing: 0.02em;
}

/* =============================================
   10. Page légale — onglets
   ============================================== */

.legal-hero .about-hero__title {
  max-width: 18ch;
}

.legal-section {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 120px);
  background:
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(31, 175, 138, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 4px;
}

.legal-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(234, 242, 236, 0.72);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legal-tab:hover {
  color: var(--text);
  border-color: rgba(31, 175, 138, 0.35);
}

.legal-tab.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.legal-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.legal-panels {
  max-width: 820px;
}

.legal-panel {
  display: none;
  animation: legalFade 0.35s ease;
}

.legal-panel.is-active {
  display: block;
}

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

.legal-panel h2 {
  font-family: var(--font-headings);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}

.legal-updated {
  margin: 0 0 32px;
  font-size: 13px;
  color: rgba(234, 242, 236, 0.45);
}

.legal-panel h3 {
  font-family: var(--font-headings);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.legal-panel p,
.legal-panel li {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(234, 242, 236, 0.72);
}

.legal-panel p {
  margin: 0 0 14px;
}

.legal-panel ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.legal-panel li {
  margin-bottom: 6px;
}

.legal-panel a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-panel a:hover {
  color: var(--text);
}

.legal-panel strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-tabs {
    flex-direction: column;
  }

  .legal-tab {
    width: 100%;
    text-align: left;
  }
}
