:root {
    color-scheme: light;
    --legal-text: #181818;
    --legal-muted: #666572;
    --legal-border: #e7e4f2;
    --legal-purple: #7c5cf2;
    --legal-purple-dark: #5f3dde;
    --legal-surface: #ffffff;
    --legal-page: #f7f7fb;
    --legal-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Noto Serif SC", "Songti SC", serif;
    --legal-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--legal-page);
    font-size: 16px !important;
}

body.legal-page {
    min-width: 320px;
    margin: 0 !important;
    color: var(--legal-text);
    background: var(--legal-page) !important;
    font-family: var(--legal-serif) !important;
    font-size: 17px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}

.legal-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(230, 228, 242, .9);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 18px rgba(44, 37, 76, .05);
    backdrop-filter: blur(16px);
    font-family: var(--legal-sans);
}

.legal-header__inner {
    display: flex;
    width: 100%;
    max-width: 1440px;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 64px);
}

.legal-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 15px;
    color: var(--legal-text) !important;
    font-family: var(--legal-sans);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.legal-brand:hover,
.legal-brand:focus-visible {
    color: var(--legal-purple-dark) !important;
}

.legal-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.legal-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 !important;
    background: transparent !important;
}

.legal-nav a {
    color: #2e2d35 !important;
    font-family: var(--legal-sans);
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    text-decoration: none !important;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
    color: var(--legal-purple-dark) !important;
}

.legal-nav a.legal-nav__download {
    padding: 10px 22px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(90deg, #79a9f0 0%, #a22bf6 100%);
    box-shadow: 0 6px 16px rgba(124, 92, 242, .2);
}

/* The shared shell supersedes legacy navigation/footer chrome without deleting it. */
body.legal-page > .header-menu,
body.legal-page > footer:not(.legal-footer) {
    display: none !important;
}

body.legal-page main,
body.legal-page > .col-lg-8,
body.legal-page > #blockContentFull,
body.legal-page > section#blockContentFull {
    width: min(100% - 48px, 1120px) !important;
    max-width: none !important;
    margin: 0 auto !important;
}

@media (min-width: 761px) and (max-width: 1319.9px) {
    .legal-header__inner {
        min-height: 74px;
    }

    .legal-brand {
        font-size: 20px;
    }

    .legal-brand img {
        width: 32px;
        height: 32px;
    }

    .legal-nav a {
        font-size: 16px;
        line-height: 22px;
    }

}

body.legal-page main,
body.legal-page > .col-lg-8 {
    padding: 64px 0 96px !important;
}

body.legal-page #blockContentFull {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: clamp(32px, 5vw, 68px) !important;
    border: 1px solid var(--legal-border) !important;
    border-radius: 30px !important;
    background: var(--legal-surface) !important;
    box-shadow: 0 18px 50px rgba(54, 44, 94, .08) !important;
}

body.legal-page > #blockContentFull,
body.legal-page > section#blockContentFull {
    margin-top: 64px !important;
    margin-bottom: 96px !important;
}

.legal-page #blockContentFullInner,
.legal-page .elementStandard,
.legal-page .elementContent {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.legal-page #blockContentFull .elementHeadline h1,
.legal-page #blockContentFull .elementHeadline h2,
.legal-page #blockContentFull > h1:first-of-type,
.legal-page #blockContentFull > .title:first-child {
    margin: 0 0 36px !important;
    color: var(--legal-text) !important;
    font-family: var(--legal-serif) !important;
    font-size: clamp(36px, 5vw, 52px) !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
    letter-spacing: -.035em;
    text-align: left !important;
}

.legal-page #blockContentFull .elementHeadline h1::after,
.legal-page #blockContentFull .elementHeadline h2::after,
.legal-page #blockContentFull > h1:first-of-type::after,
.legal-page #blockContentFull > .title:first-child::after {
    content: "";
    display: block;
    width: 64px;
    height: 5px;
    margin-top: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #79a9f0 0%, #a22bf6 100%);
}

.legal-page #blockContentFull h1 {
    margin: 42px 0 14px;
    color: #24222c !important;
    font-family: var(--legal-serif) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.legal-page #blockContentFull h2 {
    margin: 42px 0 14px !important;
    color: #24222c !important;
    font-family: var(--legal-serif) !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.legal-page #blockContentFull h3,
.legal-page #blockContentFull h4 {
    margin: 30px 0 12px !important;
    color: #2e2b36 !important;
    font-family: var(--legal-serif) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.legal-page #blockContentFull p,
.legal-page #blockContentFull li,
.legal-page #blockContentFull td,
.legal-page #blockContentFull th,
.legal-page #blockContentFull div {
    font-family: var(--legal-serif) !important;
}

.legal-page #blockContentFull p,
.legal-page #blockContentFull li,
.legal-page #blockContentFull td,
.legal-page #blockContentFull th {
    color: var(--legal-muted) !important;
    font-size: 17px !important;
    line-height: 1.72 !important;
}

.legal-page #blockContentFull p {
    margin-top: 0;
    margin-bottom: 18px;
}

.legal-page #blockContentFull ul,
.legal-page #blockContentFull ol {
    margin: 0 0 24px;
    padding-left: 26px;
}

.legal-page #blockContentFull li + li {
    margin-top: 9px;
}

.legal-page #blockContentFull a {
    color: var(--legal-purple-dark) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-page #blockContentFull strong,
.legal-page #blockContentFull b {
    color: #35323f;
    font-weight: 650;
}

