/* Legal Page Specific Styles */

/* Hero Section */
.legal-hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-features .feature-item i {
    font-size: 1.2rem;
}

/* Legal Categories Section */
.legal-categories {
    background-color: #ffffff;
}

.legal-category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.legal-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.legal-category-card.active {
    border-color: var(--primary-color);
    background: rgba(218, 161, 76, 0.05);
}

.legal-category-icon {
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(218, 161, 76, 0.1);
    transition: all 0.3s ease;
}

.legal-category-card:hover .legal-category-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

.legal-category-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-category-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.legal-category-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Legal Content Section */
.legal-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h3 {
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.legal-document {
    border: 1px solid rgba(0,0,0,0.05);
    line-height: 1.8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-document:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.legal-document h4 {
    color: var(--text-dark);
    border-bottom: 1px solid rgba(218, 161, 76, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legal-document p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Additional Legal Information Section */
.additional-legal {
    background-color: #ffffff;
}

.legal-resource-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.legal-resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.legal-resource-icon {
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(218, 161, 76, 0.1);
    transition: all 0.3s ease;
}

.legal-resource-card:hover .legal-resource-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

.legal-resource-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-resource-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b98b4e 100%);
    color: white;
}

.cta-section .main-heading {
    color: white !important;
}

.cta-section .paragraph {
    color: rgba(255,255,255,0.9) !important;
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .legal-hero-section {
        padding: 60px 0;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .cta-section .text-lg-end {
        text-align: center !important;
        margin-top: 2rem;
    }
    
    .legal-document {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .main-heading {
        font-size: 2rem !important;
    }
    
    .legal-category-card {
        margin-bottom: 1rem;
    }
    
    .legal-resource-card {
        margin-bottom: 1rem;
    }
    
    .legal-section h3 {
        font-size: 1.4rem;
    }
    
    .legal-document h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .legal-hero-section {
        padding: 40px 0;
    }
    
    .hero-features .feature-item {
        justify-content: center;
    }
    
    .legal-category-card .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .legal-category-icon {
        padding: 0.8rem;
    }
    
    .legal-category-icon i {
        font-size: 2rem;
    }
    
    .legal-document {
        padding: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b98b4e;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Legal Category Card Hover Effects */
.legal-category-card:hover h5 {
    color: var(--primary-color);
}

.legal-category-card .badge {
    transition: all 0.3s ease;
}

.legal-category-card:hover .badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Legal Document Animations */
.legal-document {
    transition: all 0.3s ease;
}

.legal-document:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.legal-document:hover h4 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Legal Resource Card Animations */
.legal-resource-card:hover h5 {
    color: var(--primary-color);
}

.legal-resource-card .legal-resource-icon {
    transition: all 0.3s ease;
}

.legal-resource-card:hover .legal-resource-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

/* Button Hover Effects */
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 161, 76, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Legal Category Icon Animations */
.legal-category-icon {
    transition: all 0.3s ease;
}

.legal-category-card:hover .legal-category-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

/* Staggered Animation for Cards */
.legal-category-card:nth-child(1) { transition-delay: 0.1s; }
.legal-category-card:nth-child(2) { transition-delay: 0.2s; }
.legal-category-card:nth-child(3) { transition-delay: 0.3s; }
.legal-category-card:nth-child(4) { transition-delay: 0.4s; }

.legal-resource-card:nth-child(1) { transition-delay: 0.1s; }
.legal-resource-card:nth-child(2) { transition-delay: 0.2s; }
.legal-resource-card:nth-child(3) { transition-delay: 0.3s; }

/* Legal Section Animations */
.legal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.legal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Section Staggered Animation */
.legal-section:nth-child(1) { transition-delay: 0.1s; }
.legal-section:nth-child(2) { transition-delay: 0.2s; }
.legal-section:nth-child(3) { transition-delay: 0.3s; }
.legal-section:nth-child(4) { transition-delay: 0.4s; }

/* Image Hover Effects */
.legal-hero-section img {
    transition: all 0.3s ease;
}

.legal-hero-section img:hover {
    transform: scale(1.02);
}

/* Content Fade In Animation */
.legal-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.legal-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional Legal Section Animation */
.additional-legal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.additional-legal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Category Card Content Animation */
.legal-category-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.legal-category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Resource Card Content Animation */
.legal-resource-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.legal-resource-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Document Header Animation */
.legal-document h4 {
    transition: all 0.3s ease;
}

.legal-document:hover h4 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Legal Section Header Animation */
.legal-section h3 {
    transition: all 0.3s ease;
}

.legal-section:hover h3 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Category Card Active State */
.legal-category-card.active .legal-category-icon {
    background: rgba(218, 161, 76, 0.3);
    transform: scale(1.1);
}

.legal-category-card.active h5 {
    color: var(--primary-color);
}

/* Legal Document Content Animation */
.legal-document p {
    transition: all 0.3s ease;
}

.legal-document:hover p {
    color: var(--text-dark);
}

/* Legal Resource Card Icon Animation */
.legal-resource-icon {
    transition: all 0.3s ease;
}

.legal-resource-card:hover .legal-resource-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

/* Legal Resource Card Content Animation */
.legal-resource-card h5 {
    transition: all 0.3s ease;
}

.legal-resource-card:hover h5 {
    color: var(--primary-color);
}

/* Document Scroll Animation */
.legal-document {
    max-height: 80vh;
    overflow-y: auto;
}

/* Print Styles */
@media print {
    .legal-document {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .legal-resource-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .cta-section,
    .additional-legal {
        display: none;
    }
}

/* Accessibility Improvements */
.legal-section h3:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.legal-document {
    scroll-behavior: smooth;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .legal-section h3 {
        border-bottom: 2px solid var(--text-dark);
    }
    
    .legal-document h4 {
        border-bottom: 2px solid var(--text-dark);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .legal-section,
    .legal-resource-card,
    .legal-document {
        transition: none;
    }
    
    .legal-resource-card:hover {
        transform: none;
    }
    
    .legal-section:hover h3 {
        transform: none;
    }
} 