

.legal-page { background: var(--gris-50, #f7f7f8); }

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0A0A0A;
  color: #fff;
}
.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 90% 0%, rgba(255, 213, 31, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #161616 0%, #0A0A0A 100%);
}
.legal-hero__inner {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.legal-hero__crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-4);
}
.legal-hero__crumb a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color .15s; }
.legal-hero__crumb a:hover { color: #fff; }
.legal-hero__crumb svg { width: 13px; height: 13px; }
.legal-hero__crumb span { color: #fff; }
.legal-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--noir, #0A0A0A);
  background: var(--jaune, #FFD51F);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}
.legal-hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
.legal-hero__meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

.legal-body { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.legal-body__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

.legal-toc {
  background: #fff;
  border: 1px solid var(--gris-200, #e6e6e6);
  border-radius: 14px;
  padding: 16px 18px;
}
.legal-toc__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris-500, #8a8a8a);
  margin-bottom: 10px;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gris-700, #444);
  text-decoration: none;
  line-height: 1.35;
  transition: background .14s, color .14s;
}
.legal-toc a::before {
  content: counter(toc);
  flex: none;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  background: var(--gris-100, #f0f0f0);
  color: var(--gris-600, #666);
}
.legal-toc a:hover { background: var(--gris-50, #f7f7f8); color: #0A0A0A; }
.legal-toc a.is-active { background: #fffdf3; color: #0A0A0A; font-weight: 600; }
.legal-toc a.is-active::before { background: var(--jaune, #FFD51F); color: #0A0A0A; }

.legal-content {
  background: #fff;
  border: 1px solid var(--gris-200, #e6e6e6);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.legal-content > p:first-child,
.legal-content .legal-intro {
  color: var(--gris-600, #666);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--gris-100, #f0f0f0);
}
.legal-content h2 {
  counter-increment: legal;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0A0A0A;
  margin: var(--space-7) 0 var(--space-3);
  scroll-margin-top: 90px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h2::before {
  content: counter(legal);
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 9px;
  background: var(--jaune, #FFD51F);
  color: #0A0A0A;
}
.legal-content { counter-reset: legal; }
.legal-content h3 { font-size: 1.02rem; font-weight: 700; margin: var(--space-5) 0 var(--space-2); color: #0A0A0A; }
.legal-content p { color: var(--gris-700, #3f3f3f); line-height: 1.75; margin: 0 0 var(--space-3); }
.legal-content ul, .legal-content ol { color: var(--gris-700, #3f3f3f); line-height: 1.7; margin: 0 0 var(--space-4) 1.1rem; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--jaune-dark, #b8920a); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .14s; }
.legal-content a:hover { border-color: var(--jaune-dark, #b8920a); }
.legal-content strong { color: #0A0A0A; }

.legal-box {
  background: var(--gris-50, #f7f7f8);
  border: 1px solid var(--gris-200, #e6e6e6);
  border-left: 4px solid var(--jaune, #FFD51F);
  border-radius: 10px;
  padding: var(--space-4) var(--space-5);
  margin: 0 0 var(--space-4);
}
.legal-box p { margin: 0; }

.legal-content table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-4); font-size: 0.92rem; }
.legal-content th, .legal-content td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--gris-200, #e6e6e6); }
.legal-content thead th { background: #0A0A0A; color: #fff; font-weight: 700; }

@media (min-width: 1000px) {
  .legal-body__grid { grid-template-columns: 250px 1fr; gap: var(--space-7); }
  .legal-toc { position: sticky; top: 90px; }
}
@media (max-width: 999px) {
  .legal-toc { position: relative; }
  .legal-toc__list-wrap { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .legal-toc.is-open .legal-toc__list-wrap { max-height: 1200px; }
  .legal-toc__title { cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin: 0; }
  .legal-toc__title::after { content: '▾'; transition: transform .2s; }
  .legal-toc.is-open .legal-toc__title::after { transform: rotate(180deg); }
}
