:root {
    --bg: #050505;
    --text: #f4f1ea;
    --muted: rgba(244, 241, 234, 0.68);
    --line: rgba(244, 241, 234, 0.18);
    --accent: #962a72;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.legal-page {
    max-width: 880px;
    padding: 120px 34px 80px;
}

.back-link,
.legal-content a {
    position: relative;
    display: inline-block;
    width: fit-content;
    padding-bottom: 4px;
}

.back-link::after,
.legal-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-link:hover::after,
.legal-content a:hover::after {
    transform: scaleX(1);
}

.back-link {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 56px;
}

.legal-header {
    margin-bottom: 54px;
}

.legal-header h1 {
    font-size: clamp(48px, 8vw, 100px);
    line-height: 0.9;
    letter-spacing: -0.075em;
    font-weight: 500;
    margin-bottom: 18px;
}

.legal-header p {
    color: var(--muted);
    font-size: 14px;
}

.legal-content {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.legal-content h2 {
    color: var(--text);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 500;
    margin: 56px 0 18px;
}

.legal-content h3 {
    color: var(--text);
    font-size: 20px;
    font-weight: 500;
    margin: 34px 0 12px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 22px;
    margin: 0 0 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--text);
    font-weight: 500;
}

.legal-content hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 44px 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 30px 34px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer div {
    display: flex;
    gap: 22px;
}

@media (max-width: 800px) {
    .legal-page {
        padding: 100px 20px 64px;
    }

    .site-footer {
        flex-direction: column;
        padding: 26px 20px;
    }

    .site-footer div {
        flex-wrap: wrap;
    }
}