/* Certaining – Terms of Use */
.tou {
    --teal: #0b6e6e;
    --teal-d: #075555;
    --teal-bg: #e9f5f5;
    --teal-line: #cfe6e6;
    --ink: #16201f;
    --text: #3d4a49;
    --muted: #6b7776;
    --line: #e3e8e8;
    --soft: #f3f7f7;
    --dark: #111c1b;
    --red: #d9573b;
    --amber: #f2b94b;
    --hdr: 96px; /* height of your fixed site header – change if needed */
    font-family: "Inter","Segoe UI",system-ui,-apple-system,Arial,sans-serif;
    color: var(--text);
    background: #fff;
    font-size: 15px;
    line-height: 1.7;
}

html {
    scroll-behavior: smooth
}

.tou * {
    box-sizing: border-box
}

.tou-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 260px minmax(0,1fr);
    gap: 48px;
    align-items: start
}

.tou svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none
}

/* Sidebar – sticky, scrolls on its own */
.tou-side {
    position: sticky;
    top: calc(var(--hdr) + 16px);
    max-height: calc(100vh - var(--hdr) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #c9d6d6 transparent
}

    .tou-side::-webkit-scrollbar {
        width: 5px
    }

    .tou-side::-webkit-scrollbar-thumb {
        background: #c9d6d6;
        border-radius: 6px
    }

.tou-toc {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 12px 14px
}

    .tou-toc h2, .tou-related h3 {
        margin: 0 0 12px 12px;
        font-size: 11.5px;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--ink);
        font-weight: 700
    }

    .tou-toc ol {
        list-style: none;
        margin: 0;
        padding: 0
    }

    .tou-toc a {
        display: block;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12.5px;
        color: var(--text);
        text-decoration: none;
        transition: background .25s ease,color .25s ease,padding-left .25s ease
    }

        .tou-toc a:hover, .tou-toc a:focus-visible {
            background: var(--teal-bg);
            color: var(--teal);
            padding-left: 16px;
            outline: none
        }

.tou-related {
    padding: 26px 12px 8px
}

    .tou-related h3 {
        margin-left: 0;
        color: var(--muted)
    }

    .tou-related a {
        display: block;
        padding: 5px 0;
        font-size: 13px;
        color: var(--teal);
        text-decoration: none;
        transition: color .25s,transform .25s
    }

        .tou-related a:hover {
            color: var(--teal-d);
            transform: translateX(3px)
        }

/* Main */
.tou-main {
    min-width: 0;
    animation: touIn .7s ease both
}

@keyframes touIn {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.tou-updated {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--muted)
}

.tou-intro {
    margin: 0 0 20px;
    font-size: 14.5px
}

    .tou-intro strong {
        color: var(--ink)
    }

.tou-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--teal-bg);
    border: 1px solid var(--teal-line);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--teal-d);
    margin-bottom: 34px
}

    .tou-notice svg {
        margin-top: 3px;
        color: var(--teal)
    }

    .tou-notice p {
        margin: 0;
        font-size: 13.5px;
        line-height: 1.6
    }

.tou-key {
    background: #f4f9f9;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 44px
}

    .tou-key h2 {
        margin: 0;
        font-size: 16px;
        color: var(--ink)
    }

    .tou-key .sub {
        margin: 2px 0 22px;
        font-size: 12px;
        color: var(--muted)
    }

.tou-key-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px 26px
}

.tou-key .item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: transform .3s ease
}

    .tou-key .item:hover {
        transform: translateY(-3px)
    }

    .tou-key .item svg {
        color: var(--teal);
        margin-top: 2px;
        width: 18px;
        height: 18px
    }

    .tou-key .item p {
        margin: 0;
        font-size: 12.5px;
        line-height: 1.55;
        color: var(--text)
    }

    .tou-key .item strong {
        color: var(--ink)
    }

