:root {
    color: #17375f;
    background: #f4f7fb;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: linear-gradient(180deg, #dee5ed 0%, #ffffff 52%, #dee5ed 100%);
    color: #354f70;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(82, 113, 153, 0.14);
    background: rgba(248, 251, 254, 0.88);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 86px;
    height: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(82, 113, 153, 0.22);
    border-radius: 999px;
    color: #41688f;
    font-size: 14px;
    text-decoration: none;
    transition: 160ms ease;
}

.back-link:hover {
    border-color: rgba(24, 135, 231, 0.45);
    background: rgba(24, 135, 231, 0.07);
    color: #0b67b4;
}

.page-shell {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 80px;
}

.legal-document {
    min-width: 0;
    padding: clamp(28px, 5vw, 64px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.document-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e9f4fe;
    color: #1778c9;
    font-size: 13px;
    font-weight: 600;
}

h1 {
    margin: 18px 0 14px;
    color: #0b316b;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.document-summary {
    margin: 0 0 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(82, 113, 153, 0.14);
    color: #6d829b;
    font-size: 14px;
    line-height: 1.85;
}

.document-summary strong {
    color: #385a7c;
}

section {
    scroll-margin-top: 104px;
}

h2 {
    margin: 42px 0 16px;
    color: #0b316b;
    font-size: clamp(21px, 3vw, 26px);
    line-height: 1.35;
    letter-spacing: -0.015em;
}

h3 {
    margin: 28px 0 12px;
    color: #284d75;
    font-size: 18px;
    line-height: 1.5;
}

p,
li {
    font-size: 16px;
    line-height: 1.9;
}

p {
    margin: 0 0 14px;
}

ul,
ol.content-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 18px;
    padding-left: 1.4em;
}

li::marker {
    color: #1887e7;
}

.contact-card {
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #f3f8fd;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.inline-link {
    color: #1175c7;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.document-note {
    margin-top: 32px;
    padding: 18px 20px;
    border-left: 3px solid #1887e7;
    border-radius: 0 12px 12px 0;
    background: #f4f9fe;
    color: #4b6685;
}

.site-footer {
    padding: 0 20px 40px;
    color: #7b8fa6;
    font-size: 13px;
    text-align: center;
}

.site-footer a {
    color: #527199;
    text-decoration: none;
}

/* 目录：长文档的跳转入口，胶囊排成一行，窄屏自动换行 */
.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.toc a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(82, 113, 153, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #41688f;
    font-size: 13px;
    text-decoration: none;
    transition: 160ms ease;
}

.toc a:hover {
    border-color: rgba(24, 135, 231, 0.45);
    background: rgba(24, 135, 231, 0.07);
    color: #0b67b4;
}

/* 数据清单表（权限、第三方 SDK）：窄屏在容器内横向滚动，页面本身不横滚 */
.table-wrap {
    overflow-x: auto;
    margin: 12px 0 18px;
    border: 1px solid rgba(82, 113, 153, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.7;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(82, 113, 153, 0.14);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #f3f8fd;
    color: #0b316b;
    font-weight: 600;
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table td:first-child {
    color: #284d75;
    font-weight: 500;
}

/* 行内小标签：标记仅 iOS 收集的条目 */
.tag {
    display: inline-block;
    margin-right: 6px;
    padding: 0 7px;
    border-radius: 6px;
    background: #e9f4fe;
    color: #1778c9;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    vertical-align: 2px;
}

@media (max-width: 560px) {
    .site-header__inner,
    .page-shell {
        width: min(100% - 24px, 1120px);
    }

    .site-header__inner {
        min-height: 62px;
    }

    .brand img {
        width: 72px;
    }

    .back-link {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .page-shell {
        padding-top: 30px;
        padding-bottom: 48px;
    }

    .legal-document {
        padding: 26px 20px 36px;
    }

    .document-summary {
        overflow-wrap: anywhere;
    }

    p,
    li {
        font-size: 15px;
        line-height: 1.85;
    
    .data-table {
        font-size: 14px;
    }
}

@media print {
    body {
        background: #fff;
    }

    .site-header,
    .site-footer {
        display: none;
    }

    .page-shell {
        display: block;
        width: 100%;
        padding: 0;
    }

    .legal-document {
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}
