/* ==========================================================
   PHOTOGAMES — PAGES LÉGALES V1.3
   Feuille dédiée, chargée après app.css.
   ========================================================== */

.pg-site .pg-legal-hero.pg-shell {
    display: block;
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    margin-inline: auto;
    padding: 82px 0 44px;
}

.pg-site .pg-legal-hero h1 {
    max-width: 930px;
    margin: 18px 0 20px;
    color: #f7f8ff;
    font-size: clamp(3.4rem, 6vw, 5.35rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.98;
    text-wrap: balance;
}

.pg-site .pg-legal-hero > p {
    max-width: 760px;
    margin: 0;
    color: #aab1cb;
    font-size: 1.12rem;
    line-height: 1.65;
}

.pg-site .pg-legal-section {
    padding: 0 0 82px;
}

.pg-site .pg-legal-section > .pg-shell {
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    margin-inline: auto;
    padding: 0;
}

.pg-site .pg-legal {
    width: 100%;
    max-width: none;
    margin: 0;
}

.legal-page {
    --legal-ink: #f7f8ff;
    --legal-muted: #aab1cb;
    --legal-accent: #9a8cff;
    --legal-accent-strong: #c9c1ff;
    --legal-accent-soft: rgba(139, 92, 246, 0.13);
    --legal-border: rgba(255, 255, 255, 0.11);
    color: var(--legal-ink);
}

.legal-page__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.legal-page__updated {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--legal-muted);
    font-size: 0.9rem;
}

.legal-page__updated i,
.legal-pill i {
    color: var(--legal-accent);
}

.legal-pill {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(154, 140, 255, 0.23);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #d7dbea;
    font-size: 0.8rem;
    font-weight: 700;
}

.legal-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
    align-items: stretch;
    gap: 22px;
    margin-bottom: 46px;
}

.legal-highlight,
.legal-summary-card {
    border: 1px solid var(--legal-border);
    border-radius: 25px;
    background:
        radial-gradient(circle at 20% 0, rgba(109, 93, 252, 0.09), transparent 38%),
        linear-gradient(145deg, rgba(18, 22, 49, 0.96), rgba(11, 14, 35, 0.96));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18);
}

.legal-highlight {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    min-height: 390px;
    padding: 46px 48px;
}

.legal-highlight__icon {
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border: 1px solid rgba(193, 180, 255, 0.14);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(109, 93, 252, 0.24), rgba(236, 72, 153, 0.13));
    color: #c9c1ff;
    font-size: 2.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(37, 24, 92, 0.2);
}

.legal-kicker {
    margin: 0 0 9px;
    color: #a6afff;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.legal-highlight h2 {
    max-width: 500px;
    margin: 0 0 15px;
    color: var(--legal-accent-strong);
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.legal-highlight p:not(.legal-kicker) {
    max-width: 540px;
    margin: 0;
    color: #c3c9dd;
    font-size: 1rem;
    line-height: 1.65;
}

.legal-highlight p:not(.legal-kicker) + p {
    margin-top: 9px;
}

.legal-summary-card {
    padding: 26px;
}

.legal-summary-card > .legal-kicker {
    margin-bottom: 6px;
}

.legal-summary-card > h2 {
    max-width: 330px;
    margin: 0 0 18px;
    color: #c9c1ff;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
}

.legal-key-grid {
    display: grid;
    gap: 10px;
}

.legal-key-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.028);
}

.legal-key-item i {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: rgba(139, 92, 246, 0.13);
    color: #bcb2ff;
    font-size: 0.95rem;
}

.legal-key-item strong {
    display: block;
    margin-bottom: 3px;
    color: #f5f6ff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.35;
}

.legal-key-item p {
    margin: 0;
    color: #aeb6ce;
    font-size: 0.8rem;
    line-height: 1.48;
}

.legal-page__content {
    width: min(100%, 930px);
    margin-inline: auto;
    counter-reset: legal-section;
}

.legal-page__content > h2 {
    counter-increment: legal-section;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 30px 0 14px;
    border-top: 1px solid var(--legal-border);
    color: var(--legal-ink);
    font-size: clamp(1.18rem, 2.2vw, 1.45rem);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.legal-page__content > h2:first-child {
    padding-top: 0;
    border-top: 0;
}

.legal-page__content > h2::before {
    content: counter(legal-section);
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    border-radius: 12px;
    background: var(--legal-accent-soft);
    color: #aa9fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.legal-page__content h3 {
    margin: 22px 0 9px 53px;
    color: #e8eaff;
    font-size: 1rem;
    line-height: 1.4;
}

.legal-page__content p,
.legal-page__content li {
    color: #bcc3da;
    font-size: 0.96rem;
    line-height: 1.72;
}

.legal-page__content p {
    margin: 0 0 13px;
}

.legal-page__content strong {
    color: #f7f8ff;
}

.legal-page__content ul:not(.legal-definitions) {
    margin: 8px 0 23px;
    padding-left: 1.3rem;
}

.legal-page__content li + li {
    margin-top: 6px;
}

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

.legal-page__content a:hover {
    color: #c5bdff;
}

.legal-definitions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 30px;
    margin: 8px 0 30px;
    padding: 0;
    list-style: none;
}

