/* ============================================================
   PAGES LÉGALES
============================================================ */

.legal-page {
  max-width: 980px;
  margin: 30px auto;
  padding: 0 20px 30px 20px;
  color: #ffffff;
}

.legal-box {
  border: 1px solid #ffffff;
  padding: 24px;
  box-sizing: border-box;
}

.legal-page h1 {
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 600;
}

.legal-page h2 {
  margin: 26px 0 10px 0;
  font-size: 18px;
  font-weight: 500;
}

.legal-page p,
.legal-page li {
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}

.legal-page ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.legal-page a {
  color: #00ff66;
  text-decoration: none;
}

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



/* ============================================================
   PAGES LÉGALES — VERSION MOBILE COMPACTE
============================================================ */

.legal-mobile-header {
  display: none;
}

@media (max-width: 768px) {

  .legal-page-body .site-header-desktop {
    display: none !important;
  }

  .legal-mobile-header {
    display: block;
  }

  .legal-mobile-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    font-family: var(--font-ui);
    font-size: .58rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
  }

  .legal-page {
    width: 100%;
    max-width: none;
    margin: 10px auto 16px;
    padding: 0 8px 16px;
    box-sizing: border-box;
  }

  .legal-box {
    padding: 12px 12px 14px;
  }

  .legal-page h1 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.15;
  }

  .legal-page h2 {
    margin: 15px 0 5px;
    font-size: 15px;
    line-height: 1.2;
  }

  .legal-page p,
  .legal-page li {
    font-size: 12px;
    line-height: 1.38;
  }

  .legal-page p {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .legal-page ul {
    margin: 5px 0 7px 17px;
  }

  .legal-page li {
    margin: 2px 0;
  }
}

@media (max-width: 768px) {
  .legal-mobile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 64px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #001f3f !important;
    box-sizing: border-box !important;
  }

  .legal-mobile-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .legal-mobile-logo-img {
    display: block !important;
    width: auto !important;
    height: 48px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 768px) {
  .legal-mobile-logo-img {
    width: 120px !important;
    height: auto !important;
    max-width: 42vw !important;
  }
}

/* Pages légales : largeur mobile légèrement réduite */
@media (max-width: 768px) {
  .legal-page {
    width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
