/* ============================================================
   DIGIBLOCK — legal.css
   Styles spécifiques aux pages légales
   ============================================================ */

.legal-main {
  padding-top: 70px; /* compense le header fixe */
}

.legal-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 0 96px;
}

/* === En-tête de page ======================================= */
.legal-hero {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 12px 0 20px;
}

.legal-hero p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* === Sections ============================================== */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.legal-section a:hover { opacity: 0.75; }

/* === Tableau =============================================== */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.legal-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: transparent;
}

.legal-table tbody th {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  width: 220px;
}

.legal-table tbody td {
  color: var(--text-muted);
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover th,
.legal-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* === Liste ================================================= */
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}

.legal-list li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.legal-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 3px;
}

/* === Date de mise à jour =================================== */
.legal-date {
  font-size: 13px;
  color: var(--text-subtle);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* === Responsive ============================================ */
@media (max-width: 768px) {
  .legal-wrapper { padding: 48px 0 72px; }
  .legal-table tbody th { width: auto; white-space: normal; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .legal-table { display: block; overflow-x: auto; }
}
