/* ========================================
   Единые стили для юридических документов NEODROP
   ======================================== */

:root {
    --primary-color: #0066ff;
    --primary-light: #e6f0ff;
    --primary-dark: #0052cc;
    --bg-color: #f8faff;
    --text-color: #1a1a2e;
    --text-light: #5e6e82;
    --gray-light: #f0f4f9;
    --gray-medium: #d9e2ec;
    --gray-dark: #9fb3c8;
    --error-color: #ff2200;
    --success-color: #00c853;
    --radius-large: 24px;
    --radius-medium: 16px;
    --radius-small: 8px;
    --shadow-sm: 0 4px 12px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 102, 255, 0.15);
    --futuristic-font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--futuristic-font);
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--primary-light) 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Общий контейнер для всех страниц документов */
.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.legal-card {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-md);
    padding: 50px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.legal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.legal-header h1 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.legal-header .subtitle,
.legal-header .update-date {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
}

.legal-content {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--gray-light);
    border-radius: var(--radius-medium);
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.legal-section:hover {
    background: white;
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.section-title {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '•';
    color: var(--primary-color);
    font-size: 28px;
}

.subsection-title {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-light);
}

.legal-text {
    margin-bottom: 16px;
    text-align: justify;
}

.legal-list {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.legal-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.legal-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Информационный блок (например, оператор) */
.info-block {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--radius-medium);
    margin: 25px 0;
    border: 1px solid var(--primary-color);
}

.info-block strong {
    color: var(--primary-dark);
}

/* Предупреждение */
.warning-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: var(--radius-medium);
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
}

/* Важное выделение */
.important {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: var(--radius-small);
}

.user-highlight {
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Блок с кнопками действий (для согласия) */
.consent-actions {
    background: var(--gray-light);
    padding: 30px;
    border-radius: var(--radius-medium);
    text-align: center;
    margin-top: 40px;
}

.consent-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.consent-button {
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-medium);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    min-width: 200px;
}

.consent-button.accept {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.consent-button.accept:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.consent-button.decline {
    background: var(--gray-medium);
    color: var(--text-color);
}

.consent-button.decline:hover {
    background: var(--gray-dark);
    transform: translateY(-2px);
}

/* Карточки для поддержки */
.support-options {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.support-card {
    flex: 1;
    min-width: 200px;
    background: white;
    border-radius: var(--radius-medium);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.support-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.support-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.support-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.contact-info {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--radius-medium);
    margin-top: 30px;
}

/* FAQ аккордеон */
.faq-question {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-question::before {
    content: '▶';
    font-size: 12px;
    transition: transform 0.2s;
}

.faq-question.active::before {
    transform: rotate(90deg);
}

.faq-answer {
    margin-left: 20px;
    padding-left: 16px;
    border-left: 2px solid var(--primary-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
}

/* Дата последнего обновления */
.last-updated {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: 40px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-medium);
    font-size: 15px;
}

/* Ссылки внутри документов */
.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.legal-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .legal-container {
        padding: 90px 15px 30px;
    }

    .legal-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .legal-header h1 {
        font-size: 28px;
    }

    .legal-header .subtitle,
    .legal-header .update-date {
        font-size: 15px;
    }

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

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

    .subsection-title {
        font-size: 17px;
    }

    .legal-text {
        font-size: 15px;
    }

    .consent-buttons {
        flex-direction: column;
        align-items: center;
    }

    .consent-button {
        min-width: 250px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .legal-container {
        padding: 80px 12px 20px;
    }

    .legal-card {
        padding: 25px 18px;
        border-radius: 18px;
    }

    .legal-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-header h1 {
        font-size: 24px;
    }

    .legal-header .subtitle,
    .legal-header .update-date {
        font-size: 14px;
    }

    .legal-section {
        padding: 18px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .subsection-title {
        font-size: 16px;
        margin: 20px 0 12px;
    }

    .legal-text {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .legal-list li {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 24px;
    }

    .consent-button {
        padding: 12px 20px;
        min-width: 200px;
        font-size: 14px;
    }

    .last-updated {
        margin-top: 30px;
        padding: 15px;
        font-size: 14px;
    }

    .support-card {
        min-width: 100%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .legal-container {
        padding: 70px 10px 15px;
    }

    .legal-card {
        padding: 20px 15px;
    }

    .legal-header h1 {
        font-size: 22px;
    }

    .legal-section {
        padding: 15px;
    }

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

    .subsection-title {
        font-size: 15px;
    }

    .legal-text {
        font-size: 13px;
    }

    .legal-list li {
        font-size: 13px;
    }
}

/* Улучшение читаемости */
.legal-text {
    text-align: justify;
    hyphens: auto;
}