/* Repris à l'identique de l'ancien pages/cgu.php */
.pm-legal-page {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 26px auto 70px;
    color: var(--text-page, #eef1f4);
    text-align: left;
  }

  .pm-legal-page,
  .pm-legal-page * {
    box-sizing: border-box;
  }

  /* Une balise <header> héritait du header fixe général du site. Le héros est
     volontairement un bloc classique pour rester dans le contenu de la page. */
  .pm-legal-page__hero {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(30px, 5vw, 56px) !important;
    overflow: hidden;
    text-align: center;
    background:
      radial-gradient(circle at 15% 0%, rgba(101, 216, 145, .16), transparent 28rem),
      linear-gradient(145deg, rgba(20, 23, 27, .98), rgba(35, 40, 45, .96));
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
  }

  .pm-legal-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #75dc9d;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
  }

  .pm-legal-page__hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.45rem);
    line-height: 1.08;
  }

  .pm-legal-page__intro {
    max-width: 790px;
    margin: 18px auto 0;
    color: #bbc2c9;
    line-height: 1.75;
  }

  .pm-legal-page__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
    color: #89929a;
    font-size: .82rem;
  }

  .pm-legal-page__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 20px 0 28px;
  }

  .pm-legal-page__summary a {
    padding: 9px 14px;
    color: #dfe5e9;
    text-decoration: none;
    background: rgba(20, 23, 27, .82);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
  }

  .pm-legal-page__summary a:hover,
  .pm-legal-page__summary a:focus-visible {
    color: #fff;
    background: rgba(101, 216, 145, .11);
    border-color: rgba(101, 216, 145, .65);
    transform: translateY(-2px);
    outline: none;
  }

  .pm-legal-page__content {
    display: grid;
    gap: 16px;
  }

  .pm-legal-card {
    position: relative;
    padding: clamp(22px, 4vw, 34px);
    overflow: hidden;
    text-align: left;
    background: rgba(27, 30, 34, .95);
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
    scroll-margin-top: 90px;
  }

  .pm-legal-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px;
    color: #fff;
    font-size: 1.14rem;
    line-height: 1.35;
  }

  .pm-legal-card h2 > span {
    display: inline-flex;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: #0e1712;
    background: #65d891;
    border-radius: 9px;
    font-size: .86rem;
  }

  .pm-legal-card p {
    margin: 0 0 12px;
    color: #b7bec6;
    line-height: 1.75;
  }

  .pm-legal-card p:last-child {
    margin-bottom: 0;
  }

  .pm-legal-card--highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    background: linear-gradient(145deg, rgba(27, 43, 34, .97), rgba(24, 29, 32, .97));
    border-color: rgba(75, 210, 130, .42);
  }

  .pm-legal-card--highlight h2 {
    margin-bottom: 9px;
  }

  .pm-legal-card__highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #102016;
    background: #65d891;
    border-radius: 13px;
  }

  .pm-legal-page__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 7px;
    padding: 11px 16px;
    color: #102016;
    font-weight: 800;
    text-decoration: none;
    background: #65d891;
    border-radius: 11px;
    transition: transform .2s ease, filter .2s ease;
  }

  .pm-legal-page__cta:hover,
  .pm-legal-page__cta:focus-visible {
    color: #102016;
    filter: brightness(1.06);
    transform: translateY(-2px);
    outline: none;
  }

  [data-theme="light"] .pm-legal-page {
    color: #252a30;
  }

  [data-theme="light"] .pm-legal-page__hero {
    background:
      radial-gradient(circle at 15% 0%, rgba(101, 216, 145, .18), transparent 28rem),
      linear-gradient(145deg, #fff, #f0f3f4);
    border-color: #d9dfe3 !important;
  }

  [data-theme="light"] .pm-legal-page__hero h1,
  [data-theme="light"] .pm-legal-card h2 {
    color: #20252a;
  }

  [data-theme="light"] .pm-legal-page__intro,
  [data-theme="light"] .pm-legal-card p {
    color: #5b646c;
  }

  [data-theme="light"] .pm-legal-page__summary a,
  [data-theme="light"] .pm-legal-card {
    color: #343b41;
    background: #fff;
    border-color: #dce1e4;
  }

  [data-theme="light"] .pm-legal-page__summary a:hover,
  [data-theme="light"] .pm-legal-page__summary a:focus-visible {
    background: #effbf4;
  }

  [data-theme="light"] .pm-legal-card--highlight {
    background: linear-gradient(145deg, #effcf4, #fff);
  }

  @media (max-width: 600px) {
    .pm-legal-page {
      width: calc(100% - 20px);
      margin-top: 16px;
    }

    .pm-legal-page__hero {
      padding: 28px 20px !important;
      border-radius: 18px;
    }

    .pm-legal-page__summary {
      justify-content: flex-start;
      gap: 7px;
    }

    .pm-legal-page__summary a {
      font-size: .82rem;
    }

    .pm-legal-card--highlight {
      grid-template-columns: 1fr;
    }
  }
