/* Terms and Conditions Page Specific Styles */

/* Main Content Layout */
.terms-main {
    padding-top: 80px; /* Account for fixed navbar */
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

/* Breadcrumb Section */
.breadcrumb-section {
    background: rgba(31, 41, 55, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--muted-text);
    font-weight: bold;
}

.breadcrumb-item a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    text-shadow: 0 0 8px var(--teal-glow);
}

.breadcrumb-item.active {
    color: var(--light-text) !important;
}

/* Terms Header */
.terms-header {
    position: relative;
    padding: 2rem 0;
}

.terms-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 1px;
    box-shadow: 0 0 8px var(--teal-glow);
}

.last-updated {
    margin-top: 1rem;
}

/* Terms Document */
.terms-document {
    position: relative;
}

/* Section Styling */
.terms-section {
    position: relative;
    padding: 2rem 0;
    border-left: 2px solid transparent;
    padding-left: 2rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.terms-section {
    border-left-color: var(--primary-color);
    background: rgba(31, 41, 55, 0.1);
    border-radius: 0 8px 8px 0;
}

.terms-section.animate-fadeIn {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--dark-bg);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 1rem;
    box-shadow: 0 4px 15px var(--shadow-light);
    min-width: 2.5rem;
}

/* Section Content */
.section-content {
    line-height: 1.8;
    font-size: 1rem;
}

.section-content p {
    margin-bottom: 1rem;
}

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

/* Contact Card */
.terms-contact {
    border-top: 1px solid var(--border-color);
}

.contact-card {
    background: rgba(31, 41, 55, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--shadow-dark);
    background: rgba(31, 41, 55, 0.5);
}

/* Navigation Active States */
.navbar .nav-link.active {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-main {
        padding-top: 70px;
    }
    
    .terms-header {
        padding: 1rem 0;
        text-align: center;
    }
    
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-section {
        margin-left: 0;
        padding-left: 1rem;
        border-left-width: 3px;
    }
    
    .section-title {
        font-size: 1.25rem;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        text-align: left;
    }
    
    .section-number {
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .breadcrumb-section {
        padding: 0.5rem 0;
    }
    
    .contact-card {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .terms-section {
        padding: 1.5rem 0;
        padding-left: 0.75rem;
    }
    
    .section-content {
        font-size: 0.95rem;
    }
    
    .section-number {
        width: 2rem;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .contact-card {
        display: none !important;
    }
    
    .terms-main {
        padding-top: 0;
        background: white;
        color: black;
    }
    
    .terms-section {
        border-left: 2px solid #333;
        page-break-inside: avoid;
    }
    
    .section-title,
    .text-primary {
        color: #333 !important;
    }
    
    .text-light {
        color: #333 !important;
    }
    
    .section-number {
        background: #333 !important;
        color: white !important;
        box-shadow: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .terms-section,
    .contact-card,
    .breadcrumb-item a {
        transition: none;
    }
    
    .animate-fadeIn {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Focus States for Accessibility */
.breadcrumb-item a:focus,
.contact-card .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .terms-section {
        border-left-color: var(--primary-color);
    }
    
    .section-content {
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
        border-radius: 4px;
    }
}
