:root {
    --legal-bg: #f5f8ff;
    --legal-surface: #ffffff;
    --legal-border: #e2e8f0;
    --legal-text: #132238;
    --legal-muted: #52627a;
    --legal-primary: #2563eb;
    --legal-primary-dark: #1d4ed8;
    --legal-accent: #eff6ff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.legal-page {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    color: var(--legal-text);
}

.legal-container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 16px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--legal-text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.legal-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--legal-primary), var(--legal-primary-dark));
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.legal-brand__text {
    font-size: 1.05rem;
}

.legal-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.legal-nav a,
.legal-footer__links a {
    color: var(--legal-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.legal-nav a:hover,
.legal-footer__links a:hover {
    color: var(--legal-primary);
}

.legal-main {
    padding: 48px 0 64px;
}

.legal-card {
    background: var(--legal-surface);
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 3rem);
}

.legal-kicker {
    margin: 0 0 12px;
    color: var(--legal-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-card h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.legal-intro {
    margin: 0 0 32px;
    color: var(--legal-muted);
    font-size: 1.04rem;
    line-height: 1.8;
    max-width: 72ch;
}

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

.legal-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-section h2 {
    margin: 0 0 14px;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.legal-section p,
.legal-section li {
    color: var(--legal-text);
    font-size: 1rem;
    line-height: 1.8;
}

.legal-section p {
    margin: 0 0 14px;
}

.legal-section ul {
    padding-left: 1.2rem;
    margin: 0 0 10px;
}

.legal-section li + li {
    margin-top: 8px;
}

.legal-footer {
    padding: 0 0 36px;
}

.legal-footer__inner {
    border-top: 1px solid var(--legal-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-footer p {
    margin: 0;
    color: var(--legal-muted);
    font-size: 0.92rem;
}

.legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

@media (max-width: 768px) {
    .legal-header__inner {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }

    .legal-nav {
        justify-content: center;
    }

    .legal-main {
        padding-top: 30px;
    }

    .legal-card {
        border-radius: 18px;
    }
}
