/* Общие стили для юридических страниц */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #07040d 0%, #0c0f1b 50%, #111936 100%);
}

.legal-container {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
    padding: 48px;
    margin: 0 auto;
    box-shadow: 0 0 45px rgba(8, 12, 24, 0.65);
    max-width: 1000px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.legal-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 16px;
    text-shadow: 0 0 25px rgba(249, 115, 22, 0.35);
}

.legal-header p {
    font-size: 18px;
    color: #9ca3af;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content {
    font-size: 16px;
    line-height: 1.8;
    color: #d1d5db;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #fdba74;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 32px 0 16px;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
    margin: 16px 0 24px 24px;
}

.legal-content li {
    margin-bottom: 12px;
    position: relative;
}

.legal-content ul li::before {
    content: "•";
    color: #fdba74;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.legal-content a {
    color: #fdba74;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(253, 186, 116, 0.3);
}

.legal-content a:hover {
    color: #fb923c;
    border-bottom-color: rgba(251, 146, 60, 0.5);
}

.important-note {
    background: rgba(249, 115, 22, 0.1);
    border-left: 4px solid #fdba74;
    padding: 20px;
    margin: 24px 0;
    border-radius: 8px;
    font-style: italic;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding: 14px 28px;
    background: rgba(249, 115, 22, 0.1);
    color: #fdba74;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.back-to-home:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: translateX(-8px);
    border-color: rgba(249, 115, 22, 0.4);
}

.update-date {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 40px;
    }
    
    .legal-container {
        padding: 24px;
    }
    
    .legal-header h1 {
        font-size: 28px;
    }
    
    .legal-content h2 {
        font-size: 22px;
    }
    
    .legal-content h3 {
        font-size: 18px;
    }
    
    .back-to-home {
        width: 100%;
        justify-content: center;
    }
}

/* Стили для 404 страницы */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #07040d 0%, #0c0f1b 50%, #111936 100%);
}

.error-container {
    max-width: 600px;
    width: 100%;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 0 45px rgba(8, 12, 24, 0.65);
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #fdba74;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

.error-title {
    font-size: 36px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 16px;
}

.error-message {
    font-size: 18px;
    color: #9ca3af;
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(249, 115, 22, 0.1);
    color: #fdba74;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.btn-error:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.4);
}

.btn-error-primary {
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
}

.btn-error-primary:hover {
    background: linear-gradient(90deg, #f97316 0%, #f87171 100%);
    box-shadow: 0 0 26px rgba(251, 146, 60, 0.5);
}

/* Анимация для 404 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Медиа запросы для 404 */
@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 28px;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-error {
        width: 100%;
        justify-content: center;
    }
    
    .error-container {
        padding: 32px 20px;
    }
}

/* Убираем отступы для хедера на 404 */
.error-page + .footer {
    display: none; /* Скрываем футер на 404 */
}