.legal-definitions li {
    position: relative;
    margin: 0;
    padding: 12px 0 12px 34px;
}

.legal-definitions li::before {
    position: absolute;
    top: 12px;
    left: 4px;
    color: var(--legal-accent);
    content: "○";
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.pg-legal-draft-note {
    width: min(100%, 930px);
    margin: 38px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--legal-border);
}

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

    .legal-highlight {
        min-height: 0;
    }

    .legal-summary-card > h2 {
        max-width: 520px;
    }
}

@media (max-width: 700px) {
    .pg-site .pg-legal-hero.pg-shell,
    .pg-site .pg-legal-section > .pg-shell {
        width: min(100% - 32px, 1120px);
    }

    .pg-site .pg-legal-hero.pg-shell {
        padding: 54px 0 30px;
    }

    .pg-site .pg-legal-hero h1 {
        margin-top: 14px;
        font-size: clamp(2.65rem, 13vw, 3.6rem);
        line-height: 1;
    }

    .pg-site .pg-legal-hero > p {
        font-size: 1rem;
    }

    .legal-page__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .legal-highlight {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 26px 22px;
    }

    .legal-highlight__icon {
        width: 72px;
        height: 72px;
        border-radius: 22px;
        font-size: 1.7rem;
    }

    .legal-highlight h2 {
        font-size: 1.55rem;
    }

    .legal-summary-card {
        padding: 22px;
    }

    .legal-summary-card > h2 {
        font-size: 1.35rem;
    }

    .legal-definitions {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .legal-page__content > h2 {
        gap: 11px;
        padding-top: 24px;
    }

    .legal-page__content > h2::before {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
        font-size: 0.9rem;
    }

    .legal-page__content h3 {
        margin-left: 46px;
    }
}

/* ==========================================================
   CGV — COMPLÉMENTS DE MISE EN FORME
   ========================================================== */

.legal-sales-intro .legal-sales-highlight {
    background:
        radial-gradient(circle at 14% 10%, rgba(109, 93, 252, 0.15), transparent 34%),
        radial-gradient(circle at 92% 80%, rgba(236, 72, 153, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(18, 22, 49, 0.97), rgba(11, 14, 35, 0.97));
}

.legal-sales-highlight .legal-highlight__icon {
    background: linear-gradient(145deg, rgba(109, 93, 252, 0.28), rgba(236, 72, 153, 0.17));
}

.legal-notice {
    margin: 18px 0 30px;
    padding: 24px 26px;
    border: 1px solid rgba(154, 140, 255, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(139, 92, 246, 0.09), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.legal-notice p {
    color: #c6cce0;
}

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

.legal-withdrawal-form {
    position: relative;
    overflow: hidden;
}

.legal-withdrawal-form::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
    content: "";
}

.legal-withdrawal-form strong {
    color: #f7f8ff;
}

@media (max-width: 700px) {
    .legal-notice {
        padding: 21px 19px;
        border-radius: 17px;
    }
}

/* ==========================================================
   MENTIONS LÉGALES ET CONFIDENTIALITÉ
   ========================================================== */

.legal-notices-highlight {
    background:
        radial-gradient(circle at 14% 12%, rgba(34, 211, 238, 0.11), transparent 35%),
        linear-gradient(145deg, rgba(18, 22, 49, 0.97), rgba(11, 14, 35, 0.97));
}

.legal-notices-highlight .legal-highlight__icon {
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.21), rgba(109, 93, 252, 0.17));
    color: #83e8f6;
}

.legal-privacy-highlight {
    background:
        radial-gradient(circle at 14% 10%, rgba(34, 211, 238, 0.12), transparent 34%),
        radial-gradient(circle at 90% 82%, rgba(139, 92, 246, 0.10), transparent 36%),
        linear-gradient(145deg, rgba(18, 22, 49, 0.97), rgba(11, 14, 35, 0.97));
}

.legal-privacy-highlight .legal-highlight__icon {
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.23), rgba(109, 93, 252, 0.17));
    color: #83e8f6;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 18px 0 32px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.legal-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.legal-table th,
.legal-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: rgba(139, 92, 246, 0.10);
    color: #e9e6ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-table td {
    color: #bcc3da;
    font-size: 0.88rem;
    line-height: 1.6;
}

.legal-table tbody tr:last-child td {
    border-bottom: 0;
}

.legal-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.018);
}

@media (max-width: 700px) {
    .legal-table-wrap {
        margin-inline: -2px;
        border-radius: 17px;
    }

    .legal-table th,
    .legal-table td {
        padding: 14px;
    }
}
