/* Page juridique ZooX. Fichier séparé afin d'éviter qu'un ancien styles.css en cache
   n'affiche les documents sans leur mise en page. */
.legal-page {
  margin: 0;
  color: #3f3e39;
  background: #f2efe6;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #d0c59e;
  color: #fff;
  background: #363633f3;
  box-shadow: 0 9px 25px #0003;
  backdrop-filter: blur(14px);
}

.legal-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.legal-header nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.legal-header nav a:hover {
  color: #333;
  background: #ffd305;
}

.legal-header > .button {
  width: auto;
  min-height: 42px;
  white-space: nowrap;
}

.legal-main {
  min-height: 100vh;
  padding-bottom: 80px;
}

.legal-hero {
  padding: 85px max(24px, calc((100vw - 1040px) / 2)) 65px;
  color: #fff;
  background: radial-gradient(circle at 75% 5%, #ffd30535, transparent 34%), linear-gradient(145deg, #55544e, #292926);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font: 900 clamp(42px, 6vw, 68px) / 1 Georgia, serif;
}

.legal-hero > p:not(.eyebrow) {
  max-width: 740px;
  margin: 20px 0;
  color: #deddd7;
  font-size: 16px;
  line-height: 1.7;
}

.legal-hero > div {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.legal-hero > div span {
  padding: 7px 10px;
  border: 1px solid #ffffff2b;
  border-radius: 8px;
  background: #ffffff0d;
  font-size: 10px;
  font-weight: 750;
}

.legal-hero a { color: #fff; text-decoration: underline; }

.legal-alert {
  width: min(1040px, calc(100% - 40px));
  margin: -25px auto 32px;
  padding: 17px 20px;
  border: 2px solid #bc6d22;
  border-radius: 15px;
  color: #53300f;
  background: #fff1d6;
  box-shadow: 0 12px 30px #5b3b1630;
}

.legal-alert strong { font-size: 14px; }
.legal-alert p { margin: 5px 0 0; font-size: 12px; line-height: 1.55; }

.legal-layout {
  width: min(1120px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin: auto;
}

.legal-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid #d4c79d;
  border-radius: 14px;
  background: #fffdf7;
  box-shadow: 0 9px 25px #493c1820;
}

.legal-summary strong {
  padding: 8px 9px;
  color: #8a701b;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-summary a {
  padding: 9px;
  border-radius: 8px;
  color: #4d4c47;
  font-size: 11px;
  font-weight: 750;
}

.legal-summary a:hover { background: #ffe76d; }
.legal-documents { display: grid; gap: 22px; }

.legal-document {
  scroll-margin-top: 94px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid #d8cfb2;
  border-radius: 18px;
  background: #fffdf7;
  box-shadow: 0 14px 35px #39301916;
}

.legal-kicker {
  margin: 0;
  color: #9b7c18;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legal-document h2 {
  margin: 5px 0 26px;
  color: #393832;
  font: 900 clamp(29px, 4vw, 42px) / 1.05 Georgia, serif;
}

.legal-document h3 {
  margin: 24px 0 7px;
  color: #4a4943;
  font: 800 18px Georgia, serif;
}

.legal-document p,
.legal-document li {
  color: #656159;
  font-size: 13px;
  line-height: 1.72;
}

.legal-document ul { padding-left: 20px; }
.legal-document a { color: #795f00; text-decoration: underline; text-underline-offset: 2px; }

.legal-callout {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 5px solid #ffd305;
  border-radius: 0 12px 12px 0;
  background: #fff4b7;
}

.legal-callout strong { font: 800 18px Georgia, serif; }
.legal-callout p { margin: 5px 0 0; color: #514c39; }
.legal-source-link { margin-top: 25px !important; padding-top: 15px; border-top: 1px solid #ded5b8; }
.legal-identity { display: grid; gap: 7px; }

.legal-identity div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  padding: 11px;
  border-radius: 9px;
  background: #f2eee2;
}

.legal-identity dt { font-size: 11px; font-weight: 900; }
.legal-identity dd { margin: 0; color: #6d6459; font-size: 12px; }
.legal-footer { grid-template-columns: auto 1fr auto; }
.legal-footer > p { text-align: center; }
.legal-footer > div a { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .legal-header nav { display: none; }
  .legal-header > .button { margin-left: auto; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-summary { position: static; grid-template-columns: repeat(2, 1fr); }
  .legal-summary strong { grid-column: 1 / -1; }
  .legal-footer { grid-template-columns: 1fr; text-align: center; }
  .legal-footer > div { justify-content: center; }
}

@media (max-width: 560px) {
  .legal-header { padding-inline: 14px; }
  .legal-header .brand span { display: none; }
  .legal-header > .button { padding-inline: 12px; }
  .legal-hero { padding: 60px 20px; }
  .legal-layout { width: calc(100% - 24px); }
  .legal-summary { grid-template-columns: 1fr; }
  .legal-document { padding: 23px 18px; }
  .legal-identity div { grid-template-columns: 1fr; gap: 4px; }
  .legal-alert { width: calc(100% - 24px); }
}
