:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --text-light: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}


/* Main Content */
.terms-container {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    margin-top: 120px;
}

.toc-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.toc-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    padding-left: 12px;
}

.toc-list a:hover {
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.toc-list a.active {
    color: var(--primary);
    font-weight: 500;
    border-left: 3px solid var(--primary);
}

.content {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.last-updated {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.main-title {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.subtile {
    font-size: 24px;
    color: var(--secondary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.title {
    font-size: 20px;
    color: var(--secondary);
    margin: 30px 0 15px;
}

p {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 16px;
}

.ul-group {
    padding-left: 20px;
    margin-bottom: 20px;
}

.terms-side-menu {
    margin-bottom: 8px;
}

.section {
    margin-bottom: 40px;
}

.highlight {
    background-color: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.prohibited-list li {
    position: relative;
    padding-left: 20px;
    text-decoration: none;
    list-style-type: none;
}

.prohibited-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.contact-info {
    background-color: #f1f5f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.back-to-top {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.back-to-top:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .terms-container {
        flex-direction: column;
    }

    .toc-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .toc-sidebar {
        margin-top: 60px;
    }

    .content {
        padding: 25px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }
}