.tou-sec {
    padding-top: 6px;
    margin-bottom: 38px;
    scroll-margin-top: calc(var(--hdr) + 16px)
}

    .tou-sec h2 {
        margin: 0 0 16px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--line);
        font-size: 21px;
        font-weight: 700;
        color: var(--ink);
        letter-spacing: -.01em
    }

        .tou-sec h2 span {
            color: var(--teal);
            margin-right: 4px
        }

    .tou-sec p {
        margin: 0 0 14px;
        font-size: 13.5px
    }

    .tou-sec a {
        color: var(--teal);
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color .25s
    }

        .tou-sec a:hover {
            color: var(--teal-d)
        }

        .tou-sec a.strong {
            font-weight: 700
        }

    .tou-sec strong {
        color: var(--ink)
    }

.tou-list {
    margin: 0 0 6px;
    padding: 0;
    list-style: none
}

    .tou-list li {
        position: relative;
        padding: 4px 0 4px 22px;
        font-size: 13.5px
    }

        .tou-list li::before {
            content: "";
            position: absolute;
            left: 6px;
            top: 14px;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--ink)
        }

    .tou-list.x li {
        padding: 8px 0 8px 32px
    }

        .tou-list.x li::before {
            left: 0;
            top: 11px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: none;
            border: 1.5px solid var(--red);
            background: linear-gradient(45deg,transparent 45%,var(--red) 45% 55%,transparent 55%), linear-gradient(-45deg,transparent 45%,var(--red) 45% 55%,transparent 55%);
            background-size: 8px 8px;
            background-position: center;
            background-repeat: no-repeat
        }

.tou-warn {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--dark);
    color: #e9f0ef;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 18px;
    transition: transform .3s ease,box-shadow .3s ease
}

    .tou-warn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(17,28,27,.22)
    }

    .tou-warn svg {
        color: var(--amber);
        margin-top: 3px;
        width: 18px;
        height: 18px
    }

.tou-sec .tou-warn p {
    margin: 0;
    font-size: 13px;
    color: #e9f0ef
}

.tou-sec .tou-warn strong {
    color: #fff
}

.tou-contact {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 28px 34px;
    scroll-margin-top: calc(var(--hdr) + 16px)
}

    .tou-contact h2 {
        margin: 0 0 10px;
        font-size: 21px;
        color: var(--ink)
    }

    .tou-contact > p {
        margin: 0 0 20px;
        font-size: 13px
    }

.tou-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.tou-contact .card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: transform .3s ease,box-shadow .3s ease,border-color .3s ease;
    text-align: center;
}

    .tou-contact .card:hover {
        transform: translateY(-3px);
        border-color: var(--teal-line);
        box-shadow: 0 10px 24px rgba(11,110,110,.12)
    }

.tou-contact .ico {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--teal-bg);
    color: var(--teal);
    display: grid;
    place-items: center;
    flex: none
}

.tou-contact b {
    display: block;
    font-size: 13px;
    color: var(--ink)
}

.tou-contact em {
    display: block;
    font-style: normal;
    font-size: 13px;
    color: var(--teal)
}

