/* ═══════════════════════════════════════════════════════════
   MLT FROID — Legal Pages Stylesheet
═══════════════════════════════════════════════════════════ */

.legal-body {
  background: var(--bg-light);
  color: var(--text-on-light);
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────── */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-light);
  border-bottom: 1px solid rgba(17,17,23,0.08);
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--text-on-light);
  text-decoration: none;
}
.legal-back {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.legal-back:hover { opacity: 0.7; }

/* ── Main Layout ────────────────────────────────────────── */
.legal-main {
  padding: 5rem 5vw 8rem;
}
.legal-container {
  max-width: 780px;
  margin: 0 auto;
}

/* ── Hero ───────────────────────────────────────────────── */
.legal-hero {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(17,17,23,0.08);
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
  margin: 1rem 0 0.75rem;
}
.legal-date {
  font-size: 0.78rem;
  color: var(--text-muted-dk);
  letter-spacing: 0.08em;
}

/* ── Content ────────────────────────────────────────────── */
.legal-content { display: flex; flex-direction: column; gap: 0; }

.legal-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(17,17,23,0.06);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.legal-section h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
}
.legal-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3a3a45;
  margin-bottom: 1rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-section ul li {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #3a3a45;
  padding-left: 1.2rem;
  position: relative;
}
.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.22em;
}

.legal-section a {
  color: var(--accent);
  border-bottom: 1px solid rgba(91,191,214,0.3);
  transition: border-color 0.2s ease;
}
.legal-section a:hover { border-color: var(--accent); }

/* Note box */
.legal-note {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(91,191,214,0.08);
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  color: var(--text-muted-dk);
  line-height: 1.7;
  border-radius: 0 2px 2px 0;
}

/* Cookie table */
.cookie-table {
  margin: 1rem 0 1.5rem;
  border: 1px solid rgba(17,17,23,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.cookie-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 0;
}
.cookie-row--header {
  background: rgba(17,17,23,0.04);
}
.cookie-row span {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(17,17,23,0.06);
  color: var(--text-muted-dk);
}
.cookie-row--header span {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light);
}
.cookie-row:last-child span { border-bottom: none; }
code {
  font-family: 'Courier New', monospace;
  font-size: 0.82em;
  background: rgba(17,17,23,0.06);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

/* CTA block at end of CGV */
.legal-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-radius: 2px;
}
.legal-cta p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-on-dark) !important;
  margin: 0;
}

/* Override footer on light pages */
.legal-body .site-footer {
  margin-top: 0;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .legal-header { padding: 1rem 1.5rem; }
  .legal-main   { padding: 3rem 1.5rem 5rem; }

  .cookie-row { grid-template-columns: 1fr; }
  .cookie-row--header span:not(:first-child) { display: none; }
  .cookie-row span { border-right: none; }

  .legal-cta { flex-direction: column; }
}
