@charset "utf-8";
/* ==========================================================================
   條款 / 隱私權政策 —— 沿用原始 Word 匯出樣式
   宋體、左右對齊、原始字級（條款 12pt／隱私權政策 10.5pt）
   僅做：語意化結構、行動裝置 viewport 與可讀性調整
   ========================================================================== */

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

body {
  margin: 0;
  padding: 24px 18px 48px;
  background: #fff;
}

.doc {
  max-width: 900px;
  margin: 0 auto;
  font-family: 宋体, SimSun, "Songti TC", "Songti SC", "Noto Serif CJK TC", serif;
  font-size: 12pt;          /* 使用者條款原始字級 */
  line-height: 1.85;
  color: #000;
  text-align: justify;
}

/* --- 標題 --- */
.doc h1 {
  font-size: 12pt;
  font-weight: bold;
  text-align: center;
  margin: 0 0 1.2em;
}
.doc h2 {
  font-size: 12pt;
  font-weight: bold;
  margin: 2.2em 0 0.7em;
}

/* --- 條文段落 --- */
.doc p {
  margin: 0 0 1em;
}

/* --- 隱私權政策：沿用原始 10.5pt / #333 / 18pt 標題 --- */
.doc-privacy {
  font-size: 10.5pt;
  color: #333;
}
.doc-privacy h1,
.doc-privacy h2 {
  font-size: 18pt;
}
.doc-privacy h2 {
  margin: 42pt 0 5.25pt;
}

/* 「一、二、三」 */
.doc ol {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  counter-reset: zh;
}
.doc ol > li {
  counter-increment: zh;
  position: relative;
  padding-left: 2.4em;
  margin-bottom: 0.7em;
}
.doc ol > li::before {
  content: counter(zh, cjk-ideographic) "、";
  position: absolute;
  left: 0;
}

/* 「(一)(二)」／「(1)(2)」 */
.doc .sub,
.doc .sub-alpha {
  list-style: none;
  margin: 0.6em 0 0;
  padding: 0 0 0 2.4em;
  counter-reset: parens;
}
.doc .sub > li,
.doc .sub-alpha > li {
  counter-increment: parens;
  position: relative;
  padding-left: 3.2em;
  margin-bottom: 0.5em;
}
.doc .sub > li::before,
.doc .sub-alpha > li::before {
  content: "(" counter(parens, cjk-ideographic) ")";
  position: absolute;
  left: 0;
}

/* 隱私權政策外層用 (1)(2)(3)，不額外縮排 */
.doc-privacy > .sub-alpha {
  padding-left: 0;
}

/* 「a. b. c.」 */
.doc .alpha {
  list-style: none;
  margin: 0.6em 0 0;
  padding: 0 0 0 1em;
  counter-reset: alpha;
}
.doc .alpha > li {
  counter-increment: alpha;
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.5em;
}
.doc .alpha > li::before {
  content: counter(alpha, lower-alpha) ".";
  position: absolute;
  left: 0;
}

/* ==========================================================================
   英文版（_en）：沿用同一套版式，僅將編號改為西式
     使用者條款  Article 1 → 1. 2. 3. → (a) (b) → (i) (ii)
     隱私權政策  1. → (1) (2) → (a) (b)
   ========================================================================== */
.lang-en {
  font-family: "Times New Roman", Times, 宋体, SimSun, "Songti TC", serif;
}

/* 使用者條款英文版 */
.doc-terms.lang-en > ol > li::before {
  content: counter(zh) ". ";
}
.doc-terms.lang-en .sub > li::before {
  content: "(" counter(parens, lower-alpha) ") ";
}
.doc-terms.lang-en .alpha > li::before {
  content: "(" counter(alpha, lower-roman) ") ";
}

/* 隱私權政策英文版 */
.doc-privacy.lang-en > .sub-alpha > li::before {
  content: "(" counter(parens) ") ";
}
.doc-privacy.lang-en .alpha > li::before {
  content: "(" counter(alpha, lower-alpha) ") ";
}

/* --- 行動裝置 --- */
@media (max-width: 640px) {
  body {
    padding: 16px 14px 32px;
  }
  .doc {
    font-size: 15px;
    line-height: 1.9;
  }
  .doc h1,
  .doc h2 {
    font-size: 15px;
  }
  .doc ol,
  .doc .sub,
  .doc .sub-alpha {
    padding-left: 0;
  }
  .doc ol > li {
    padding-left: 2em;
  }
  .doc .sub > li,
  .doc .sub-alpha > li {
    padding-left: 2.8em;
  }
}

/* --- 列印 --- */
@media print {
  body {
    padding: 0;
  }
  .doc {
    max-width: none;
    font-size: 11pt;
  }
  .doc h2 {
    page-break-after: avoid;
  }
}