/* Responsive */
@media (max-width:991px) {
    .tou-wrap {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .tou-side {
        position: static;
        max-height: none;
        overflow: visible
    }

    .tou-key-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:575px) {
    .tou-key-grid, .tou-contact-grid {
        grid-template-columns: 1fr
    }

    .tou-sec h2 {
        font-size: 18px
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .tou * {
        transition: none !important;
        animation: none !important
    }
}

/* Hero */
.tou-hero {
    padding: 124px 24px 40px;
    background: url(../img/11.png) center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

    .tou-hero::before {
        position: absolute;
        content: "";
        inset: 0;
/*        background: #f3f7f7;*/
        opacity: 0.85;
        z-index: 0;
    }

    .tou-hero > * {
        position: relative;
        z-index: 1;
    }

.tou-hero-in {
    max-width: 1320px;
    margin: 0 auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

    .tou-hero-in > * {
        animation: touIn .7s ease both
    }

        .tou-hero-in > *:nth-child(2) {
            animation-delay: .08s
        }

        .tou-hero-in > *:nth-child(3) {
            animation-delay: .16s
        }

        .tou-hero-in > *:nth-child(4) {
            animation-delay: .24s
        }

.tou-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 12px;
    color: var(--muted)
}

    .tou-crumb a {
        color: #ccc;
        transition: color .25s
    }

        .tou-crumb a:hover {
            color: var(--teal)
        }

    .tou-crumb svg {
        width: 12px;
        height: 12px;
        stroke-width: 2;
        color: #fff;
    }

    .tou-crumb span {
        color: #fff;
        font-weight: 600
    }

.tou-hero h1 {
    margin: 0 0 12px;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #ffffff;
}

.tou-hero .lead {
    margin: 0 0 22px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--soft)
}

.tou-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text);
    transition: box-shadow .3s ease,transform .3s ease
}

    .tou-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(11,110,110,.1)
    }

    .tou-pill svg {
        width: 14px;
        height: 14px;
        color: var(--teal)
    }

.tou-wrap {
    padding-top: 44px
}

@media (max-width:575px) {
    .tou-hero {
        padding: 132px 20px 30px
    }

        .tou-hero h1 {
            font-size: 34px
        }
}

/* Active section in sidebar (scroll-spy) */
.tou-toc a {
    position: relative
}

    .tou-toc a::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        border-radius: 3px;
        background: var(--teal);
        transform: translateY(-50%);
        transition: height .3s ease
    }

    .tou-toc a.toc-active {
        background: var(--teal-bg);
        color: var(--teal);
        font-weight: 600;
        padding-left: 16px
    }

        .tou-toc a.toc-active::before {
            height: 60%
        }

/* ===== Privacy Policy extras ===== */
.tou-sec h3 {
    margin: 26px 0 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--teal)
}

    .tou-sec h3:first-of-type {
        margin-top: 4px
    }

.tou-sec .tou-notice {
    margin: 16px 0 6px
}

    .tou-sec .tou-notice p {
        margin: 0;
        color: var(--teal-d)
    }

/* Sidebar CTA */
.tou-cta {
    margin-top: 16px;
    background: var(--dark);
    color: #fff;
    border-radius: 14px;
    padding: 22px 18px 20px;
    transition: transform .3s ease, box-shadow .3s ease
}

    .tou-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(17,28,27,.25)
    }

    .tou-cta h3 {
        margin: 0 0 4px;
        font-size: 14px;
        color: #fff
    }

    .tou-cta p {
        margin: 0 0 14px;
        font-size: 12px;
        color: #c9d6d5
    }

    .tou-cta a {
        display: block;
        text-align: center;
        background: var(--teal);
        color: #fff;
        font-size: 12.5px;
        font-weight: 700;
        padding: 10px 12px;
        border-radius: 8px;
        text-decoration: none;
        transition: background .25s ease
    }

        .tou-cta a:hover {
            background: #0d8484
        }

/* Retention table */
.tou-table {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 6px
}

.tou-row {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 20px;
    padding: 16px 20px;
    font-size: 13px;
    transition: background .25s ease
}

    .tou-row:nth-child(odd) {
        background: var(--soft)
    }

    .tou-row:hover {
        background: var(--teal-bg)
    }

    .tou-row b {
        color: var(--ink);
        font-weight: 700
    }

    .tou-row span {
        color: var(--text)
    }

@media (max-width:575px) {
    .tou-row {
        grid-template-columns: 1fr;
        gap: 4px
    }
}

.tou-cta a:hover {
    color: #c9d6d6;
}

