* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.photographe-public-legal-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--photographe-brand-soft) 80%, white) 0%, transparent 30%),
        linear-gradient(180deg, color-mix(in srgb, var(--photographe-surface-page) 94%, white) 0%, #ffffff 100%);
    color: var(--photographe-text-title);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.photographe-public-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.photographe-public-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid color-mix(in srgb, var(--photographe-border) 60%, transparent);
    background: color-mix(in srgb, var(--photographe-surface-page) 90%, white);
    backdrop-filter: blur(18px);
}

.photographe-public-nav__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.photographe-public-nav__brand img {
    display: block;
    height: 24px;
    width: auto;
}

.photographe-public-nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.photographe-public-nav__link {
    font-size: 14px;
    font-weight: 700;
    color: var(--photographe-text-body);
}

.photographe-public-nav__link:hover {
    color: var(--photographe-brand-strong);
}

.photographe-public-nav__cta {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--photographe-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(28, 72, 95, 0.18);
}

.photographe-public-nav__cta:hover {
    background: var(--photographe-brand-strong);
}

.photographe-public-legal-main {
    padding: 56px 0 80px;
}

.photographe-public-legal-hero {
    max-width: 760px;
    margin-bottom: 32px;
}

.photographe-public-legal-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
    background: color-mix(in srgb, var(--photographe-brand-soft) 65%, white);
    border: 1px solid color-mix(in srgb, var(--photographe-brand-soft-border) 70%, white);
    color: var(--photographe-brand-strong);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.photographe-public-legal-hero h1 {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--photographe-text-title);
}

.photographe-public-legal-hero p {
    margin: 0;
    color: var(--photographe-text-muted);
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
}

.photographe-public-legal-card {
    background: color-mix(in srgb, var(--photographe-surface-card) 92%, white);
    border: 1px solid color-mix(in srgb, var(--photographe-border) 78%, white);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(22, 37, 52, 0.08);
    padding: 32px;
    display: grid;
    gap: 24px;
}

.photographe-public-legal-section {
    padding-bottom: 24px;
    border-bottom: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
}

.photographe-public-legal-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.photographe-public-legal-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.3;
    color: var(--photographe-text-title);
}

.photographe-public-legal-section h3 {
    margin: 18px 0 10px;
    font-size: 17px;
    line-height: 1.4;
    color: var(--photographe-text-title);
}

.photographe-public-legal-section p,
.photographe-public-legal-section li {
    margin: 0 0 12px;
    color: var(--photographe-text-body);
    font-size: 16px;
    line-height: 1.75;
}

.photographe-public-legal-section ul {
    margin: 0;
    padding-left: 20px;
}

.photographe-public-legal-section strong {
    color: var(--photographe-text-title);
}

.photographe-public-legal-note {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--photographe-warning-soft) 40%, white);
    border: 1px solid color-mix(in srgb, var(--photographe-warning-border) 55%, white);
}

.photographe-public-footer {
    padding: 0 0 40px;
}

.photographe-public-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 32px 0 24px;
    border-top: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
}

.photographe-public-footer__brand img {
    display: block;
    height: 22px;
    width: auto;
    margin-bottom: 14px;
}

.photographe-public-footer__brand p,
.photographe-public-footer__col li {
    color: var(--photographe-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.photographe-public-footer__col h4 {
    margin: 0 0 12px;
    color: var(--photographe-text-title);
    font-size: 15px;
    font-weight: 800;
}

.photographe-public-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.photographe-public-footer__col a:hover,
.photographe-public-footer__col a[aria-current="page"] {
    color: var(--photographe-brand-strong);
}

.photographe-public-footer__bottom {
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--photographe-text-muted);
    font-size: 14px;
}

.cmp-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1350;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cmp-banner__content {
    width: min(1100px, 100%);
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    color: #f8fafc;
    pointer-events: auto;
    backdrop-filter: blur(16px);
}

.cmp-banner__content p {
    margin: 0;
    max-width: 700px;
    color: rgba(248, 250, 252, 0.96);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.cmp-banner__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.cmp-btn {
    appearance: none;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.cmp-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cmp-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
}

.cmp-btn--primary {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #0f172a;
}

.cmp-btn--primary:hover {
    background: #ffffff;
    color: #020617;
}

.cmp-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.cmp-modal[hidden] {
    display: none;
}

.cmp-modal.is-visible {
    opacity: 1;
}

.cmp-modal.is-closing {
    opacity: 0;
}

.cmp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.cmp-modal__panel {
    position: relative;
    width: min(620px, calc(100vw - 32px));
    margin: 12vh auto 0;
    background: #fff;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--photographe-border) 78%, white);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    transform: translateY(22px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.cmp-modal.is-visible .cmp-modal__panel {
    transform: translateY(0);
    opacity: 1;
}

.cmp-modal__header,
.cmp-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.cmp-modal__header {
    border-bottom: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
    background: linear-gradient(180deg, color-mix(in srgb, var(--photographe-brand-soft) 20%, white) 0%, #ffffff 100%);
}

.cmp-modal__header h2 {
    margin: 0;
    color: var(--photographe-text-title);
    font-size: 20px;
    font-weight: 800;
}

.cmp-modal__close {
    appearance: none;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid color-mix(in srgb, var(--photographe-border) 78%, white);
    border-radius: 999px;
    background: #fff;
    color: var(--photographe-text-body);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cmp-modal__intro,
.cmp-modal__body {
    padding-left: 20px;
    padding-right: 20px;
}

.cmp-modal__intro {
    padding-top: 18px;
}

.cmp-modal__intro p {
    margin: 0;
    color: var(--photographe-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.cmp-modal__body {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 20px;
}

.cmp-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
    border-radius: 18px;
    background: color-mix(in srgb, var(--photographe-surface-card) 88%, white);
}

.cmp-toggle strong {
    display: block;
    margin-bottom: 4px;
    color: var(--photographe-text-title);
    font-size: 15px;
}

.cmp-toggle small {
    display: block;
    color: var(--photographe-text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.cmp-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--photographe-brand-strong);
}

.cmp-modal__footer {
    border-top: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
    justify-content: flex-end;
}

.cmp-modal-open {
    overflow: hidden;
}

@media (max-width: 840px) {
    .photographe-public-nav__actions {
        gap: 12px;
    }

    .photographe-public-legal-hero h1 {
        font-size: 34px;
    }

    .photographe-public-legal-card {
        padding: 24px;
        border-radius: 24px;
    }

    .photographe-public-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .photographe-public-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cmp-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cmp-banner__content {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .cmp-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cmp-modal__panel {
        width: calc(100vw - 24px);
        margin-top: 10vh;
    }

    .cmp-modal__footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .photographe-public-container {
        padding: 0 18px;
    }

    .photographe-public-nav__inner {
        min-height: 68px;
    }

    .photographe-public-nav__cta {
        min-height: 40px;
        padding: 0 14px;
    }

    .photographe-public-legal-main {
        padding: 36px 0 64px;
    }

    .photographe-public-legal-hero h1 {
        font-size: 30px;
    }

    .photographe-public-legal-hero p,
    .photographe-public-legal-section p,
    .photographe-public-legal-section li {
        font-size: 15px;
    }
}
