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

/* Terms Page Specific Styles */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.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;
}

/* Terms Content */
.terms-content {
    padding: 80px 0;
    background: #f7fafc;
}

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

.content-main {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.terms-section {
    margin-bottom: 3rem;
}

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

.terms-section h2 {
    color: #2d3748;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

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

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

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

.terms-section strong {
    color: #2d3748;
    font-weight: 600;
}

.contact-info {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

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

.contact-info strong {
    color: #2d3748;
}

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

.toc {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.toc h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.toc ul {
    list-style: none;
    padding: 0;
}

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

.toc a {
    color: #4a5568;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding-left: 0.5rem;
}

.toc a:hover {
    color: #667eea;
    background: #f7fafc;
    padding-left: 1rem;
}

.toc a.active {
    color: #667eea;
    background: #edf2f7;
    padding-left: 1rem;
    font-weight: 500;
}

/* Responsive Design for Terms Page */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-sidebar {
        position: static;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .content-main {
        padding: 2rem;
    }

    .toc {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .terms-content {
        padding: 60px 0;
    }

    .content-main {
        padding: 1.5rem;
    }

    .toc {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.4rem;
    }

    .terms-section {
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .content-sidebar {
        display: none;
    }

    .page-header {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }

    .page-header h1 {
        color: black !important;
    }

    .page-header p {
        color: black !important;
    }

    .content-main {
        box-shadow: none;
        padding: 0;
    }

    .terms-section h2 {
        page-break-after: avoid;
    }

    .terms-section {
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
.toc a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.terms-section h2:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 100px;
}

/* Highlight active section in TOC */
.toc a[href*="#section1"].active { background: #edf2f7; }
.toc a[href*="#section2"].active { background: #edf2f7; }
.toc a[href*="#section3"].active { background: #edf2f7; }
.toc a[href*="#section4"].active { background: #edf2f7; }
.toc a[href*="#section5"].active { background: #edf2f7; }
.toc a[href*="#section6"].active { background: #edf2f7; }
.toc a[href*="#section7"].active { background: #edf2f7; }
.toc a[href*="#section8"].active { background: #edf2f7; }
.toc a[href*="#section9"].active { background: #edf2f7; }
.toc a[href*="#section10"].active { background: #edf2f7; }
.toc a[href*="#section11"].active { background: #edf2f7; }
.toc a[href*="#section12"].active { background: #edf2f7; }
.toc a[href*="#section13"].active { background: #edf2f7; }
.toc a[href*="#section14"].active { background: #edf2f7; }
