/*
 * 合规文档页（privacy.html、pengaduan/）共用样式：照 iOS 系统页面的配色和字体，深浅色跟系统，
 * ?theme=dark|light 可强制（App「帮助与投诉」打开时带上 App 自己的夜间模式设置）。
 * 主题参数由页面 <head> 里的小脚本写到 <html data-theme>。手写 CSS，不经 tailwind 构建。
 */
:root {
  color-scheme: light;
  --bg: #FFFFFF;            /* systemBackground */
  --group: #F2F2F7;         /* secondarySystemBackground：卡片、分段控件底 */
  --thumb: #FFFFFF;         /* 分段控件选中块 */
  --label: #000000;
  --label2: rgba(60, 60, 67, 0.6);   /* secondaryLabel */
  --sep: rgba(60, 60, 67, 0.29);     /* separator */
  --link: #E8743C;          /* App 主色（原生页的 tint） */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --group: #1C1C1E;
    --thumb: #636366;
    --label: #FFFFFF;
    --label2: rgba(235, 235, 245, 0.6);
    --sep: rgba(84, 84, 88, 0.6);
    --link: #F08A55;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --group: #1C1C1E;
  --thumb: #636366;
  --label: #FFFFFF;
  --label2: rgba(235, 235, 245, 0.6);
  --sep: rgba(84, 84, 88, 0.6);
  --link: #F08A55;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 720px;
  padding: 16px 20px calc(40px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--label);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }

/* 只剩语言切换：iOS 分段控件 */
.langbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--group); }
.seg button {
  appearance: none; border: 0; margin: 0; cursor: pointer;
  min-width: 52px; padding: 5px 12px; border-radius: 7px;
  background: transparent; color: var(--label);
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2;
}
.seg button.on { background: var(--thumb); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }

/* 大标题 + 正文层级，接近 iOS Large Title / Title 3 / Headline */
h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: 0.01em; margin: 8px 0 4px; }
.subtitle { color: var(--label2); font-size: 15px; margin: 0 0 24px; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 32px 0 8px; padding-bottom: 8px; border-bottom: 0.5px solid var(--sep); }
h3 { font-size: 17px; font-weight: 600; margin: 20px 0 4px; }
p, li { font-size: 17px; }
p { margin: 8px 0; }
ul, ol { padding-left: 22px; margin: 8px 0; }
li { margin: 4px 0; }
li::marker { color: var(--label2); }

/* 分组卡片（投诉渠道块） */
.complaint { background: var(--group); border-radius: 12px; padding: 16px; margin-top: 8px; }
.complaint h3 { margin: 0 0 2px; font-size: 20px; }
.complaint .co { font-weight: 600; margin: 0 0 8px; }
.complaint p { margin: 4px 0; }
.complaint hr { border: 0; border-top: 0.5px solid var(--sep); margin: 12px 0; }

.foot { margin-top: 40px; color: var(--label2); font-size: 13px; text-align: center; }

html.lang-id [data-l="en"], html.lang-en [data-l="id"] { display: none !important; }
