/**
 * Privacy.css — Стили для страниц политики конфиденциальности
 * Pravo-365.ru
 * Версия: 2.0 | Дата: 14.02.2026
 * 
 * Подключается после style.css для страниц:
 * - privacy.html
 * - cookie-policy.html
 */

/* ==========================================================================
   КОНТЕЙНЕР ДЛЯ СТРАНИЦ ПОЛИТИКИ
   ========================================================================== */
.privacy-wrapper {
    min-height: calc(100dvh - 200px);
    padding: 40px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #e6f0ff 100%);
}

.privacy-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    line-height: 1.8;
    color: #333;
}

/* ==========================================================================
   ЗАГОЛОВКИ РАЗДЕЛОВ
   ========================================================================== */
.privacy-content h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.privacy-content h2 {
    color: #667eea;
    border-left: 4px solid #667eea;
    padding: 10px 0 10px 15px;
    margin: 35px 0 20px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: left;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content h3 {
    color: #34495e;
    margin: 25px 0 12px;
    font-size: 1.2rem;
    font-weight: 500;
}

.privacy-content h3 i {
    margin-right: 8px;
    color: #667eea;
}

/* ==========================================================================
   ТЕКСТ И СПИСКИ
   ========================================================================== */
.privacy-content p {
    margin: 12px 0;
    text-align: justify;
}

.privacy-content ul {
    margin: 12px 0 12px 28px;
    padding-left: 5px;
}

.privacy-content li {
    margin: 6px 0;
    padding-left: 5px;
    line-height: 1.7;
}

.privacy-content li i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.privacy-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.privacy-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px dashed #667eea;
    transition: all 0.2s ease;
}

.privacy-content a:hover {
    color: #764ba2;
    border-bottom-style: solid;
    text-decoration: none;
}

/* ==========================================================================
   НУМЕРАЦИЯ РАЗДЕЛОВ
   ========================================================================== */
.section-number {
    color: #667eea;
    font-weight: 700;
    margin-right: 5px;
}

/* ==========================================================================
   МЕТА-ИНФОРМАЦИЯ ДОКУМЕНТА
   ========================================================================== */
.policy-meta {
    background: #e8f4fd;
    padding: 14px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.95rem;
    border-left: 4px solid #667eea;
    color: #2c3e50;
}

.policy-meta strong {
    color: #2c3e50;
}

/* ==========================================================================
   БЛОК С РЕКВИЗИТАМИ ОПЕРАТОРА
   ========================================================================== */
.operator-info {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.operator-info p {
    margin: 8px 0;
}

.operator-info strong {
    color: #2c3e50;
}

.operator-info h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.operator-info h3 i {
    margin-right: 8px;
}

/* ==========================================================================
   ВЫДЕЛЕНИЕ ВАЖНЫХ ЗНАЧЕНИЙ
   ========================================================================== */
.highlight {
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ==========================================================================
   БЛОК КОНТАКТОВ ДЛЯ ЗАПРОСОВ
   ========================================================================== */
.contact-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
    padding: 20px 25px;
    border-radius: 10px;
    margin: 25px 0;
    border: 1px solid #b3d7f5;
    border-left: 4px solid #667eea;
}

.contact-box p {
    margin: 10px 0;
}

.contact-box strong {
    color: #2c3e50;
}

.contact-box em {
    color: #555;
    font-size: 0.95rem;
}

.contact-box i {
    margin-right: 8px;
    color: #667eea;
    width: 20px;
    text-align: center;
}

.contact-box a {
    color: #667eea;
    font-weight: 500;
}

/* ==========================================================================
   БЛОК ИНФОРМАЦИИ О COOKIE
   ========================================================================== */
.cookie-banner-info {
    background: #fff8e1;
    padding: 18px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ffd54f;
    border-left: 4px solid #ffc107;
}

.cookie-banner-info ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ==========================================================================
   ТАБЛИЦА COOKIE (для cookie-policy.html)
   ========================================================================== */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cookie-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.cookie-table tbody tr:hover {
    background: #f8f9fa;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table code {
    background: #f1f3f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #c7254e;
}

/* ==========================================================================
   КНОПКА НАЗАД
   ========================================================================== */
.back-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: #fff;
}

.back-button i {
    font-size: 1rem;
}

/* ==========================================================================
   COOKIE-БАННЕР
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    animation: slideUp 0.3s ease;
    border-top: 3px solid #667eea;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.95rem;
    color: #333;
}

.cookie-banner-text strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.cookie-banner-text i {
    margin-right: 8px;
    color: #667eea;
}

.cookie-banner-text a {
    font-weight: 500;
    text-decoration: underline;
    color: #667eea;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-btn i {
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-btn.decline {
    background: #ecf0f1;
    color: #2c3e50;
}

.cookie-btn.decline:hover {
    background: #bdc3c7;
}

/* ==========================================================================
   МЕДИА-ЗАПРОСЫ
   ========================================================================== */

/* Планшеты и меньше (768px) */
@media (max-width: 768px) {
    .privacy-wrapper {
        padding: 30px 0;
    }
    
    .privacy-content {
        padding: 25px 20px;
        margin-top: 20px;
    }
    
    .privacy-content h1 {
        font-size: 1.6rem;
    }
    
    .privacy-content h2 {
        font-size: 1.25rem;
        padding-left: 12px;
    }
    
    .privacy-content h3 {
        font-size: 1.1rem;
    }
    
    .privacy-content ul {
        margin-left: 22px;
    }
    
    .policy-meta,
    .operator-info,
    .contact-box,
    .cookie-banner-info {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    
    .back-button {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    /* Адаптивность таблицы cookie */
    .cookie-table {
        font-size: 0.85rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
    }
    
    .cookie-table thead {
        display: none;
    }
    
    .cookie-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .cookie-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cookie-table tbody td:last-child {
        border-bottom: none;
    }
    
    .cookie-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #2c3e50;
        margin-right: 10px;
    }
    
    /* Адаптивность cookie-баннера */
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* Очень узкие экраны (399px) */
@media (max-width: 399px) {
    .privacy-content {
        padding: 20px 15px;
    }
    
    .privacy-content h1 {
        font-size: 1.4rem;
    }
    
    .privacy-content h2 {
        font-size: 1.15rem;
    }
    
    .back-button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px;
    }
}

/* ==========================================================================
   ПЕЧАТЬ
   ========================================================================== */
@media print {
    .privacy-wrapper {
        background: #fff;
        padding: 0;
    }
    
    .privacy-content {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    .cookie-banner,
    .back-button {
        display: none !important;
    }
    
    .privacy-content h2 {
        page-break-after: avoid;
        border-left: none;
        padding-left: 0;
        color: #000;
    }
    
    .operator-info,
    .contact-box {
        border: 1px solid #000;
        background: #fff !important;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
}

/* ==========================================================================
   ДОСТУПНОСТЬ (a11y)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .privacy-content a {
        text-decoration: underline;
    }
    
    .back-button {
        border: 2px solid #000;
    }
    
    .cookie-btn {
        border: 2px solid currentColor;
    }
}