/* Import base styles from index.css */
@import url('index.css');

/* Terms Page Specific Styles */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #F39C12 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 80px 0;
    background: #f8fafc;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: 100px;
}

.toc-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.toc-container h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.toc-list {
    list-style: none;
    margin-bottom: 2rem;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
    color: #FF6B35;
}

.print-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Terms Content */
.terms-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.terms-section p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.terms-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-section li {
    color: #475569;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terms-section strong {
    color: #1e293b;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #FF6B35;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Footer Contact Info - Override */
.footer .contact-info {
    background: transparent;
    padding: 0;
    border: none;
    margin: 0;
}

.footer .contact-info .contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0;
}

.footer .contact-info .contact-item i {
    color: #FF6B35;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer .contact-info .contact-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terms-footer {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.terms-footer p {
    margin-bottom: 0.5rem;
    color: #475569;
}

.terms-footer p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .toc-sidebar {
        position: static;
        order: 2;
    }
    
    .terms-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .terms-content {
        padding: 2rem;
    }
    
    .toc-container {
        padding: 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 60px 0;
    }
    
    .terms-content {
        padding: 1.5rem;
    }
    
    .toc-container {
        padding: 1rem;
    }
    
    .terms-section h2 {
        font-size: 1.4rem;
    }
    
    .terms-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .toc-sidebar,
    .print-btn {
        display: none !important;
    }
    
    .page-header {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .page-header h1,
    .page-header p {
        color: black !important;
    }
    
    .main-content {
        background: white !important;
        padding: 20px 0;
    }
    
    .terms-content {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .terms-section {
        break-inside: avoid;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #ccc;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        break-after: avoid;
    }
}
