@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --bg: #f6f7f9;
    --surface: #fff;
    --surface-2: #f0f2f5;
    --text: #18212b;
    --muted: #66717d;
    --line: #e3e7ec;
    --accent: #0f766e;
    --accent-2: #115e59;
    --accent-soft: #e7f5f2;
    --shadow: 0 12px 36px rgba(20,30,40,.07);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    /*     background: var(--bg);*/
    color: var(--text);
    font: 15px/1.78 "DM Sans",system-ui,sans-serif
}

    body.dark {
        --bg: #101516;
        --surface: #172021;
        --surface-2: #202b2c;
        --text: #edf4f2;
        --muted: #aab8b6;
        --line: #2e3b3c;
        --accent: #55c4b5;
        --accent-2: #77d4c7;
        --accent-soft: #163b38;
        --shadow: 0 18px 44px rgba(0,0,0,.24)
    }

a {
    color: inherit
}

.site-header {
    height: 76px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px,5vw,72px);
    position: sticky;
    top: 0;
    z-index: 20
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em
}

.brand strong {
    display: block;
    font-size: 14px;
    letter-spacing: .12em
}

    .brand strong span {
        color: var(--accent)
    }

.brand small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 1px
}

.header-actions {
    display: flex;
    gap: 8px
}

.icon-btn, .print-btn {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    height: 38px;
    border-radius: 9px;
    padding: 0 12px;
    cursor: pointer;
    font: inherit
}

.icon-btn {
    width: 38px;
    padding: 0
}

.hero_legal_page {
    background: linear-gradient(135deg, #2c2c2c 0%, #4c4e4e 55%, #484848 100%);
    color: #fff;
    padding: 74px clamp(20px,5vw,72px) 68px;
    position: relative;
    overflow: hidden
}

    .hero_legal_page:after {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 50%;
        right: -90px;
        top: -120px;
        box-shadow: 0 0 0 50px rgba(255,255,255,.025),0 0 0 100px rgba(255,255,255,.02)
    }

.hero_legal_page-inner {
    max-width: 1180px;
    margin: auto;
    position: relative;
    z-index: 1
}

.eyebrow_title {
    font-size: 11px;
    letter-spacing: .16em;
    opacity: .72;
    font-weight: 700
}

.hero_legal_page h1 {
    /* font: 700 clamp(38px,5vw,66px)/1.08 "Playfair Display",serif; */
    margin: 13px 0 10px;
    color: #fff;
}

.hero_legal_page p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px
}

    .meta-row span {
        border: 1px solid rgba(255,255,255,.17);
        background: rgba(255,255,255,.07);
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 12px
    }

    .meta-row b {
        margin-right: 5px;
        color: #fff
    }

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px minmax(0,1fr);
    gap: 38px;
    padding: 38px 24px 80px
}

.sidebar_legalPage {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 125px);
    overflow: auto;
    padding-right: 8px
}

.side-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted)
}

.progress {
    height: 4px;
    background: var(--surface-2);
    border-radius: 99px;
    margin: 10px 0 15px;
    overflow: hidden
}

    .progress span {
        display: block;
        height: 100%;
        width: 0;
        background: var(--accent);
        transition: width .2s
    }

#toc {
    display: grid;
    gap: 2px
}

    #toc a {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        text-decoration: none;
        color: var(--muted);
        padding: 7px 9px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.35
    }

        #toc a span {
            min-width: 22px;
            color: var(--muted);
            font-weight: 700
        }

        #toc a:hover {
            background: var(--surface-2);
            color: var(--text)
        }

        #toc a.active {
            background: var(--accent-soft);
            color: var(--accent-2);
            font-weight: 600
        }

            #toc a.active span {
                color: var(--accent)
            }

.contentItem {
    min-width: 0
}

.notice {
    display: flex;
    gap: 13px;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb,var(--accent) 22%, transparent);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
    font-size: 13px
}

.notice-icon {
    flex: none;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700
}

.legal-section {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 28px 30px;
    margin: 0 0 16px;
    box-shadow: 0 5px 20px rgba(20,30,40,.025);
    scroll-margin-top: 100px
}

.section-marker {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 12px
}

.section-content {
    overflow: auto;
}

    .section-content h2 {
        font: 700 24px/1.25 "Playfair Display",serif;
        margin: 5px 0 19px;
        color: var(--text)
    }

    .section-content p {
        margin: 0 0 12px;
        color: var(--muted)
    }

    .section-content .clause {
        font-weight: 700;
        color: var(--text);
        margin-right: 4px
    }

.legal-list {
    margin: -3px 0 13px 18px;
    padding-left: 18px;
    color: var(--muted)
}

    .legal-list li {
        padding: 3px 0
    }

        .legal-list li::marker {
            color: var(--accent)
        }

    .legal-list .sub {
        margin-left: 12px
    }

.table-wrap {
    overflow: auto;
    margin: 20px 0 6px;
    border: 1px solid var(--line);
    border-radius: 11px
}

    .table-wrap table {
        border-collapse: collapse;
        width: 100%;
        min-width: 600px;
        font-size: 13px
    }

        .table-wrap table th {
            background: var(--surface-2);
            text-align: left;
            color: var(--text);
            font-weight: 700
        }

        .table-wrap table th, td {
            padding: 12px 14px;
            border-bottom: 1px solid var(--line);
            vertical-align: top
        }

        .table-wrap table tr:last-child td {
            border-bottom: 0
        }

        .table-wrap table td {
            color: var(--muted)
        }

.no-results {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    margin-bottom: 20px
}

.legal-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    padding: 28px 5px;
    color: var(--muted);
    font-size: 12px
}

    .legal-footer strong, .legal-footer a {
        color: var(--text)
    }

    .legal-footer span {
        display: block
    }

[hidden] {
    display: none !important
}

@media (max-width:900px) {
    .page-shell {
        grid-template-columns: 1fr;
        padding: 24px 16px 60px
    }

    .sidebar_legalPage {
        position: relative;
        top: auto;
        max-height: none;
        padding: 0
    }

        .sidebar_legalPage nav {
            display: flex;
            overflow: auto;
            gap: 4px;
            padding-bottom: 5px
        }

            .sidebar_legalPage nav a {
                white-space: nowrap
            }

                .sidebar_legalPage nav a:not(.active) {
                    display: none
                }

    .hero_legal_page {
        padding: 54px 20px
    }

    .site-header {
        padding: 0 16px
    }

    .legal-section {
        grid-template-columns: 40px 1fr;
        padding: 23px 20px;
        gap: 12px
    }

    .section-marker {
        width: 34px;
        height: 34px
    }

    .section-content h2 {
        font-size: 21px
    }
}

@media (max-width:560px) {
    .brand small {
        display: none
    }

    .print-btn {
        display: none
    }

    .hero_legal_page h1 {
        font-size: 22px
    }

    .meta-row {
        display: grid
    }

        .meta-row span {
            border-radius: 10px
        }

    .legal-section {
        grid-template-columns: 1fr
    }

    .section-marker {
        margin-bottom: -7px
    }

    .legal-footer {
        align-items: flex-start;
        flex-direction: column
    }
}

.status.cancelled {
    background: #ee5f5f;
    text-transform: uppercase;
}
.status span {
    font-size: 14px;
}
