/* Page juridique ReluPourVous
   Ce fichier est volontairement séparé de styles.css. */

.legal-page {
  background: #f6f2eb;
}

.legal-main {
  min-height: 70vh;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 28px 76px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 10%, rgba(239, 178, 35, 0.18), transparent 28%),
    linear-gradient(145deg, #0d3766 0%, #071f40 76%, #06182f 100%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -145px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.legal-hero-kicker {
  margin: 0 0 14px;
  color: #f5c65a;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.legal-hero h1 {
  margin: 0 0 16px;
  color: #fffdf8;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.legal-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.legal-layout {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 62px 28px 92px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 24px;
  padding: 22px 20px;
  border: 1px solid rgba(8, 30, 62, 0.10);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(7, 27, 57, 0.07);
}

.legal-toc-title {
  margin: 0 0 15px;
  color: #9a6807;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
  gap: 4px;
}

.legal-toc a,
.legal-toc button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  color: #173251;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.legal-toc a:hover,
.legal-toc button:hover {
  color: #0a2348;
  background: #eef4f8;
}

.legal-document {
  min-width: 0;
  padding: 46px 50px 56px;
  border: 1px solid rgba(8, 30, 62, 0.09);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 24px 58px rgba(7, 27, 57, 0.10);
}

.legal-opening {
  margin: 0 0 22px;
  padding: 15px 17px;
  color: #5f480b;
  border-left: 4px solid #efb223;
  border-radius: 0 10px 10px 0;
  background: #fff5d9;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.5;
}

.legal-document-header {
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(8, 30, 62, 0.12);
}

.legal-document-kicker {
  margin: 0 0 10px;
  color: #1b64bc;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.legal-document-header .legal-document-title {
  margin: 0 0 12px;
  color: #04162f;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(33px, 3vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.legal-version {
  margin: 0;
  color: #68788b;
  font-size: 13px;
  font-weight: 700;
}

.legal-major-section {
  scroll-margin-top: 28px;
  margin-top: 50px;
}

.legal-major-section:first-of-type {
  margin-top: 0;
}

.legal-major-heading {
  margin-bottom: 28px;
  padding-bottom: 15px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(8, 30, 62, 0.11);
}

.legal-major-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: #0a2348;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.legal-major-heading h2 {
  margin: 0;
  color: #04162f;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.027em;
}

.legal-subsection {
  scroll-margin-top: 28px;
  margin: 28px 0 0;
}

.legal-subsection h3 {
  margin: 0 0 13px;
  color: #0a2348;
  font-size: 18px;
  line-height: 1.35;
}

.legal-subsection h3 span {
  color: #9a6807;
}

.legal-document p,
.legal-document li {
  color: #34445d;
  font-size: 14.5px;
  line-height: 1.72;
}

.legal-document p {
  margin: 0 0 15px;
}

.legal-document a {
  color: #1b64bc;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-list {
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 20px;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #efb223;
}

.legal-address {
  padding: 15px 17px;
  border: 1px solid rgba(8, 30, 62, 0.09);
  border-radius: 10px;
  background: #f5f8fa;
}

.legal-form-line {
  min-height: 34px;
  margin: 4px 0 18px !important;
  border-bottom: 1px dotted #8390a1;
  color: transparent !important;
}

.legal-withdrawal {
  padding: 28px;
  border: 1px solid rgba(239, 178, 35, 0.28);
  border-radius: 15px;
  background: #fffaf0;
}

.footer-cookie-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.footer-cookie-link:hover {
  color: #f5c65a;
}

.contact-consent a {
  color: #1b64bc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 54px 17px 50px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }

  .legal-layout {
    padding: 26px 14px 60px;
    gap: 22px;
  }

  .legal-toc {
    padding: 17px 14px;
  }

  .legal-toc nav {
    grid-template-columns: 1fr;
  }

  .legal-document {
    padding: 29px 19px 38px;
    border-radius: 13px;
  }

  .legal-document-header .legal-document-title {
    font-size: 31px;
  }

  .legal-major-heading {
    grid-template-columns: 38px 1fr;
    gap: 11px;
  }

  .legal-major-heading > span {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
  }

  .legal-major-heading h2 {
    font-size: 25px;
  }

  .legal-document p,
  .legal-document li {
    font-size: 14px;
  }

  .legal-withdrawal {
    padding: 20px 16px;
  }
}
