/* ══════════════════════════════════════════════════════════
   MAISON BELFASSI — legal.css
   Styles for mentions-legales.html & confidentialite.html
   ══════════════════════════════════════════════════════════ */

/* ── Hero Section ─────────────────────────────────────────── */
.legal-hero {
  background: linear-gradient(160deg, var(--dark) 0%, #110e05 60%, var(--dark) 100%);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.legal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 1rem 0 1.2rem;
}
.legal-hero p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.legal-hero p strong { color: var(--gold); }
.legal-date {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Layout ───────────────────────────────────────────────── */
.legal-main {
  background: var(--dark-2);
  padding: 4rem 0 6rem;
}
.legal-container {
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Table of Contents ────────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--dark-3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
}
.legal-toc h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}
.legal-toc ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.legal-toc ul li a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-3);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: all 0.2s var(--ease);
  line-height: 1.4;
}
.legal-toc ul li a:hover,
.legal-toc ul li a.active {
  color: var(--gold-light);
  border-left-color: var(--gold);
  background: var(--gold-muted);
  padding-left: 0.9rem;
}

/* ── Body Content ─────────────────────────────────────────── */
.legal-body {
  min-width: 0;
}

.legal-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--glass-border);
  scroll-margin-top: 100px;
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-muted);
  border: 1px solid var(--gold-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.legal-section h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gold);
}
.legal-section p {
  color: var(--text-2);
  font-size: 0.925rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.legal-section a:hover { color: var(--gold-light); }
.link-gold { color: var(--gold) !important; }

/* ── Lists ────────────────────────────────────────────────── */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.legal-list li {
  font-size: 0.9rem;
  color: var(--text-2);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
}
.legal-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.55rem;
  top: 0.5rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.legal-card {
  background: var(--dark-4);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
  margin: 1.2rem 0;
}
.legal-card.compact { padding: 1.2rem 1.5rem; }
.legal-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 0 !important;
}

.info-grid { display: flex; flex-direction: column; gap: 0; }
.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--glass-border);
  align-items: start;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 0.1rem;
}
.info-val {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}
.info-val a { color: var(--gold); text-decoration: underline; }

/* ── Alert ────────────────────────────────────────────────── */
.legal-alert {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  margin-bottom: 2.5rem;
}
.legal-alert.info {
  background: rgba(80, 150, 220, 0.06);
  border-color: rgba(80, 150, 220, 0.2);
}
.alert-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: 0.1rem; }
.legal-alert p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 !important;
}
.legal-alert strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* ── Highlight box ────────────────────────────────────────── */
.legal-highlight {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem 1.5rem;
  background: var(--dark-4);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.highlight-icon { font-size: 1.4rem; flex-shrink: 0; }
.legal-highlight p {
  font-size: 0.875rem !important;
  margin-bottom: 0 !important;
}
.legal-highlight strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

/* ── Note ─────────────────────────────────────────────────── */
.legal-note {
  font-size: 0.8rem !important;
  color: var(--text-3) !important;
  font-style: italic;
  margin-top: 0.75rem !important;
}

/* ── Tables ───────────────────────────────────────────────── */
.data-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead tr {
  background: var(--dark-4);
}
.data-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.8rem 1rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
  line-height: 1.6;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.data-table code {
  font-family: monospace;
  background: var(--dark-5);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--gold-light);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge-required {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.badge-optional {
  display: inline-block;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* ── Rights Grid ──────────────────────────────────────────── */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 1.5rem;
}
.right-card {
  background: var(--dark-4);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.3rem;
  transition: all 0.3s var(--ease);
}
.right-card:hover {
  border-color: rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.04);
}
.right-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.right-card h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.right-card p {
  font-size: 0.82rem !important;
  color: var(--text-3) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .legal-toc {
    position: relative;
    top: 0;
  }
}
@media (max-width: 600px) {
  .rights-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .info-label { color: var(--gold); font-size: 0.7rem; }
}
