/* ==========================================================================
   Базовый reset и типографика
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    background: #F3F8FC;
    color: #4A5568;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Пастельные пятна — как на лендинге, чтобы визуально не выбиваться */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.95;
    z-index: -1;
    pointer-events: none;
}

body::before {
    background: #c2e0ff;
    top: -150px;
    left: -200px;
}

body::after {
    background: #fae9eb;
    top: 100px;
    right: -150px;
}

/* ==========================================================================
   Шапка (упрощённая, без blur — legal-страница не требует JS-красоты)
   ========================================================================== */
.legal-header {
    padding: 20px 0;
}

.legal-header__inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.legal-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    color: #618BA8;
    letter-spacing: -0.5px;
}

.legal-header__logo img {
    width: 40px;
    height: auto;
}

.legal-header__nav {
    display: flex;
    gap: 24px;
}

.legal-header__nav a {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.legal-header__nav a:hover {
    color: #7FB5DC;
}

/* ==========================================================================
   Контент
   ========================================================================== */
.legal-container {
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 60px;
    box-sizing: border-box;
}

.legal-container h1 {
    font-size: 24px;
    text-align: center;
    margin: 0 0 10px;
    color: #1e293b;
}

.legal-container .subtitle {
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    color: #4a5568;
}

.legal-container .meta-info {
    margin-bottom: 30px;
    font-size: 14px;
}

.legal-container h4 {
    font-size: 16px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #1e293b;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 5px;
}

.legal-container p,
.legal-container li {
    font-size: 15px;
}

.legal-container ul {
    padding-left: 20px;
    margin-top: 5px;
}

.legal-container li {
    margin-bottom: 5px;
}

.legal-container .highlight-box {
    background-color: #f9f9f9;
    border-left: 4px solid #7FB5DC;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.legal-container .footer-details {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #7FB5DC;
}

/* ==========================================================================
   Подвал (в стиле лендинга)
   ========================================================================== */
.legal-footer {
    background-color: #FFF;
    padding: 25px 0;
    border-top: 1px solid #E2E8F0;
    color: #718096;
    font-size: 13.5px;
    margin-top: 60px;
}

.legal-footer__inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.legal-footer__links a {
    color: #718096;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.legal-footer__links a:hover {
    color: #7FB5DC;
}

@media (max-width: 768px) {
    .legal-header__nav {
        display: none;
    }

    .legal-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .legal-footer__links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .legal-container {
        padding: 20px 16px 40px;
    }

    .legal-container h1 {
        font-size: 20px;
    }
}
