/* Стили для страницы политики конфиденциальности */
.privacy-policy {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.policy-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.policy-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

.legal-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffd351;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.legal-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.legal-notice h3 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 1.3rem;
}

.legal-notice p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
}

/* Оглавление */
.toc {
    background: var(--gradient-card);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.toc h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    gap: 20px;
}

.toc li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.toc a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.toc a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

/* Секции политики */
.policy-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.policy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
    color: var(--text-color);
}

.section-content p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.section-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.section-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.section-content strong {
    color: var(--text-color);
}

/* Специальные блоки */
.warning-box {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.warning-box h4 {
    margin: 0 0 10px 0;
    color: #721c24;
}

.warning-box p {
    margin: 0;
    color: #721c24;
}

.contact-info {
    background: var(--gradient-card);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
}

.contact-info p {
    margin: 0;
    color: var(--text-secondary);
}

/* Анимации */
.policy-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.2s; }
.policy-section:nth-child(3) { animation-delay: 0.3s; }
.policy-section:nth-child(4) { animation-delay: 0.4s; }
.policy-section:nth-child(5) { animation-delay: 0.5s; }
.policy-section:nth-child(6) { animation-delay: 0.6s; }
.policy-section:nth-child(7) { animation-delay: 0.7s; }
.policy-section:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .privacy-policy {
        padding: 30px 15px;
    }
    
    .policy-header h1 {
        font-size: 2rem;
    }
    
    .toc ul {
        columns: 1;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .section-content h3 {
        font-size: 1.2rem;
    }
    
    .legal-notice {
        padding: 20px;
    }
    
    .toc {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .policy-header {
        margin-bottom: 30px;
    }
    
    .policy-header h1 {
        font-size: 1.7rem;
    }
    
    .policy-section {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }
}