/* ==========================================================================
   legal.css — styles dédiés aux pages légales (confidentialité, mentions).
   Chargé via le mécanisme `extraCss` de partials/head.ejs.
   S'appuie exclusivement sur les variables du thème `nonchalance`
   (noir & blanc, couture, sobre) pour rester fidèle à la DA.
   ========================================================================== */

.legal-doc {
  color: hsl(var(--foreground));
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Rythme vertical entre les sections */
.legal-doc > section + section {
  margin-top: 2.75rem;
}

/* Titres de section */
.legal-doc h2 {
  font-family: var(--font-serif), Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground));
  margin-bottom: 0.9rem;
}

.legal-doc h3 {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: hsl(var(--foreground));
  margin: 1.4rem 0 0.5rem;
}

/* Paragraphes et listes : gris chaud du thème pour le corps de texte */
.legal-doc p,
.legal-doc li {
  color: hsl(var(--muted-foreground));
}

.legal-doc p + p {
  margin-top: 0.85rem;
}

.legal-doc ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.6rem 0;
}

.legal-doc li {
  margin: 0.35rem 0;
  padding-left: 0.15rem;
}

.legal-doc li::marker {
  color: hsl(var(--foreground) / 0.45);
}

.legal-doc strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.legal-doc a {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}

.legal-doc a:hover {
  opacity: 0.65;
}

/* Libellé « surtitre » (eyebrow) réutilisé du reste du site */
.legal-eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}

/* Bandeau « société en cours de constitution » */
.legal-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--foreground));
  background: hsl(var(--secondary));
  border-radius: 0.8rem;
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--foreground));
}

.legal-banner svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: hsl(var(--foreground));
}

/* Placeholders à compléter par un humain avant mise en ligne */
.legal-ph {
  display: inline;
  font-style: normal;
  font-weight: 500;
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
  border: 1px dashed hsl(var(--foreground) / 0.45);
  border-radius: 5px;
  padding: 0.05rem 0.35rem;
  white-space: normal;
}

/* Bloc « définition » : responsable, coordonnées, durées… */
.legal-dl {
  display: grid;
  gap: 0.9rem;
  margin: 0.4rem 0;
}

.legal-dl > div {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  padding: 0.9rem 1.05rem;
}

.legal-dl dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.3rem;
}

.legal-dl dd {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .legal-dl--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Date / méta en tête */
.legal-meta {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}
