/* ============================================================================
   服務條款 / 隱私權政策 / 退款說明｜沿用重設密碼頁的「申請單」卡片，內容是長文，所以加寬、行距放鬆。
   CSP：不使用 inline style。
   ============================================================================ */
.legal-page main { padding-bottom: 40px; }
.legal-page .brand { color: inherit; text-decoration: none; }
.legal {
  width: min(100%, 760px); margin: 0 auto; display: grid; gap: 18px;
  padding: 22px 28px 30px; background: var(--steam); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--ink);
  line-height: 1.75;
}
.legal-draft {
  justify-self: start; padding: 6px 12px; font-weight: 700; color: var(--lantern);
  background: var(--lantern-soft); border: 2px dashed var(--lantern); border-radius: 6px;
}
.legal-title { font-size: clamp(30px, 7vw, 42px); }
.legal-title .ink-b { text-shadow: 3px 3px 0 var(--lantern); }
.legal-meta { font-size: 14px; color: var(--muted); }
/* 非中文介面才顯示「翻譯僅供參考，以繁體中文版為準」 */
.legal-lang-note { display: none; }
html:not([lang="zh-Hant"]) .legal-lang-note { display: block; font-weight: 700; }
.legal section { display: grid; gap: 8px; }
.legal h2 { font-family: var(--serif); font-size: 19px; font-weight: 900; padding-bottom: 4px; border-bottom: 2px dashed var(--rule); }
.legal h3 { margin: 6px 0 0; font-size: 16px; font-weight: 800; }
.legal ul { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; list-style: disc outside; }   /* app.css 全站把 ul 的點點拿掉了，條款頁要顯示回來 */
.legal li { display: list-item; }
.legal li::marker { color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); }
.legal p, .legal li { overflow-wrap: anywhere; }   /* 內文裡的客服信箱等長字串在手機上也要能換行，避免撐寬版面 */
.legal a { overflow-wrap: anywhere; }   /* 出處的長網址在手機上要能換行 */
html[data-theme="cute"] .legal { border-radius: 26px; box-shadow: 0 8px 0 var(--ink); }

@media (max-width: 480px) {
  .legal { padding: 16px 16px 24px; }
}

/* 方案與價格頁（/pricing）：價格清單一列一個方案，左邊名稱＋內容、右邊價格；手機上也不會撐寬 */
.pricing .price-list { list-style: none; padding: 0; gap: 0; border-top: 2px solid var(--ink); }
.pricing .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--rule); }
.pricing .price-row::marker { content: none; }
.pricing .price-name { display: grid; gap: 2px; min-width: 0; color: var(--ink); }
.pricing .price-name small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pricing .price-val { flex: none; font-size: 20px; color: var(--ink); white-space: nowrap; }
.pricing .price-row.is-pro .price-val { color: var(--lantern); }
.pricing .pricing-table { max-width: 100%; overflow-x: auto; }
.pricing .plan-compare { table-layout: fixed; }
.pricing .plan-compare th, .pricing .plan-compare td { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.pricing .pricing-error { font-weight: 700; color: var(--lantern); }
.pricing .pay-status { justify-self: start; padding: 6px 12px; font-weight: 700; color: var(--ink); background: var(--lantern-soft); border-radius: 6px; }
