/* ── Variables ── */
:root {
  --navy:       #1C3A4A;
  --blue:       #5AAFD4;
  --blue-light: #B5D4F4;
  --blue-pale:  #E6F1FB;
  --terra:      #C4603A;
  --beige:      #F5EFE6;
  --white:      #FFFFFF;
  --text:       #1C3A4A;
  --font-title: 'Jua', sans-serif;
  --font-body:  'Nunito', sans-serif;
  --text-muted: #6B8EA0;
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --max-w:      1100px;
}

/* ── Offset pour ancres avec header fixe ── */
section[id],
div[id] {
  scroll-margin-top: 70px;
}

/* Sections avec padding-top 120px — offset fin pour arriver pile en haut */
#services,
#about,
#discovery-cta {
  scroll-margin-top: 0px;
}

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

html { 
  font-size: 16px; 
}

a { 
  color: inherit; 
  text-decoration: none; 
  cursor: none; 
  font-family: var(--font-body);
}

button { 
  cursor: none; 
}

img { 
  display: block; 
  max-width: 100%; 
}

.legal-hero {
  display: flex;
  flex-direction: column;
  padding: 160px 40px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 24px;
}

.legal-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}

.legal-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.45;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-updated {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  transition: color .3s;
}

.legal-back:hover {
  color: var(--blue-light);
}

.legal-back svg {
  width: 14px;
  height: 14px;
}

.legal-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 120px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

/* Nav latérale */
.legal-nav {
  position: sticky;
  top: 100px;
}

.legal-nav-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.legal-nav a {
  display: block;
  font-size: .88rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-left: 2px solid var(--blue-pale);
  padding-left: 14px;
  transition: color .3s, border-color .3s;
}

.legal-nav a:hover {
  color: var(--blue-light);
  border-color: var(--blue-light);
}

/* Contenu */
.legal-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--blue-pale);
}

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

.legal-section-num {
  font-family: var(--font-title);
  font-size: .65rem;
  letter-spacing: .10em;
  color: var(--terra);
  margin-bottom: 10px;
  display: block;
}

.legal-section h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 20px;
}

.legal-section p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

.legal-info-block {
  background: var(--blue-pale);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 20px 0;
}

.legal-info-block p {
  margin-bottom: 8px;
}

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

.legal-info-block strong {
  color: var(--blue);
  font-weight: 600;
}

/* Placeholder visible */
.placeholder {
  background: rgba(196, 96, 58, .1);
  border: 1px dashed rgba(196, 96, 58, .35);
  border-radius: 4px;
  padding: 1px 8px;
  color: var(--terra);
  font-size: .85em;
  font-style: italic;
}

/* Tableaux (confidentialité) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .88rem;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(90, 175, 212, .1);
  color: var(--blue);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(90, 175, 212, .2);
}

.data-table td {
  padding: 12px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--blue-pale);
  vertical-align: top;
  line-height: 1.55;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(0, 0, 0, .02);
}

@media (max-width: 768px) {

  .legal-hero {
    padding: 130px 32px 60px;
    text-align: center;
    align-items: center;
  }

  .legal-body {
    grid-template-columns: 1fr;
    padding: 0 32px 80px;
    gap: 40px;
  }

  .legal-nav {
    display: none;
  }

  .data-table {
    font-size: .88rem;
  }

  .legal-section {
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .legal-section p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .legal-section-num {
    text-align: center;
  }

  .legal-info-block {
    text-align: center;
    overflow-wrap: break-word;
  }
}