
/* Main Content Container */
.terms-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Header Section */
.terms-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, #1E59FF 0%, #123599 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.terms-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: terms-fadeInUp 1s ease-out 0.3s both;
}

.terms-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    animation: terms-fadeInUp 1s ease-out 0.5s both;
}

/* Intro Section */
.terms-intro {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    border-left: 5px solid #2563eb;
    animation: terms-fadeInUp 1s ease-out 0.7s both;
}

.terms-intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #000000;
}

.terms-highlight {
    background: linear-gradient(120deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #bae6fd;
    margin: 2rem 0;
    position: relative;
}

.terms-highlight::before {
    content: 'ℹ️';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.terms-agreement-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    margin-top: 2rem;
}

.terms-agreement-note {
    font-style: italic;
    color: #475569;
    padding-top: 1rem;
    border-top: 1px dashed #cbd5e1;
    margin-top: 1rem;
}

/* Sections Styling */
.terms-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    animation: terms-fadeInUp 1s ease-out both;
}

/* Individual section delays */
#agreement {
    animation-delay: 0.9s;
}

#definitions {
    animation-delay: 1.1s;
}

#account {
    animation-delay: 1.3s;
}

#use {
    animation-delay: 1.5s;
}

.terms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #2563eb, #4f46e5);
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.terms-section-title {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terms-section-title i {
    color: #2563eb;
    background: #dbeafe;
    padding: 10px;
    border-radius: 10px;
}

.terms-content {
    color: #000000;
}

.terms-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

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

.terms-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 10px;
}

.terms-content li::before {
    content: '•';
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.terms-important {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
}

.terms-note {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
}

.terms-compliance {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.terms-compliance h3 {
    color: #166534;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-compliance h3 i {
    color: #22c55e;
}

/* Table of Contents */
.terms-toc {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    position: sticky;
    top: 20px;
    /* z-index: 100; */
    animation: terms-fadeInUp 1s ease-out 0.5s both;
}

.terms-toc-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.terms-toc-item {
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.terms-toc-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    border-left-color: #2563eb;
}

.terms-toc-item.active {
    background: #dbeafe;
    color: #2563eb;
    font-weight: 600;
    border-left: 4px solid #2563eb;
}

/* Footer Note */
.terms-footer-note {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
    border: 1px solid #e2e8f0;
    color: #475569;
    animation: terms-fadeInUp 1s ease-out 1.7s both;
}

.terms-footer-note i {
    color: #2563eb;
    margin-right: 10px;
}

/* Animations */
@keyframes terms-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .terms-main-content {
        padding: 1.5rem 1.5rem 3rem;
    }
    
    .terms-title {
        font-size: 2.5rem;
    }
    
    .terms-section, .terms-intro, .terms-toc {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .terms-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .terms-title {
        font-size: 2rem;
    }
    
    .terms-subtitle {
        font-size: 1.1rem;
    }
    
    .terms-section-title {
        font-size: 1.5rem;
    }
    
    .terms-section, .terms-intro, .terms-toc {
        padding: 1.5rem;
    }
    
    .terms-toc {
        position: static;
    }
}

@media (max-width: 480px) {
    .terms-main-content {
        padding: 1rem 1rem 2rem;
    }
    
    .terms-title {
        font-size: 1.8rem;
    }
    
    .terms-subtitle {
        font-size: 1rem;
    }
    
    .terms-section-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .terms-content p {
        font-size: 1rem;
    }
    
    .terms-toc-item {
        padding: 0.6rem 0.8rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .terms-toc {
        display: none;
    }
    
    .terms-section:hover {
        transform: none;
        box-shadow: none;
    }
}