:root {
    --legal-primary-text: #2E196B;
    --legal-background-light: #F7F6F5;
    --legal-background-dark: #784BD2;
    --legal-line: #DDD5F3;
    --legal-muted-text: #554A7A;
    --legal-card-background: #FFFFFF;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: #6b638f;
    font-size: 13px;
    padding: 8px 0 0;
}

.site-footer a,
.policy-note a,
.cookie-banner a {
    color: var(--legal-background-dark);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: min(420px, calc(100vw - 36px));
    background: rgba(255, 255, 255, 0.96);
    color: var(--legal-primary-text);
    border: 1px solid var(--legal-line);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(38, 17, 89, 0.16);
    padding: 16px;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-copy {
    font-size: 14px;
    line-height: 1.5;
    color: var(--legal-muted-text);
}

.cookie-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.cookie-dismiss {
    width: auto;
    min-width: 120px;
    padding: 11px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--legal-background-dark);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.legal-body {
    margin: 0;
    font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #fff, var(--legal-background-light));
    color: var(--legal-primary-text);
}

.legal-shell {
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(120, 75, 210, 0.16), transparent 30%),
        radial-gradient(circle at 0% 90%, rgba(120, 75, 210, 0.1), transparent 24%);
}

.legal-card {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--legal-line);
    background: var(--legal-card-background);
    box-shadow: 0 24px 48px rgba(38, 17, 89, 0.08);
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--legal-primary-text);
    text-decoration: none;
}

.legal-brand img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
}

.legal-kicker {
    margin: 20px 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--legal-background-dark);
}

.legal-card h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 50px);
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.legal-lead {
    margin: 0 0 14px;
    color: var(--legal-muted-text);
    font-size: 17px;
    line-height: 1.55;
    max-width: 65ch;
}

.legal-meta {
    margin: 0 0 28px;
    color: #6b638f;
    font-size: 14px;
}

.legal-section {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--legal-line);
}

.legal-section h2 {
    margin: 0 0 10px;
    font-size: 23px;
    letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
    color: var(--legal-muted-text);
    font-size: 15px;
    line-height: 1.6;
}

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

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 16px;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--legal-line);
    text-align: left;
    vertical-align: top;
    padding: 14px;
    font-size: 14px;
}

.legal-table th {
    background: #f4efff;
    color: var(--legal-primary-text);
}

.legal-table td {
    color: var(--legal-muted-text);
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.legal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--legal-line);
    color: var(--legal-background-dark);
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.7);
}

.legal-link.primary {
    border-color: transparent;
    background: var(--legal-background-dark);
    color: #fff;
}

@media (max-width: 720px) {
    .legal-shell {
        padding: 16px;
    }

    .legal-card {
        padding: 22px;
        border-radius: 22px;
    }

    .cookie-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-dismiss {
        width: 100%;
    }
}
