/* Terms of Service Page Styles */

/* Hero Section */
.terms-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 80px;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.terms-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
}

.terms-hero-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.terms-hero-section .breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.terms-hero-section .breadcrumb-item.active {
    color: var(--bs-gray-600);
}

.terms-hero-section h1 {
    color: var(--bs-dark);
    margin-bottom: 20px;
}

.terms-hero-section .lead {
    color: var(--bs-gray-700);
    max-width: 700px;
    margin: 0 auto 30px;
}

.last-updated-badge {
    display: inline-block;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

/* Terms Content Section */
.terms-content-section {
    background: var(--bs-white);
}

/* Alert Styling */
.alert-warning {
    border-left: 4px solid var(--bs-warning);
    border-radius: 8px;
}

.alert-warning .fa-exclamation-triangle {
    color: var(--bs-warning);
}

/* Accordion Styling */
.terms-accordion .card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-accordion .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.terms-accordion .card-header {
    padding: 0;
    border: none;
}

.terms-accordion .card-header button {
    padding: 20px 25px;
    color: var(--bs-dark);
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--bs-white);
    border: none;
    transition: all 0.3s ease;
}

.terms-accordion .card-header button:hover {
    background: var(--bs-light);
}

.terms-accordion .card-header button:not(.collapsed) {
    color: var(--bs-primary);
    background: var(--bs-light);
}

.terms-accordion .card-header button:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
}

.terms-accordion .card-header button .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.terms-accordion .card-body {
    padding: 25px;
    background: var(--bs-light);
    color: var(--bs-gray-700);
    line-height: 1.7;
}

.terms-accordion .card-body p {
    margin-bottom: 15px;
}

.terms-accordion .card-body ul.list-unstyled li {
    margin-bottom: 10px;
    position: relative;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border: none;
}

.contact-card h4 {
    font-weight: 600;
}

.contact-card .fa-lg {
    width: 24px;
}

.contact-card a:hover {
    opacity: 0.9;
}

/* Print Button */
.btn-outline-primary {
    border-width: 2px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--bs-primary-rgb), 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-hero-section {
        padding: 100px 0 60px;
        margin-top: 70px;
    }
    
    .terms-hero-section h1 {
        font-size: 2rem;
    }
    
    .terms-accordion .card-header button {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .terms-accordion .card-body {
        padding: 20px;
    }
    
    .contact-card {
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    .terms-hero-section {
        padding: 80px 0 40px;
    }
    
    .terms-hero-section h1 {
        font-size: 1.75rem;
    }
    
    .terms-accordion .card-header button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .terms-accordion .card-body {
        padding: 15px;
    }
    
    .last-updated-badge {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}

/* Print Styles */
@media print {
    .terms-hero-section {
        background: white !important;
        padding: 20px 0 !important;
        margin-top: 0 !important;
    }
    
    .terms-hero-section::before {
        display: none;
    }
    
    .terms-accordion .card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .terms-accordion .card-header button {
        color: black !important;
    }
    
    .terms-accordion .collapse {
        display: block !important;
    }
    
    .btn-outline-primary,
    .alert,
    .breadcrumb {
        display: none !important;
    }
    
    .contact-card {
        background: white !important;
        color: black !important;
        border: 2px solid var(--bs-primary) !important;
    }
    
    .contact-card a {
        color: var(--bs-primary) !important;
    }
}