/* ===== Our Policies extras ===== */
.tou-hero.has-stats { padding-bottom: 96px }
.tou-hero .lead a { color: #fff; text-decoration: underline; text-underline-offset: 2px; transition: color .25s }
.tou-hero .lead a:hover { color: var(--teal-line) }
.tou-hero .lead { max-width: 640px }

/* Stats card overlapping the hero */
.tou-stats-wrap {
    max-width: 1320px;
    margin: -56px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 3
}
.tou-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 32px;
    box-shadow: 0 18px 40px rgba(17,28,27,.10);
    animation: touIn .7s ease .25s both
}
.tou-stat { transition: transform .3s ease }
.tou-stat:hover { transform: translateY(-3px) }
.tou-stat b { display: block; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--teal) }
.tou-stat span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--muted) }

/* Numbered steps */
.tou-steps { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: st }
.tou-steps li { position: relative; padding: 4px 0 4px 40px; margin-bottom: 8px; font-size: 13.5px; counter-increment: st }
.tou-steps li::before {
    content: counter(st);
    position: absolute; left: 0; top: 2px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--teal); color: #fff;
    font-size: 12px; font-weight: 700;
    display: grid; place-items: center;
    transition: transform .3s ease
}
.tou-steps li:hover::before { transform: scale(1.12) }

/* Two info cards */
.tou-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px }
.tou-box { border-radius: 12px; padding: 16px 18px; border: 1px solid var(--teal-line); background: var(--teal-bg); transition: transform .3s ease, box-shadow .3s ease }
.tou-box:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,110,110,.12) }
.tou-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-size: 13px; font-weight: 700; color: var(--teal) }
.tou-box h3 svg { width: 15px; height: 15px }
.tou-sec .tou-box p { margin: 0; font-size: 13px; color: var(--text) }
.tou-box.amber { background: #fdf4eb; border-color: #f3dcc3 }
.tou-box.amber h3 { color: #b4531b }
.tou-box.amber:hover { box-shadow: 0 10px 24px rgba(180,83,27,.12) }

/* Light warning (amber) */
.tou-note-amber {
    display: flex; gap: 12px; align-items: center;
    background: #fdf4eb; border: 1px solid #f3dcc3; border-radius: 10px;
    padding: 13px 16px; margin-top: 14px; color: #a5501c
}
.tou-sec .tou-note-amber p { margin: 0; font-size: 13px; color: #a5501c }

/* Online exam rules cards */
.tou-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.tou-rule {
    display: flex; gap: 12px; align-items: flex-start;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}
.tou-rule:hover { transform: translateY(-3px); border-color: var(--teal-line); box-shadow: 0 10px 24px rgba(11,110,110,.10) }
.tou-rule svg { width: 18px; height: 18px; margin-top: 2px; color: var(--teal) }
.tou-sec .tou-rule p { margin: 0; font-size: 13px; line-height: 1.6 }

/* Related policy cards */
.tou-rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.tou-sec a.tou-relcard {
    display: block; position: relative; text-decoration: none; color: var(--text);
    border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px 18px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}
.tou-sec a.tou-relcard:hover { transform: translateY(-3px); border-color: var(--teal-line); box-shadow: 0 10px 24px rgba(11,110,110,.12); color: var(--text) }
.tou-relcard b { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink) }
.tou-relcard span { display: block; font-size: 12.5px; line-height: 1.55; color: var(--muted); padding-right: 6px }
.tou-relcard svg { position: absolute; top: 16px; right: 16px; width: 14px; height: 14px; color: var(--teal); transition: transform .3s ease }
.tou-sec a.tou-relcard:hover svg { transform: translateX(4px) }

/* Refund table: first column bold, no zebra on first row */
.tou-table.refund .tou-row { padding: 14px 20px }

@media (max-width: 991px) {
    .tou-stats { grid-template-columns: repeat(3, 1fr) }
    .tou-rules, .tou-rel { grid-template-columns: 1fr 1fr }
}
@media (max-width: 575px) {
    .tou-stats { grid-template-columns: 1fr 1fr; padding: 20px }
    .tou-two, .tou-rules, .tou-rel { grid-template-columns: 1fr }
    .tou-stat b { font-size: 24px }
}
