/* =========================================================
   LEGAL HERO
========================================================= */

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 160px 0 105px;
  color: var(--traffiq-white);
  text-align: center;
  background: var(--traffiq-deep-teal);
}

.legal-hero__circle {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background: var(--traffiq-teal);
  border-radius: 50%;
}

.legal-hero__circle--left {
  width: 470px;
  top: 80px;
  left: -320px;
  opacity: 0.8;
}

.legal-hero__circle--top {
  width: 360px;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}

.legal-hero__circle--right {
  width: 550px;
  right: -390px;
  bottom: -270px;
  opacity: 0.85;
}

.legal-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
}

.legal-hero .eyebrow {
  color: var(--traffiq-mint);
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0 auto 22px;
  color: var(--traffiq-white);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.legal-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1.75;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
}


/* =========================================================
   MAIN
========================================================= */

.legal-main {
  position: relative;
  overflow: hidden;
  padding: 100px 0 130px;
  background: var(--traffiq-bg);
}

.legal-main::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 300px;
  width: 420px;
  aspect-ratio: 1 / 1;
  border: 40px solid var(--traffiq-surface-soft);
  border-radius: 50%;
}

.legal-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  justify-content: center;
  gap: 70px;
  align-items: start;
}


/* =========================================================
   NAVIGATION
========================================================= */

.legal-nav {
  position: sticky;
  top: 30px;
  display: grid;
  gap: 5px;
  padding: 15px;
  background: var(--traffiq-white);
  border: 1px solid var(--traffiq-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-nav::before {
  content: "Sur cette page";
  display: block;
  padding: 8px 10px 12px;
  color: var(--traffiq-deep-teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-nav a {
  padding: 10px 11px;
  color: var(--traffiq-text-muted);
  font-size: 11px;
  font-weight: 500;
  border-radius: 10px;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.legal-nav a:hover {
  color: var(--traffiq-deep-teal);
  background: var(--traffiq-surface-soft);
}


/* =========================================================
   CONTENT
========================================================= */

.legal-content {
  min-width: 0;
  padding: 10px 40px 20px;
  background: var(--traffiq-white);
  border: 1px solid var(--traffiq-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.legal-section {
  position: relative;
  padding: 50px 0;
  border-bottom: 1px solid var(--traffiq-border);
  scroll-margin-top: 40px;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--traffiq-mint);
  border-radius: 999px;
}

.legal-section h2 {
  margin-bottom: 19px;
  color: var(--traffiq-deep-teal);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.legal-section h3 {
  margin: 28px 0 10px;
  color: var(--traffiq-deep-teal);
  font-size: 16px;
}

.legal-section p,
.legal-section li {
  color: var(--traffiq-text-muted);
  font-size: 14px;
  line-height: 1.82;
}

.legal-section strong {
  color: var(--traffiq-deep-teal);
}

.legal-section ul {
  display: grid;
  gap: 9px;
  padding-left: 20px;
}

.legal-section a {
  color: var(--traffiq-teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-placeholder {
  display: inline-block;
  padding: 4px 8px;
  color: #985b00;
  font-size: 11px;
  font-weight: 600;
  background: #fff2d9;
  border-radius: 7px;
}


/* =========================================================
   INFO CARD
========================================================= */

.legal-info-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  margin: 24px 0;
  background: var(--traffiq-surface-soft);
  border: 1px solid var(--traffiq-border);
  border-radius: 19px;
}

.legal-info-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -75px;
  width: 130px;
  aspect-ratio: 1 / 1;
  background: rgba(80, 255, 177, 0.12);
  border-radius: 50%;
}

.legal-info-card p {
  position: relative;
  z-index: 2;
}

.legal-info-card p:last-child {
  margin-bottom: 0;
}

.legal-cookie-button {
  margin-top: 14px;
}


/* =========================================================
   LEGAL FOOTER
========================================================= */

.legal-footer {
  padding: 46px 0;
  color: rgba(255, 255, 255, 0.5);
  background: #002f3d;
}

.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 10px;
}

.legal-footer__brand img {
  width: 105px;
  height: auto;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-footer a:hover {
  color: var(--traffiq-white);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .legal-nav::before {
    display: none;
  }

  .legal-nav a {
    flex-shrink: 0;
    background: var(--traffiq-bg);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .legal-hero {
    padding: 125px 0 75px;
  }

  .legal-hero__circle--top {
    width: 270px;
    top: -190px;
  }

  .legal-hero__circle--left {
    width: 340px;
    left: -280px;
  }

  .legal-hero__circle--right {
    width: 400px;
    right: -320px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }

  .legal-main {
    padding: 70px 0 90px;
  }

  .legal-content {
    padding: 0 22px;
    border-radius: 24px;
  }

  .legal-section {
    padding: 42px 0;
  }

  .legal-section h2 {
    font-size: 22px;
  }

  .legal-footer__inner {
    display: grid;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 460px) {

  .legal-hero h1 {
    font-size: 38px;
  }

  .legal-content {
    padding-inline: 18px;
  }

}
