body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
  min-height: 100vh;
}

.legal-hero {
  background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-fonce) 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.legal-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.legal-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.quick-nav-section {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.quick-nav-container h2 {
  color: var(--vert-fonce);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}

.quick-nav-card {
  background: white;
  padding: 25px 20px;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  color: var(--vert-principal);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.quick-nav-card span {
  display: block;
  width: 100%;
  text-align: center;
}

.quick-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  background: var(--vert-principal);
  color: white;
  border-color: var(--vert-principal);
}

.legal-container {
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.legal-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 40px;
}

.legal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.legal-section {
  margin-bottom: 35px;
}

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

.legal-section h2 {
  color: var(--vert-principal);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--vert-clair);
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section h3 {
  color: var(--vert-fonce);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 25px 0 15px;
}

.legal-section p {
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
  text-align: justify;
}

.legal-section ul {
  margin: 15px 0;
  padding-left: 25px;
}

.legal-section li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: #444;
}

.highlight-box {
  background: #e8f5e9;
  border-left: 4px solid var(--vert-principal);
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.highlight-box strong {
  color: var(--vert-fonce);
}

.cookie-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.cookie-table th {
  background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-fonce) 100%);
  color: white;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.cookie-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e0e0e0;
  background: white;
}

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

.cookie-table tr:hover td {
  background: #f5f5f5;
}

.contact-box {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
  text-align: center;
}

.contact-box h3 {
  color: #e65100;
  margin-bottom: 15px;
}

.contact-box p {
  margin-bottom: 20px;
}

.contact-btn {
  display: inline-block;
  background: var(--vert-principal);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--vert-fonce);
  transform: scale(1.05);
  color: white;
}

.icon {
  font-size: 1.5rem;
}

.last-update {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

@media (max-width: 900px) {
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-card {
    padding: 25px;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

  .cookie-table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
}