/* Общие стили для всех юридических страниц Domain */

.legal-section {
    padding: 6rem 0 4rem;
    background: rgba(245, 245, 245, 0.05);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    color: #212121;
}

.legal-content h1 {
    color: #3D5AFE;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.legal-intro {
    background: rgba(61, 90, 254, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #3D5AFE;
}

.legal-intro p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.legal-section-content {
    margin-bottom: 2.5rem;
}

.legal-section-content h2 {
    color: #3D5AFE;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(61, 90, 254, 0.2);
    padding-bottom: 0.5rem;
}

.legal-section-content h3 {
    color: #FF6F61;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
}

.legal-section-content h4 {
    color: #26C6DA;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.legal-section-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section-content a {
    color: #3D5AFE;
    text-decoration: none;
}

.legal-section-content a:hover {
    color: #FF6F61;
    text-decoration: underline;
}

.legal-section-content strong {
    color: #212121;
    font-weight: 600;
}

/* Боксы с специальной информацией */
.info-box, .company-info, .scope-info {
    background: rgba(38, 198, 218, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #26C6DA;
}

.info-box h4, .company-info h3, .scope-info h3 {
    color: #26C6DA;
    margin-bottom: 1rem;
}

.warning-box, .warning-section {
    background: rgba(255, 111, 97, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #FF6F61;
}

.warning-box strong, .warning-section strong {
    color: #FF6F61;
}

.update-info, .limitation-box {
    background: rgba(255, 193, 7, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #FFC107;
}

.limitation-box h4 {
    color: #F57C00;
    margin-bottom: 0.5rem;
}

.fiscal-disclaimer, .modification-info {
    background: rgba(156, 39, 176, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #9C27B0;
}

.fiscal-disclaimer strong, .modification-info h3 {
    color: #9C27B0;
}

.client-responsibility {
    background: rgba(76, 175, 80, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #4CAF50;
}

.client-responsibility strong {
    color: #4CAF50;
}

.excluded-damages {
    background: rgba(244, 67, 54, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 2px solid #F44336;
}

.security-disclaimer {
    background: rgba(255, 152, 0, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #FF9800;
}

.third-party-warning {
    background: rgba(33, 150, 243, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 3px solid #2196F3;
}

.third-party-warning strong {
    color: #2196F3;
}

.copyright-info {
    background: rgba(33, 33, 33, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 2px solid rgba(61, 90, 254, 0.2);
}

.copyright-info h4 {
    color: #3D5AFE;
    margin-bottom: 0.5rem;
}

/* Таблицы */
.cookie-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(61, 90, 254, 0.1);
}

.cookie-table th {
    background: #3D5AFE;
    color: white;
    font-weight: bold;
}

.cookie-table td {
    color: #212121;
}

/* Грид-элементы */
.purposes-grid, .recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-item, .recommendation-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(61, 90, 254, 0.1);
    transition: all 0.3s ease;
}

.purpose-item:hover, .recommendation-item:hover {
    border-color: #3D5AFE;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(61, 90, 254, 0.1);
}

.purpose-item h4, .recommendation-item h4 {
    color: #3D5AFE;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.purpose-item p, .recommendation-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

.duration-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.duration-item {
    background: rgba(38, 198, 218, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.duration-item h4 {
    color: #26C6DA;
    margin-bottom: 0.5rem;
}

/* Контактная информация */
.contact-info, .contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-info ul {
    background: rgba(245, 245, 245, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.contact-method, .contact-option {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(38, 198, 218, 0.2);
    transition: all 0.3s ease;
}

.contact-method:hover, .contact-option:hover {
    border-color: #26C6DA;
    transform: translateY(-3px);
}

.contact-method h4, .contact-option h4 {
    color: #26C6DA;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-method p, .contact-option p {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #212121;
}

.contact-method span, .contact-option span {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Специальные элементы */
.browser-links {
    background: rgba(255, 111, 97, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.browser-links h4 {
    color: #FF6F61;
    margin-bottom: 1rem;
}

.browser-links a {
    color: #3D5AFE;
    text-decoration: none;
}

.browser-links a:hover {
    color: #FF6F61;
    text-decoration: underline;
}

.cookie-settings {
    background: linear-gradient(135deg, rgba(61, 90, 254, 0.1), rgba(38, 198, 218, 0.1));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
}

.cookie-settings h3 {
    color: #3D5AFE;
    margin-bottom: 1rem;
}

.cookie-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-controls .btn {
    background: linear-gradient(45deg, #FF6F61, #26C6DA);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cookie-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
}

.acceptance-section, .acceptance-notice {
    background: linear-gradient(135deg, rgba(61, 90, 254, 0.1), rgba(38, 198, 218, 0.1));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
    border: 2px solid rgba(61, 90, 254, 0.3);
}

.acceptance-section h3, .acceptance-notice h3 {
    color: #3D5AFE;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.acceptance-section strong, .acceptance-notice strong {
    color: #212121;
    font-size: 1.1rem;
}

.acceptance-date {
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* Навигация */
.back-navigation {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(61, 90, 254, 0.2);
    margin-top: 3rem;
}

.back-navigation .btn {
    background: linear-gradient(45deg, #FF6F61, #26C6DA);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    display: inline-block;
}

.back-navigation .btn-secondary {
    background: transparent;
    border: 2px solid #FF6F61;
    color: #FF6F61;
}

.back-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
}

.back-navigation .btn-secondary:hover {
    background: #FF6F61;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .purposes-grid, .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .duration-info {
        grid-template-columns: 1fr;
    }
    
    .contact-info, .contact-details {
        grid-template-columns: 1fr;
    }
    
    .cookie-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-controls .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .back-navigation .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
}