/* =========================================
   FICHIER : css/legales-content.css
   PAGE    : legales.njk
   RÔLE    : sections et contenu juridique
   ========================================= */

/* Contenu */
.legal-content {
  display: grid;
  gap: 18px;
}

/* Sections */
.legal-content section {
  position: relative;
  margin: 0;
  padding: 28px 30px;
  border: 1px solid rgba(30, 61, 89, 0.09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(30, 61, 89, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.legal-content section:hover {
  border-color: rgba(30, 61, 89, 0.14);
  box-shadow: 0 14px 34px rgba(30, 61, 89, 0.07);
  transform: translateY(-1px);
}

.legal-content section::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 25px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 110, 64, 0.7);
}

/* Titres */
.legal-content h2 {
  margin: 0 30px 18px 0;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(30, 61, 89, 0.08);
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  line-height: 1.25;
  color: var(--color-deep);
}

.legal-content h3 {
  margin: 20px 0 10px;
  color: var(--color-deep);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 800;
}

/* Texte */
.legal-content p,
.legal-content li {
  color: rgba(45, 52, 54, 0.8);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: var(--color-deep);
  font-weight: 800;
}

/* Listes */
.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.legal-content li {
  position: relative;
  margin: 0;
  padding: 11px 14px 11px 36px;
  border: 1px solid rgba(30, 61, 89, 0.06);
  border-radius: 11px;
  background: rgba(30, 61, 89, 0.025);
}

.legal-content li::before {
  content: "";
  position: absolute;
  top: 1.25em;
  left: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Liens */
.legal-content a {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 110, 64, 0.35);
  text-underline-offset: 4px;
}

.legal-content a:hover {
  text-decoration-color: var(--color-accent);
}

.legal-content a[href^="mailto:"],
.legal-content a[href^="tel:"] {
  overflow-wrap: anywhere;
}

/* Contact final */
.legal-content section:last-child {
  background:
    linear-gradient(
      135deg,
      rgba(30, 61, 89, 0.035),
      rgba(255, 255, 255, 1)
    );
}

/* Responsive */
@media (max-width: 700px) {
  .legal-content {
    gap: 14px;
  }

  .legal-content section {
    padding: 22px 19px;
    border-radius: 17px;
  }

  .legal-content section::after {
    top: 19px;
    right: 18px;
  }

  .legal-content h2 {
    margin-right: 22px;
    margin-bottom: 15px;
    font-size: 1.4rem;
  }

  .legal-content p,
  .legal-content li {
    font-size: 0.97rem;
    line-height: 1.75;
  }

  .legal-content li {
    padding: 10px 12px 10px 32px;
  }

  .legal-content li::before {
    left: 13px;
  }
}