/* Neutralize legacy Bootstrap alignment and rem sizing in revision metadata. */
.legal-page #blockContentFull .elementText > strong.d-flex.flex-column.align-items-end {
    align-items: flex-start !important;
    gap: 4px;
    margin: 0 0 32px;
}

.legal-page #blockContentFull .elementText > strong.d-flex.flex-column.align-items-end h6 {
    width: auto !important;
    margin: 0 !important;
    color: var(--legal-muted) !important;
    font-family: var(--legal-serif) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.legal-page #blockContentFull .legal-table-scroll {
    width: 100% !important;
    max-width: 100%;
    margin: 28px 0 !important;
    overflow-x: auto;
    border: 1px solid var(--legal-border) !important;
    border-radius: 16px;
    background: #fff;
}

.legal-page #blockContentFull table {
    display: table;
    width: 100%;
    min-width: 680px;
    margin: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.legal-page #blockContentFull thead {
    display: table-header-group;
}

.legal-page #blockContentFull tbody {
    display: table-row-group;
    width: auto;
    min-width: 0;
}

.legal-page #blockContentFull th,
.legal-page #blockContentFull td {
    height: auto !important;
    padding: 14px 16px !important;
    border: 1px solid #eceaf4 !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.legal-page #blockContentFull th {
    color: #35323f !important;
    background: #f5f3fc !important;
    font-weight: 650;
}

.legal-page #blockContentFull thead td {
    color: #35323f !important;
    background: #f5f3fc !important;
    font-weight: 650;
}

/* Dense five-column SDK directories need stable proportions at every viewport. */
.legal-page #blockContentFull #table {
    min-width: 960px !important;
    table-layout: fixed !important;
}

.legal-page #blockContentFull #table th,
.legal-page #blockContentFull #table td {
    padding: 13px 14px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    word-break: normal;
    overflow-wrap: anywhere;
}

.legal-page #blockContentFull #table th:nth-child(1) {
    width: 22% !important;
}

.legal-page #blockContentFull #table th:nth-child(2) {
    width: 18% !important;
}

.legal-page #blockContentFull #table th:nth-child(3) {
    width: 27% !important;
}

.legal-page #blockContentFull #table th:nth-child(4) {
    width: 18% !important;
}

.legal-page #blockContentFull #table th:nth-child(5) {
    width: 15% !important;
}

.legal-page #blockContentFull #table tbody tr:nth-child(even) td {
    background: #faf9fd;
}

.legal-page #blockContentFull #table tbody tr:hover td {
    background: #f6f3ff;
}

.legal-page #blockContentFull #table td:last-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--legal-purple-dark) !important;
    background: #f0edff;
    font-family: var(--legal-sans) !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.legal-page #blockContentFull #table td:last-child a:hover,
.legal-page #blockContentFull #table td:last-child a:focus-visible {
    color: #fff !important;
    background: var(--legal-purple-dark);
}

.legal-footer {
    border-top: 1px solid var(--legal-border);
    background: #fff;
    font-family: var(--legal-sans);
}

.legal-footer__inner {
    display: flex;
    width: min(100% - 48px, 1120px);
    min-height: 116px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
}

.legal-footer p {
    margin: 0;
    color: #777481;
    font-family: var(--legal-sans) !important;
    font-size: 14px;
}

.legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.legal-footer a {
    color: #4c4956 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
    color: var(--legal-purple-dark) !important;
}

.legal-page a:focus-visible {
    outline: 2px solid var(--legal-purple);
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .legal-header__inner {
        width: 100%;
        min-height: 56px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .legal-brand {
        font-size: 24px;
    }

    .legal-brand img {
        width: 48px;
        height: 48px;
    }

    .legal-nav a.legal-nav__download {
        padding: 9px 18px;
        font-size: 14px !important;
    }

    body.legal-page main,
    body.legal-page > .col-lg-8 {
        width: min(100% - 28px, 1120px) !important;
        padding: 32px 0 56px !important;
    }

    body.legal-page #blockContentFull {
        width: min(100% - 28px, 1120px) !important;
        padding: 28px 22px !important;
        border-radius: 22px !important;
    }

    body.legal-page main #blockContentFull,
    body.legal-page > .col-lg-8 #blockContentFull {
        width: 100% !important;
    }

    body.legal-page > #blockContentFull,
    body.legal-page > section#blockContentFull {
        margin-top: 32px !important;
        margin-bottom: 56px !important;
    }

    .legal-page #blockContentFull .elementHeadline h1,
    .legal-page #blockContentFull .elementHeadline h2,
    .legal-page #blockContentFull > h1:first-of-type,
    .legal-page #blockContentFull > .title:first-child {
        margin-bottom: 28px !important;
        font-size: 34px !important;
    }

    .legal-page #blockContentFull p,
    .legal-page #blockContentFull li,
    .legal-page #blockContentFull td,
    .legal-page #blockContentFull th {
        font-size: 16px !important;
        line-height: 1.68 !important;
    }

    .legal-footer__inner {
        width: min(100% - 32px, 1120px);
        min-height: 140px;
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }
}

@media print {
    body.legal-page {
        color: #000;
        background: #fff !important;
        font-size: 11pt;
    }

    .legal-header,
    .legal-footer,
    body.legal-page > .header-menu,
    body.legal-page > footer:not(.legal-footer) {
        display: none !important;
    }

    body.legal-page main,
    body.legal-page > .col-lg-8,
    body.legal-page > #blockContentFull,
    body.legal-page > section#blockContentFull {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.legal-page #blockContentFull {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .legal-page #blockContentFull a {
        color: inherit !important;
        text-decoration: none;
    }
}
