:root {
    color-scheme: dark;
    --privacy-bg: #0f0f11;
    --privacy-surface: #171719;
    --privacy-text: #f0f0ec;
    --privacy-muted: #cdcdc7;
    --privacy-heading: #fafaf5;
    --privacy-border: #41413d;
    --privacy-link: #b7ef58;
}

html {
    background: var(--privacy-bg);
}

body {
    min-width: 320px;
    background: var(--privacy-bg);
    color: var(--privacy-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.privacy-policy {
    width: min(100%, 960px);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(32px + env(safe-area-inset-top)) 32px calc(40px + env(safe-area-inset-bottom));
}

.privacy-policy h2 {
    color: var(--privacy-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
}

.privacy-policy h2 + h4,
.privacy-policy h2 + h4 + h4,
.privacy-policy h2 + h4 + h4 + h4 {
    color: var(--privacy-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

.privacy-policy h2 + h4 {
    padding-top: 18px !important;
}

.privacy-policy h4.padd20 {
    padding-top: 32px;
    color: var(--privacy-heading);
    font-size: 19px;
    font-weight: 650;
    line-height: 1.5;
}

.privacy-policy .padd10 {
    padding-top: 12px;
    color: var(--privacy-muted);
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.privacy-policy strong {
    color: var(--privacy-text);
    font-weight: 600;
}

.privacy-policy a[href] {
    color: var(--privacy-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.sdk-table-wrap {
    width: 100%;
    margin-top: 16px;
}

.sdk-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid var(--privacy-border);
    color: var(--privacy-muted);
    font-size: 13px;
    line-height: 1.55;
}

.sdk-table th,
.sdk-table td {
    padding: 10px 8px;
    border: 1px solid var(--privacy-border);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sdk-table th {
    background: #232325;
    color: var(--privacy-heading);
    font-weight: 650;
}

.sdk-table tbody tr:nth-child(even) {
    background: var(--privacy-surface);
}

.sdk-table th:nth-child(1), .sdk-table td:nth-child(1) { width: 15%; }
.sdk-table th:nth-child(2), .sdk-table td:nth-child(2) { width: 31%; }
.sdk-table th:nth-child(3), .sdk-table td:nth-child(3) { width: 18%; }
.sdk-table th:nth-child(4), .sdk-table td:nth-child(4) { width: 18%; }
.sdk-table th:nth-child(5), .sdk-table td:nth-child(5) { width: 18%; }

.sdk-table td:nth-child(1) {
    color: var(--privacy-text);
    font-weight: 600;
}

.sdk-table td:nth-child(2) {
    font-weight: 400 !important;
}

.sdk-table a {
    display: inline-block;
    font-weight: 600;
}

@media (max-width: 767px) {
    .privacy-policy {
        padding: calc(24px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
    }

    .privacy-policy h2 { font-size: 24px; }
    .privacy-policy h4.padd20 { padding-top: 28px; font-size: 18px; }
    .privacy-policy .padd10 { font-size: 15px; line-height: 1.85; }
    .sdk-table { font-size: 10px; line-height: 1.45; }
    .sdk-table th, .sdk-table td { padding: 7px 4px; }
    .sdk-table th:nth-child(1), .sdk-table td:nth-child(1) { width: 17%; }
    .sdk-table th:nth-child(2), .sdk-table td:nth-child(2) { width: 29%; }
    .sdk-table th:nth-child(3), .sdk-table td:nth-child(3) { width: 18%; }
    .sdk-table th:nth-child(4), .sdk-table td:nth-child(4) { width: 20%; }
    .sdk-table th:nth-child(5), .sdk-table td:nth-child(5) { width: 16%; }
}

@media (max-width: 390px) {
    .privacy-policy { padding-right: 12px; padding-left: 12px; }
    .sdk-table { font-size: 9px; }
    .sdk-table th, .sdk-table td { padding: 6px 3px; }
}
