/* charisma-tokens.css и charisma-site.css подключаются в site_head.php */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    background-image: var(--ch-gradient-page);
    background-attachment: fixed;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-header {
    position: relative;
    background: linear-gradient(155deg, rgba(79, 70, 229, 0.35) 0%, rgba(10, 12, 20, 0.95) 60%, var(--ch-page) 100%);
    color: var(--secondary);
    padding: 80px 0 44px;
    border-bottom: 1px solid var(--ch-border);
}

.header-content {
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 1px solid rgba(241, 245, 249, 0.25);
    border-radius: var(--border-radius);
    background: rgba(5, 7, 14, 0.4);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.back-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(129, 140, 248, 0.55);
    transform: translateX(-4px);
}

.privacy-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.last-updated {
    color: var(--gray);
    font-size: 14px;
}

.privacy-content {
    padding: 48px 0 72px;
}

.section {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: var(--border-radius);
    background: var(--ch-card);
    border: 1px solid var(--ch-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-light);
}

.section-content {
    color: var(--gray);
}

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

.section-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.section-content li {
    margin-bottom: 8px;
    position: relative;
}

.section-content li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.highlight {
    color: var(--primary-light);
    font-weight: 600;
}

.warning-box {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid var(--warning);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    color: var(--ch-text);
}

.info-box {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    color: var(--ch-text);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--ch-input);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--ch-border);
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

th {
    background: linear-gradient(135deg, var(--primary-dark), var(--ch-purple-deep));
    color: white;
    font-weight: 600;
}

tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

.privacy-footer {
    background: var(--footer-bg);
    color: white;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--ch-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.footer-logo i {
    color: var(--primary-light);
    font-size: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #94a3b8;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .privacy-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .privacy-header {
        padding: 60px 0 30px;
    }

    .privacy-content {
        padding: 32px 0 48px;
    }

    .section {
        padding: 20px;
        margin-bottom: 16px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 40px;
    }

    .privacy-header {
        padding: 100px 0 56px;
    }

    .privacy-title {
        font-size: 44px;
    }

    .privacy-content {
        padding: 64px 0 96px;
    }

    .section {
        padding: 32px 36px;
        margin-bottom: 28px;
        transition:
            transform 0.35s ease,
            border-color 0.35s ease,
            box-shadow 0.35s ease;
    }

    .section:hover {
        transform: translateY(-3px);
        border-color: rgba(129, 140, 248, 0.35);
        box-shadow: var(--shadow-lg);
    }

    .back-btn {
        transition:
            transform 0.3s ease,
            background 0.3s ease,
            border-color 0.3s ease;
    }
}
