.legal {
    min-height: 100vh;
    padding: 148px 0 110px;
    background: var(--background);
}

.legal-content {
    width: min(calc(100% - 48px), 790px);
    margin: 0 auto;
}

.legal-label {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 720;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal h1 {
    margin-bottom: 18px;
    font-size: clamp(2.7rem, 5.5vw, 4.7rem);
}

.legal-updated {
    margin-bottom: 54px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.legal h2,
.legal h3 {
    margin: 2.2em 0 0.7em;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

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

.legal h3 {
    font-size: 1.12rem;
}

.legal p,
.legal li {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.75;
}

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

.legal a {
    color: var(--accent);
}

.legal strong {
    color: var(--text);
}

.error-page {
    display: grid;
    min-height: 100vh;
    padding: 140px 0 80px;
    place-items: center;
}

.error-content {
    max-width: 760px;
    text-align: center;
}

.error-content .section-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    gap: 9px;
}

.error-content .section-marker span {
    display: grid;
    width: 32px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.52rem;
    place-items: center;
}

.error-content h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 7vw, 5.5rem);
}

.error-content p {
    max-width: 620px;
    margin: 0 auto 34px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 640px) {
    .legal {
        padding-top: 120px;
    }

    .legal-content {
        width: min(calc(100% - 32px), 790px);
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .button {
        width: 100%;
    }
}
