/* Terms of Service Page Specific Styles */

.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

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

.last-updated {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* Table of Contents */
.toc-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.toc-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.toc-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

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

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.toc a:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Terms Content */
.terms-content {
    padding: 4rem 0;
    background: white;
}

.terms-content .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
}

.terms-text {
    max-width: 800px;
}

.terms-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.terms-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.terms-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.terms-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.terms-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.terms-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.terms-section a:hover {
    color: var(--primary-dark);
}

.terms-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Contact Info Box */
.contact-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border-left: 4px solid var(--primary-color);
}

.contact-info p {
    margin: 0;
    line-height: 1.8;
}

/* Acknowledgment */
.acknowledgment {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.acknowledgment p {
    color: white;
    font-size: 1.125rem;
    margin: 0;
}

/* Sidebar */
.terms-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.sidebar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.sidebar-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card li {
    margin-bottom: 0.75rem;
}

.sidebar-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-card a:hover {
    color: var(--primary-dark);
}

.sidebar-card .btn {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    display: block;
}

/* Print Styles */
@media print {
    .nav,
    .footer,
    .terms-sidebar,
    .toc-section {
        display: none;
    }
    
    .terms-content .container {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        background: none;
        color: black;
        padding: 2rem 0;
    }
    
    .terms-section {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .terms-content .container {
        grid-template-columns: 1fr;
    }
    
    .terms-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .terms-section h3 {
        font-size: 1.25rem;
    }
    
    .toc-container {
        padding: 1.5rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
    
    .terms-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .terms-section {
        margin-bottom: 2rem;
    }
    
    .toc-container {
        padding: 1rem;
    }
}

