*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0b1120;
  --n2: #111827;
  --n3: #1c2b42;
  --blue: #2d8eff;
  --bl: #5aaeff;
  --mu: #8a9bb5;
  --wh: #fff;
  --ow: #e8edf5;
  --gr: #2dc89a;
  --dk: #070d18;
  --bdr: rgba(255, 255, 255, 0.08);
  --fft: 'Syne', sans-serif;
  --ffb: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body.legal-page {
  background: var(--navy);
  color: var(--wh);
  font-family: var(--ffb);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr);
}

.logo { display: flex; align-items: center; text-decoration: none; }

.site-logo {
  height: clamp(32px, 4.5vw, 42px);
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--mu);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--wh); }

.nav-links a.active { color: var(--blue); }

.nav-cta {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background: var(--blue);
  color: var(--wh);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--bl); }

.legal-hero {
  position: relative;
  padding: 5.5rem 3rem 3.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--bdr);
}

.legal-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  background: radial-gradient(circle, rgba(45, 142, 255, 0.1), transparent 65%);
  pointer-events: none;
}

.legal-hero .eyebrow {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bl);
  font-weight: 600;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  font-family: var(--fft);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 760px;
  margin: 0 auto 0.85rem;
  position: relative;
  z-index: 1;
}

.legal-hero .lead {
  color: var(--mu);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.legal-meta {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
  position: relative;
  z-index: 1;
}

.legal-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 4rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 90px;
  background: var(--n2);
  border: 1px solid var(--bdr);
  border-radius: 16px;
  padding: 1.25rem;
}

.legal-toc-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mu);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-toc a {
  display: block;
  color: var(--mu);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  line-height: 1.4;
}

.legal-toc a:hover,
.legal-toc a.active {
  background: rgba(45, 142, 255, 0.1);
  color: var(--wh);
}

.legal-body {
  background: var(--n2);
  border: 1px solid var(--bdr);
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
}

.legal-body section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--bdr);
}

.legal-body section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-body h2 {
  font-family: var(--fft);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--ow);
  scroll-margin-top: 100px;
}

.legal-body h3 {
  font-family: var(--fft);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 1.25rem 0 0.55rem;
  color: var(--ow);
}

.legal-body p,
.legal-body li {
  color: var(--mu);
  font-size: 0.94rem;
  line-height: 1.75;
}

.legal-body p + p { margin-top: 0.75rem; }

.legal-body ul,
.legal-body ol {
  margin: 0.65rem 0 0.65rem 1.35rem;
}

.legal-body li + li { margin-top: 0.35rem; }

.legal-body a {
  color: var(--bl);
  text-decoration: none;
}

.legal-body a:hover { text-decoration: underline; }

.legal-body strong { color: var(--ow); font-weight: 600; }

.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.legal-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.legal-info-card dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bl);
  margin-bottom: 0.35rem;
}

.legal-info-card dd {
  color: var(--ow);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bl);
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.legal-back:hover { color: var(--wh); }

/* Hub documents */
.legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.legal-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--n2);
  border: 1px solid var(--bdr);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.legal-hub-card:hover {
  border-color: rgba(45, 142, 255, 0.35);
  transform: translateY(-3px);
  background: #131f33;
}

.legal-hub-card h2 {
  font-family: var(--fft);
  font-size: 1.05rem;
  color: var(--wh);
}

.legal-hub-card p {
  color: var(--mu);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.legal-hub-card .link {
  color: var(--bl);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Footer pages légales */
footer.legal-footer {
  position: relative;
  z-index: 2;
  background: var(--dk);
  padding: 2.5rem 3rem 1.5rem;
  border-top: 1px solid var(--bdr);
  margin-top: 0;
}

footer.legal-footer .ft {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bdr);
}

footer.legal-footer .fb-desc {
  color: var(--mu);
  font-size: 0.82rem;
  font-weight: 300;
  margin-top: 0.6rem;
  line-height: 1.6;
  max-width: 220px;
}

footer.legal-footer .fc h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 0.9rem;
}

footer.legal-footer .fc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

footer.legal-footer .fc li a {
  color: var(--mu);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

footer.legal-footer .fc li a:hover { color: var(--wh); }

footer.legal-footer .fb2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-hub-grid { grid-template-columns: 1fr; }
  footer.legal-footer .ft { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .legal-hero { padding: 4.5rem 1.25rem 2.5rem; }
  .legal-shell { padding: 2rem 1.25rem 3rem; }
  .legal-body { padding: 1.5rem 1.25rem; }
  .legal-info-grid { grid-template-columns: 1fr; }
  footer.legal-footer { padding: 2rem 1.25rem 1.25rem; }
  footer.legal-footer .ft { grid-template-columns: 1fr; }
}
