/* Terms of Use Specific Styles */
.terms-container {
    max-width: 1000px;
    margin: 120px auto 80px;
    padding: 0 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terms-header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 40px;
    text-align: center;
    position: relative;
}

.terms-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

.terms-intro {
    padding: 40px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    line-height: 1.7;
}

.terms-intro p {
    margin-bottom: 20px;
}

.terms-intro a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.terms-intro a:hover {
    text-decoration: underline;
}

.terms-content {
    padding: 20px 40px;
}

.terms-section {
    margin-bottom: 50px;
    position: relative;
    padding-left: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.terms-section:nth-child(1) { transition-delay: 0.1s; }
.terms-section:nth-child(2) { transition-delay: 0.2s; }
.terms-section:nth-child(3) { transition-delay: 0.3s; }
.terms-section:nth-child(4) { transition-delay: 0.4s; }
.terms-section:nth-child(5) { transition-delay: 0.5s; }
.terms-section:nth-child(6) { transition-delay: 0.6s; }
.terms-section:nth-child(7) { transition-delay: 0.7s; }
.terms-section:nth-child(8) { transition-delay: 0.8s; }
.terms-section:nth-child(9) { transition-delay: 0.9s; }
.terms-section:nth-child(10) { transition-delay: 1s; }

.section-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.terms-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
}

.section-content {
    padding-left: 20px;
}

.section-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    color: var(--primary-color);
}

.section-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

.section-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.section-content ul li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.section-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.section-content a:hover {
    text-decoration: underline;
}

.terms-footer {
    background-color: #f9f9f9;
    padding: 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

.terms-footer p {
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.terms-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.terms-buttons .btn {
    min-width: 200px;
}

/* Table of Contents */
.toc {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.toc h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

.toc ul li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.toc a:hover {
    color: var(--secondary-color);
}

.toc a i {
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .terms-header {
        padding: 30px 20px;
    }
    
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-intro, 
    .terms-content,
    .terms-footer {
        padding: 30px 20px;
    }
    
    .terms-section {
        padding-left: 0;
    }
    
    .section-icon {
        position: relative;
        margin-bottom: 15px;
    }
    
    .section-content {
        padding-left: 0;
    }
    
    .terms-buttons {
        flex-direction: column;
    }
    
    .terms-buttons .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    header, footer, .menu-toggle {
        display: none;
    }
    
    .terms-container {
        margin: 0;
        box-shadow: none;
    }
    
    .terms-header {
        background: none;
        color: #000;
    }
    
    .section-icon {
        background: none;
        color: #000;
        border: 1px solid #000;
    }
    
    .terms-footer {
        background: none;
    }
}