/* ============================================================================
 * legal.css — 法律文件独立样式（privacy.html / terms.html 专用）
 *
 * 这两页刻意不加载 site.css 与组件库：法律文件要的是可读、可打印、可长期
 * 引用，不需要品牌化的页头页脚与动效。参照通行的协议页做法（如 Kimi 的
 * 用户协议页）：一栏正文、标题下直接跟版本日期、系统字体、无导航无页脚。
 *
 * 同时不引外部字体与 CDN、不加统计脚本——隐私政策自己这一页去请求第三方资源
 * 是件别扭的事。全部样式在本文件内，无任何外链依赖。
 * ==========================================================================*/

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: #1f2329;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  /* 法律文本常被整段复制引用，保留标点与断行的默认行为，不做视觉微调 */
  text-rendering: optimizeLegibility;
}

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.doc h1 {
  margin: 0 0 18px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
}

/* 版本日期：标题正下方两行，弱色小字，不做分隔线也不做右对齐——
   协议页的惯例是把它当作标题的附注，越安静越好 */
.doc-meta {
  margin: 2px 0;
  color: #646a73;
  font-size: 13px;
  line-height: 1.7;
}
.doc-meta + .doc-meta { margin-bottom: 8px; }

/* 唯一的站内出口：正文顶部一行回首页。弱色小字、与版本日期同色系，
   不抢标题；打印时整行隐藏——纸上没有「返回」 */
.doc-back { margin: 0 0 26px; }
.doc-back a {
  color: #646a73;
  font-size: 13px;
  text-decoration: none;
}
.doc-back a:hover,
.doc-back a:focus-visible { color: #2c6ecb; }

.doc h2 {
  margin: 40px 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.doc h3 {
  margin: 26px 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.doc p { margin: 12px 0; }

.doc ul,
.doc ol {
  margin: 12px 0;
  padding-left: 24px;
}
.doc li { margin: 7px 0; }

.doc strong { font-weight: 600; }

.doc a {
  color: #2c6ecb;
  text-decoration: none;
  /* 邮箱、仓库地址这类长串在窄屏要能断开，否则会把表格和正文顶宽 */
  word-break: break-word;
}
.doc a:hover,
.doc a:focus-visible { text-decoration: underline; }

/* 表格承载「场景 / 收集的信息 / 目的」这类结构化事实，换成列表会丢掉对应关系，
   所以保留表格，只把样式压到最朴素 */
.doc table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.7;
}
.doc th,
.doc td {
  padding: 9px 12px;
  border: 1px solid #e5e6eb;
  text-align: left;
  vertical-align: top;
}
.doc th {
  background: #f7f8fa;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .doc { padding: 36px 18px 72px; }
  .doc h1 { font-size: 20px; }
  .doc h2 { font-size: 16px; margin-top: 32px; }
  /* 窄屏表格允许横向滚动，不硬挤成三行文字 */
  .doc-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .doc-table-scroll table { min-width: 520px; }
  .doc th { white-space: normal; }
}

/* 打印：去掉多余留白，链接补出实际地址，方便存档 */
@media print {
  .doc { max-width: none; padding: 0; }
  .doc-back { display: none; }
  .doc a { color: #000; text-decoration: underline; }
  .doc a[href^="http"]::after { content: "（" attr(href) "）"; font-size: 11px; }
}
