/* ===== POLICY.CSS — Стили для правовой страницы ===== */

/* ---- Основной контент ---- */
.policy-content {
    max-width: 900px;
    margin: 30px auto 50px;
    padding: 0 10px;
    flex: 1;
}

/* ---- Заголовок страницы ---- */
.policy-header {
    margin-bottom: 40px;
    text-align: center;
}

.policy-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #dce9f2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.policy-header h1 i {
    color: #f5a623;
    font-size: 32px;
}

.policy-subtitle {
    color: #5f8095;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.policy-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f8aaa, #f5a623);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---- Секции ---- */
.policy-section {
    background: #0f171e;
    border: 1px solid #1a2a32;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    transition: 0.2s ease;
}

.policy-section:hover {
    border-color: #2f4a5a;
}

.policy-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #dce9f2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a2a32;
}

.policy-section h2 i {
    color: #4f8aaa;
    font-size: 18px;
    width: 28px;
}

.policy-text {
    color: #b0ccdd;
    font-size: 15px;
    line-height: 1.7;
}

.policy-text p {
    margin-bottom: 14px;
}

.policy-text p:last-child {
    margin-bottom: 0;
}

.policy-text strong {
    color: #dce9f2;
    font-weight: 600;
}

.policy-text a {
    color: #4f8aaa;
    transition: 0.2s ease;
    border-bottom: 1px dotted #4f8aaa;
}

.policy-text a:hover {
    color: #7ab8d4;
    border-bottom-color: #7ab8d4;
}

/* ---- Списки ---- */
.policy-text ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
}

.policy-text ul li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: #b0ccdd;
    line-height: 1.6;
}

.policy-text ul li::before {
    content: "▸";
    position: absolute;
    left: 4px;
    color: #4f8aaa;
    font-weight: 700;
}

/* ---- Подзаголовки внутри секций ---- */
.policy-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #dce9f2;
    margin: 18px 0 10px 0;
}

.policy-text h3:first-of-type {
    margin-top: 0;
}

/* ---- Контактная информация ---- */
.contact-box {
    background: #0a0f13;
    border: 1px solid #1a2a32;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b0ccdd;
    font-size: 14px;
    padding: 6px 0;
}

.contact-item i {
    color: #4f8aaa;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #b0ccdd;
    transition: 0.2s ease;
    border-bottom: none;
}

.contact-item a:hover {
    color: #4f8aaa;
}

/* ---- Кнопки внизу ---- */
.policy-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1a2a32;
}

.policy-updated {
    color: #5f8095;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-updated i {
    color: #4f8aaa;
}

.policy-print {
    display: flex;
    gap: 12px;
}

.btn-print,
.btn-back {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2f404a;
    background: transparent;
    color: #b0ccdd;
}

.btn-print:hover,
.btn-back:hover {
    background: #162026;
    border-color: #4f8aaa;
    color: #dce9f2;
}

.btn-print i,
.btn-back i {
    font-size: 14px;
}

/* ---- Адаптивность ---- */
@media (max-width: 768px) {
    .policy-content {
        margin: 20px auto 30px;
        padding: 0 6px;
    }

    .policy-section {
        padding: 20px 18px;
    }

    .policy-section h2 {
        font-size: 18px;
    }

    .policy-text {
        font-size: 14px;
    }

    .policy-header h1 {
        font-size: 26px;
    }

    .policy-header h1 i {
        font-size: 24px;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 16px 18px;
    }

    .policy-footer-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .policy-print {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .policy-section {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .policy-section h2 {
        font-size: 16px;
        gap: 8px;
    }

    .policy-section h2 i {
        font-size: 15px;
        width: 22px;
    }

    .policy-text ul li {
        padding: 4px 0 4px 22px;
        font-size: 13px;
    }

    .contact-item {
        font-size: 13px;
    }

    .btn-print,
    .btn-back {
        padding: 6px 16px;
        font-size: 13px;
    }

    .policy-header h1 {
        font-size: 22px;
        flex-wrap: wrap;
    }
}

/* ---- Для печати ---- */
@media print {
    .navbar,
    .nav-right,
    .footer,
    .btn-auth,
    .btn-pro,
    .btn-avatar,
    .policy-print {
        display: none !important;
    }

    .policy-content {
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .policy-section {
        background: #fff !important;
        border: 1px solid #ddd !important;
        color: #000 !important;
        page-break-inside: avoid;
    }

    .policy-section h2 {
        color: #000 !important;
        border-bottom-color: #ddd !important;
    }

    .policy-text {
        color: #333 !important;
    }

    .policy-text strong {
        color: #000 !important;
    }

    .policy-text ul li {
        color: #333 !important;
    }

    .policy-text ul li::before {
        color: #666 !important;
    }

    .contact-box {
        background: #f5f5f5 !important;
        border-color: #ddd !important;
    }

    .contact-item {
        color: #333 !important;
    }

    .policy-header h1 {
        color: #000 !important;
    }

    .policy-subtitle {
        color: #666 !important;
    }

    .policy-updated {
        color: #666 !important;
    }

    .policy-divider {
        background: #999 !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .app {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .policy-footer-actions {
        border-top-color: #ddd !important;
    }
}