/* ============================================================
   TERMS & CONDITIONS — PAGE-SPECIFIC STYLES ONLY
   (Everything else on this page reuses style.css)
============================================================ */

.main-site-header {
    position: sticky !important;
}

.terms-section-wrap {
    padding: 55px 0 70px;
    background: var(--white);
    position: relative;
}

.terms-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 34px;
    padding: 8px 18px;
    background: var(--cream-light);
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}

/* ---- Layout: sticky TOC + content ---- */
.terms-toc {
    position: sticky;
    top: 110px;
    background: var(--cream-light);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 22px 20px;
}

.terms-toc h6 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.terms-toc ol {
    margin: 0;
    padding-left: 22px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.terms-toc ol li::marker {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.terms-toc li {
    margin-bottom: 8px;
}

.terms-toc a {
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.terms-toc a:hover {
    color: var(--primary-color);
}

/* ---- Content sections ---- */
.terms-intro {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 34px;
}

.terms-item {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 110px;
}

.terms-item:last-child {
    border-bottom: none;
}

.terms-num {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-body h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.terms-body p {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.terms-body ul {
    margin: 0 0 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.terms-body ul li {
    margin-bottom: 4px;
}

.terms-body a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

/* ---- Contact box ---- */
.terms-contact-box {
    margin-top: 10px;
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 24px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.terms-contact-box .terms-contact-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.terms-contact-box p {
    margin: 0;
    color: var(--text-dark);
    font-size: 15.5px;
}

.terms-contact-box a {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .terms-toc {
        position: static;
        margin-bottom: 30px;
    }

    .terms-toc ol {
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .terms-item {
        gap: 12px;
    }

    .terms-num {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .terms-body h3 {
        font-size: 1.02rem;
    }

    .terms-body p,
    .terms-body ul {
        font-size: 14px;
    }
}

.terms-section-wrap {
    position: relative;
}

.terms-section-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    /* exactly overlays the section's box */
    border: 8px solid #0f4c46;
    /* the visible frame */
    border-radius: 28px;
    /* same radius as the section itself */
    pointer-events: none;
    /* lets clicks reach real content */
    
}