/* Terms & Conditions Page Styles */
/* Override global section padding for this page only */
.terms-section {
    padding: 120px 0 80px !important;
    background: #ffffff;
    min-height: 100vh;
}

/* Ensure no extra padding from global section rule */
body:has(.terms-section) section.terms-section {
    padding: 120px 0 80px !important;
}

.terms-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Sidebar - Navigation */
.terms-sidebar {
    position: sticky;
    top: 120px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px 0;
    height: fit-content;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 0 24px 20px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    letter-spacing: -0.01em;
}

.terms-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: rgba(168, 85, 247, 0.05);
    color: #a855f7;
}

.nav-link.active {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-left-color: #a855f7;
    font-weight: 600;
}

.nav-number {
    font-weight: 600;
    min-width: 24px;
    font-size: 13px;
}

.nav-text {
    flex: 1;
    line-height: 1.4;
}

/* Right Content Area */
.terms-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
}

.terms-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.terms-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.terms-updated {
    font-size: 14px;
    color: #888;
    margin: 0;
    font-weight: 500;
}

.terms-body {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.terms-section-item {
    scroll-margin-top: 140px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.section-content {
    color: #444;
    line-height: 1.8;
    font-size: 16px;
}

.section-content p {
    margin: 0 0 16px 0;
}

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

.section-content ul {
    margin: 16px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.section-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

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

.section-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.contact-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.contact-info p {
    margin: 8px 0;
}

.contact-info a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #9333ea;
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-section {
        padding: 100px 0 60px !important;
    }
    
    .terms-container {
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }
    
    .terms-sidebar {
        top: 100px;
    }
    
    .sidebar-title {
        font-size: 16px;
        padding: 0 20px 16px;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .terms-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .terms-section {
        padding: 100px 0 60px !important;
    }
    
    .terms-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .terms-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
    }
    
    .sidebar-title {
        font-size: 18px;
        padding: 0 20px 16px;
    }
    
    .terms-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 13px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 6px;
    }
    
    .nav-link.active {
        border-left: none;
        border-bottom-color: #a855f7;
    }
    
    .nav-number {
        min-width: 20px;
        font-size: 12px;
    }
    
    .terms-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .terms-section-item {
        scroll-margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .terms-section {
        padding: 80px 0 40px !important;
    }
    
    .terms-container {
        padding: 0 16px;
    }
    
    .terms-header {
        margin-bottom: 32px;
        padding-bottom: 20px;
    }
    
    .terms-title {
        font-size: 28px;
    }
    
    .terms-updated {
        font-size: 13px;
    }
    
    .terms-body {
        gap: 32px;
    }
    
    .terms-section-item {
        padding-bottom: 24px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .section-content {
        font-size: 15px;
    }
    
    .terms-nav {
        grid-template-columns: 1fr;
    }
    
    .nav-link {
        padding: 10px 14px;
    }
}

/* Custom Scrollbar for Sidebar */
.terms-sidebar::-webkit-scrollbar {
    width: 6px;
}

.terms-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.terms-sidebar::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.terms-sidebar::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

