.legal-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #050509;
}

.legal-body main {
    flex: 1;
}

.legal-page {
    width: min(960px, 92vw);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-page h1,
.legal-page h2 {
    text-align: left;
}

.legal-page ul {
    margin: 0;
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-page__actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.legal-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(114, 137, 218, 0.5);
    background: rgba(114, 137, 218, 0.16);
    color: #e8ecff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.legal-back-button:hover,
.legal-back-button:focus {
    background: rgba(114, 137, 218, 0.28);
    border-color: rgba(114, 137, 218, 0.8);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .legal-page {
        padding: 2rem 1.1rem 2.5rem;
    }
    .dark-header__actions {
        justify-content: center;
        width: 100%;
    }
}
