* {
    box-sizing: border-box;
}

html {
    background: #101415;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(32, 201, 151, 0.14), transparent 28rem),
        linear-gradient(180deg, #0a2647 0%, #101415 36rem);
    color: #172033;
    font-family: Manrope, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.78;
}

a {
    color: inherit;
    text-decoration: none;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 64px;
    background: rgba(10, 38, 71, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.brand {
    color: #20c997;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
}

.legal-header nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    color: #c4c6cf;
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
    color: #003827;
    background: #44dfab;
}

.legal-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 56px 32px 72px;
}

.legal-document {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(5, 22, 38, 0.34);
    padding: 72px 86px;
}

.legal-document h1 {
    margin: 0 0 34px;
    padding-bottom: 18px;
    border-bottom: 2px solid #20c997;
    color: #0a2647;
    font-size: 34px;
    line-height: 1.25;
    text-align: center;
}

.legal-document h2 {
    margin: 34px 0 14px;
    color: #0a2647;
    font-size: 22px;
    line-height: 1.45;
}

.legal-document h3 {
    margin: 24px 0 10px;
    color: #144272;
    font-size: 18px;
    line-height: 1.55;
}

.legal-document p {
    margin: 0 0 12px;
    font-size: 16px;
    text-align: justify;
}

.legal-document .clause {
    padding-left: 1.25em;
    text-indent: -1.25em;
}

.table-wrap {
    margin: 18px 0 26px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}

th,
td {
    border: 1px solid #d7dee8;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef7ff;
    color: #0a2647;
    font-weight: 800;
}

.sdk-table-wrap {
    margin-top: 10px;
}

.sdk-table {
    min-width: 1720px;
    table-layout: fixed;
}

.sdk-table th:nth-child(1),
.sdk-table td:nth-child(1) {
    width: 96px;
}

.sdk-table th:nth-child(2),
.sdk-table td:nth-child(2) {
    width: 200px;
}

.sdk-table th:nth-child(3),
.sdk-table td:nth-child(3) {
    width: 250px;
}

.sdk-table th:nth-child(4),
.sdk-table td:nth-child(4) {
    width: 240px;
}

.sdk-table th:nth-child(5),
.sdk-table td:nth-child(5) {
    width: 520px;
}

.sdk-table th:nth-child(6),
.sdk-table td:nth-child(6) {
    width: 414px;
}

.sdk-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
}

.sdk-table a {
    color: #0b63b6;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 24px 42px;
    color: #c4c6cf;
    font-size: 14px;
}

.legal-footer a {
    color: #44dfab;
    font-weight: 700;
}

@media (max-width: 720px) {
    body {
        line-height: 1.72;
        background:
            radial-gradient(circle at 20% 0%, rgba(32, 201, 151, 0.12), transparent 20rem),
            linear-gradient(180deg, #0a2647 0%, #101415 24rem);
    }

    .legal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: max(14px, env(safe-area-inset-top, 0px)) 16px 14px;
    }

    .brand {
        font-size: 20px;
    }

    .legal-header nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-link {
        flex: 1 1 0;
        padding: 9px 12px;
        text-align: center;
    }

    .legal-shell {
        padding: 20px 12px 48px;
    }

    .legal-document {
        padding: 30px 18px 36px;
        border-radius: 12px;
        box-shadow: 0 18px 48px rgba(5, 22, 38, 0.28);
    }

    .legal-document h1 {
        margin-bottom: 28px;
        padding-bottom: 16px;
        font-size: 26px;
    }

    .legal-document h2 {
        margin-top: 30px;
        font-size: 20px;
    }

    .legal-document h3 {
        font-size: 17px;
    }

    .legal-document p {
        font-size: 15px;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .table-wrap {
        margin-right: -18px;
        margin-left: -18px;
        padding: 0 18px 8px;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 9px 10px;
    }

    .legal-footer {
        flex-direction: column;
        gap: 8px;
        padding-right: 20px;
        padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
        padding-left: 20px;
        text-align: center;
    }
}
