/* ================= LEGAL PAGES CSS ================= */
/* Utilisé par : confidentialite.html, cookies.html,
   cgu.html, mentions-legales.html, responsabilite.html */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: #e5e7eb;
  overflow-x: hidden;
  min-height: 100vh;

  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
    url("images/Hero-imggg.jpg");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(1,98,136,0.88),
    rgba(0,71,99,0.82),
    rgba(13,28,34,0.92)
  );
  z-index: 0;
}

/* ================= CONTAINER ================= */

.legal-container {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ================= BACK LINK ================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffcc00;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  transition: 0.3s ease;
}

.back-link:hover {
  transform: translateX(-4px);
  opacity: 0.85;
}

/* ================= HEADER ================= */

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.legal-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,204,0,0.12);
  border: 1px solid rgba(255,204,0,0.3);
  color: #ffcc00;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
}

.legal-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.legal-date {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
}

/* ================= CONTENT ================= */

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-content p {
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  font-size: 0.97rem;
}

/* ================= HEADINGS ================= */

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffcc00;
  margin-bottom: 0.5rem;
  padding-left: 14px;
  border-left: 3px solid #ffcc00;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.4rem;
  margin-top: 0.8rem;
}

/* ================= LISTS ================= */

.legal-content ul {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-content ul li {
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-content ul li::marker {
  color: #ffcc00;
}

/* ================= LINKS ================= */

.legal-content a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.legal-content a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ================= INFO BOX ================= */

.info-box,
.contact-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-box p,
.contact-box p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-box {
  border-color: rgba(255,204,0,0.2);
  background: rgba(255,204,0,0.05);
}

/* ================= COOKIE TABLE ================= */

.cookie-table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.cookie-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 2fr;
  gap: 1rem;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

.cookie-row:last-child {
  border-bottom: none;
}

.cookie-row.header {
  background: rgba(255,204,0,0.1);
  color: #ffcc00;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.cookie-row:not(.header):hover {
  background: rgba(255,255,255,0.04);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  .legal-container {
    padding: 2rem 1.2rem 4rem;
  }

  .legal-header h1 {
    font-size: 1.8rem;
  }

  .cookie-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cookie-row.header {
    display: none;
  }

  .cookie-row span:not(:first-child)::before {
    content: "• ";
    color: #ffcc00;
  }
}

@media (max-width: 480px) {

  .legal-header h1 {
    font-size: 1.5rem;
  }

  .legal-content h2 {
    font-size: 1.1rem;
  }
}