/* Styles pour les pages légales */

/* Structure générale */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-container {
  width: 100%;
}

/* En-tête de page légale */
.legal-header {
  width: 100%;
  background: var(--color-primary-light);
  padding: 2rem 4rem;
}

.legal-header h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-font-primary);
  margin: 0 0 0.5rem 0;
}

.legal-header-date {
  font-size: 0.875rem;
  color: var(--color-font-secondary);
}

/* Contenu de la page légale */
.legal-content {
  background: var(--color-background);
  padding: 3.5rem 132px;
}

.legal-content .lin-card {
  margin-bottom: 1rem;
}

/* Headings dans le contenu légal (h2 et h4 ne sont jamais dans les cartes) */
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-font-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

/* h3 - excluant les titres de cartes (.lin-card-title) */
.legal-content h3:not(.lin-card-title) {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-font-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h4 {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: var(--font-weight-medium);
  color: var(--color-font-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  font-size: 1rem;
  color: var(--color-font-primary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 1rem;
  color: var(--color-font-primary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-content strong {
  font-weight: var(--font-weight-bold);
}

.legal-content a {
  text-decoration: underline;
}

/* Tableau d'informations */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table td {
  padding-bottom: 1.5rem;
}

.info-table tr:last-child td {
  padding-bottom: 0;
}

.info-table td:first-child {
  font-weight: var(--font-weight-medium);
  width: 40%;
}

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

.info-table td a {
  text-decoration: underline;
}

/* Mobile breakpoint */
@media (max-width: 1120px) {
  .legal-header {
    padding: 1.5rem 2rem;
  }

  .legal-header h1 {
    text-align: start;
    font-size: 1.5rem;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
    line-height: 1.6;
  }

  .legal-content p,
  .legal-content li {
    font-size: 0.875rem;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .info-table td {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }

  .info-table td:first-child {
    width: 100%;
    font-weight: var(--font-weight-bold);
    padding-bottom: 0.25rem;
  }
}
