/* Page-specific styles layered on top of globalStyles.css */
/* Shared by: politique-protection-donnees.html, conditions-generales-utilisation.html */

.legal-hero {
  min-height: auto;
  padding: 160px 5% 80px;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  text-align: center;
}

.legal-hero h1 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #040f1e;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.15;
}

.legal-hero p {
  color: #881337;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

.last-updated {
  display: inline-block;
  background: #ffe4e6;
  color: #be123c;
  padding: 8px 18px;
  border-radius: 999px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(190, 18, 60, 0.13);
}

.legal-container {
  max-width: 960px;
  margin: 60px auto;
  padding: 0 5%;
}

.content-card {
  background: #ffffff;
  border: 1px solid rgba(190, 18, 60, 0.13);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

.intro-text {
  font-size: 1.05rem;
  color: #040f1e;
  line-height: 1.8;
  margin-bottom: 32px;
  padding: 24px;
  background: #fff1f2;
  border-radius: 12px;
  border-left: 4px solid #e11d48;
}

.table-of-contents {
  background: #fff1f2;
  border: 1px solid rgba(190, 18, 60, 0.13);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.table-of-contents h3 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  color: #040f1e;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  counter-reset: section;
}

.toc-list li {
  counter-increment: section;
  margin-bottom: 10px;
}

.toc-list a {
  color: #881337;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: color 0.3s ease;
}

.toc-list a::before {
  content: counter(section) ".";
  color: #e11d48;
  font-weight: 700;
  margin-right: 12px;
  min-width: 28px;
}

.toc-list a:hover {
  color: #e11d48;
}

.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}

.legal-section h2 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  color: #040f1e;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
  letter-spacing: -0.5px;
}

.legal-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 28px;
  background: #e11d48;
  border-radius: 3px;
}

.legal-section h3 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  color: #040f1e;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.legal-section p {
  color: #3d1b2a;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ul {
  margin: 12px 0 12px 24px;
  color: #3d1b2a;
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.legal-section a {
  color: #e11d48;
  text-decoration: none;
  font-weight: 600;
}

.legal-section a:hover {
  text-decoration: underline;
}

.contact-card {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: white;
  padding: 28px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.25);
}

.contact-card h3 {
  color: white;
  margin-bottom: 14px;
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.contact-info-item i {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.contact-info a {
  color: white !important;
  text-decoration: underline;
}

.important-note {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.important-note p {
  color: #040f1e;
  font-weight: 500;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.mini-feature-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(225, 29, 72, 0.2);
  transition: all 0.3s ease;
}

.mini-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.15);
  border-color: #e11d48;
}

.mini-feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.mini-feature-card h4 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  color: #040f1e;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.mini-feature-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .content-card {
    padding: 28px 22px;
  }
  .legal-hero {
    padding: 130px 5% 60px;
  }
}

html {
  scroll-behavior: smooth;
}
