:root {
    --primary-color: var(--bs-warning);
    --text-color: #212529;
    --muted-color: #6c757d;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body, .bg-light {
    background-color: var(--background-color) !important;
    color: var(--text-color);
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.7;
}

.terms-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Main content */
.terms-wrapper {
    max-width: 900px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 50px 60px;
}

.page-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.last-updated {
    text-align: center;
    font-size: 15px;
    color: var(--muted-color);
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-top: 40px;
    margin-bottom: 15px;
    scroll-margin-top: 100px;
}

.terms-text, .terms-list, .note {
    font-size: 17px;
    color: var(--text-color);
    margin-bottom: 18px;
}

.terms-list {
    margin-left: 25px;
}

.note {
    background-color: rgba(255, 175, 31, 0.15);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 6px;
    font-style: italic;
    color: var(--bs-warning);
}

.terms-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

    .terms-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* Floating Table of Contents */
.toc {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px 25px;
    min-width: 240px;
    height: fit-content;
}

    .toc h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .toc ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    .toc li {
        margin-bottom: 8px;
    }

    .toc a {
        color: var(--text-color);
        text-decoration: none;
        font-size: 15px;
        transition: color 0.2s;
    }

        .toc a:hover,
        .toc a.active {
            color: var(--primary-color);
            font-weight: 500;
        }

@media (max-width: 992px) {
    .terms-container {
        flex-direction: column;
        align-items: center;
    }

    .toc {
        position: relative;
        width: 100%;
        max-width: 850px;
        margin-bottom: 20px;
        top: 20px;
    }

        .toc ul {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 20px;
        }

        .toc li {
            margin-bottom: 0;
        }
}

html {
    scroll-behavior: smooth;
}
