/* Стили для правовых страниц */

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.legal-header {
    text-align: center;
    padding: 40px 20px;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.legal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.legal-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.legal-card {
    background: linear-gradient(135deg, #fefffe, #d3d0ff);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.legal-card h2 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.legal-link-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.legal-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.legal-footer {
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

/* Стили для документов */
.legal-document {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    border-radius: 25px;
}

.legal-document .legal-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.legal-date {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
}

.legal-content section {
    margin-bottom: 35px;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.legal-content h3 {
    color: #555;
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content ul li::marker {
    color: #667eea;
}

/* Стили для формы согласия */
.consent-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    margin-top: 30px;
}

.consent-checkbox {
    margin-bottom: 20px;
}

.consent-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.5;
}

.consent-checkbox input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    transform: scale(1.2);
    accent-color: #667eea;
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

#consent-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#consent-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#consent-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .legal-container {
        padding: 15px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-header p {
        font-size: 1rem;
    }
    
    .legal-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .legal-card {
        padding: 20px;
    }
    
    .legal-content {
        padding: 20px;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
    }
    
    .consent-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 30px 15px;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-card {
        padding: 15px;
    }
    
    .legal-content {
        padding: 15px;
    }
    
    .consent-form {
        padding: 15px;
    }
}
