/* 隐私政策 / 协议页面唯一套样式
   所有文档页共用，页面内不再写任何 <style> */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 12px 14px 36px;
    font-size: 1rem;
    line-height: 1.75;
    color: #333333;
    background: #ffffff;
    word-break: break-word;
    overflow-wrap: anywhere;
}

h1, h2, h3, h4 {
    line-height: 1.4;
    margin: 1.2em 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 1.35rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1.02rem; }

.title {
    margin: 0.4em auto 0.9em;
    text-align: center;
}

p {
    margin: 0.6em 0;
    text-indent: 2ch;
}

ul, ol {
    padding-left: 1.5em;
    margin: 0.6em 0;
}

li {
    margin: 0.35em 0;
}

strong, b {
    font-weight: 700;
}

i, em {
    font-style: italic;
}

a:link,
a:visited {
    color: #5b5bd6;
    text-decoration: underline;
}

/* 宽表格横向滚动，避免撑破手机屏 */
.table-content {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    text-align: left;
    font-size: 0.95em;
}

thead {
    background-color: #edeff1;
}

table tr {
    border-top: 1px solid #dfe2e5;
    margin: 0;
    padding: 0;
}

table tr th {
    font-weight: 700;
    border: 1px solid #dfe2e5;
    margin: 0;
    padding: 6px 8px;
}

table tr td {
    border: 1px solid #dfe2e5;
    margin: 0;
    padding: 6px 8px;
    vertical-align: top;
    word-break: break-all;
}

.service {
    word-break: break-all;
}

/* 第三方 SDK 清单条目 */
.sdk-item {
    margin: 0 0 2px;
}

.sdk-item + .sdk-item {
    margin-top: 14px;
}

/* 配置缺失时的可见告警（只在 selftest 模式或明确异常时出现） */
.protocol-warning {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #e0b4b4;
    background: #fff6f6;
    color: #a33;
    font-size: 0.92em;
    text-indent: 0;
}

/* 按渠道显示/隐藏的段落由 protocol.js 控制，未启用时默认隐藏 */
[data-channel-only] {
    display: none;
}

/* 提示页 */
.notice {
    margin: 12vh auto 0;
    max-width: 34em;
    text-align: center;
    text-indent: 0;
}

.notice h3 {
    margin-bottom: 0.4em;
}

.notice p {
    text-indent: 0;
}

@media (prefers-color-scheme: dark) {
    body {
        color: #dddddd;
        background: #17171a;
    }
    thead {
        background-color: #26262b;
    }
    table tr,
    table tr th,
    table tr td {
        border-color: #3a3a40;
    }
    a:link,
    a:visited {
        color: #9d9df0;
    }
    .protocol-warning {
        border-color: #6b3b3b;
        background: #2a1c1c;
        color: #e0a0a0;
    }
}
