/* 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: 250px 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-cta a:hover {
    color: #c9d6d6;
}
    .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%
        }
