/* ===========================================
   LEGAL 條款頁（服務條款、隱私權政策共用）
   版型沿用文章內頁：外層 .wrapper.news-detail（news-detail.css）、內文 .editor（editor.css）
   這支只補條文的層次：條標題、項（lv1）、款（lv2）、目（lv3）
   縮排基準是 .editor 的 ol／ul（padding-left 1.4em），款、目逐層加 1.4em，不比巢狀清單更深
   =========================================== */

/* 條標題：「第一條」與條名同一行，換行時從行首接續；錨點跳轉時避開固定頁首 */
.editor.legal h2 {
  scroll-margin-top: 84px;
}
.editor.legal h2 .num {
  margin-right: 0.6em;
}

/* 項、款、目：標號（一、（一）1、）掛在左側，長句換行對齊標號後的文字。
   段落間距沿用 .editor li 的 0.5em */
.editor.legal > p.lv1,
.editor.legal > p.lv2,
.editor.legal > p.lv3 {
  margin-bottom: 0.5em;
}
.editor.legal > p.lv1 {
  padding-left: 2em;
  text-indent: -2em;
}
.editor.legal > p.lv2 {
  padding-left: calc(1.4em + 3em);
  text-indent: -3em;
}
.editor.legal > p.lv3 {
  padding-left: calc(2.8em + 2em);
  text-indent: -2em;
}

/* 條文內的連結（用戶 2026-11-08 指定橘色、不要太亮）：
   做法照常見的內文連結寫法——預設就有底線（不只靠顏色分辨，W3C G183）、底線用同色半透明、細一點、離字遠一點；
   滑過時底線變實、變粗。粗細與距離用 em，跟字級一起縮放。 */
.editor.legal a {
  color: #B8620A;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: rgba(184, 98, 10, 0.4);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: auto;
  transition: text-decoration-color 0.2s, text-decoration-thickness 0.2s;
}
.editor.legal a:hover,
.editor.legal a:focus-visible {
  text-decoration-color: #B8620A;
  text-decoration-thickness: 0.12em;
}

/* 項之下沒有標號的接續段落（例：有限使用聲明），對齊項的文字 */
.editor.legal > p.lv1-cont {
  padding-left: 2em;
}
