/* 服務條款、退款與取消政策、隱私權政策共用的樣式（顏色跟首頁一致） */
:root {
  color-scheme: light;
  --plane: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #efefeb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6e69;
  --border: rgba(11, 11, 11, 0.1);
  --accent: #008a60;
  --accent-ink: #ffffff;
  --accent-text: #00704e;
  --radius: 16px;
  --font: "Segoe UI", "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --plane: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #22a77e;
    --accent-ink: #0b0b0b;
    --accent-text: #22a77e;
  }
}
  /* 手動選深色（theme.js 會在 <html> 加 data-theme） */
  :root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #22a77e;
  --accent-ink: #0b0b0b;
  --accent-text: #22a77e;
  }
* { box-sizing: border-box; }
body { margin: 0; background: var(--plane); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, p { margin: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--plane) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: #008a60; color: #fff; display: grid; place-items: center; }
.logo .mark svg { width: 18px; height: 18px; }
.logo .name { display: flex; align-items: baseline; gap: 7px; }
.logo .name small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 15px; color: var(--ink-2); }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
/* 外觀切換按鈕：依目前模式顯示對應的圖示 */
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; display: none; }
.theme-toggle:not([data-mode]) .t-auto, .theme-toggle[data-mode="auto"] .t-auto, .theme-toggle[data-mode="light"] .t-light, .theme-toggle[data-mode="dark"] .t-dark { display: block; }

.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 32px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.doc .meta { margin-top: 8px; color: var(--muted); font-size: 14px; }
.doc .intro { margin-top: 20px; color: var(--ink-2); }
.doc h2 { font-size: 20px; font-weight: 800; line-height: 1.4; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.doc ul + p, .doc ol + p, .doc .table-wrap + p { margin-top: 12px; }
.doc a { color: var(--accent-text); text-underline-offset: 3px; }
.doc b { color: var(--ink); }

.key { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.key h2 { margin: 0 0 8px; font-size: 16px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.data-table th { background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }

.contact { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 4px; color: var(--ink-2); }
.contact b { color: var(--ink); }

footer { border-top: 1px solid var(--border); margin-top: 40px; }
.foot { padding-top: 32px; padding-bottom: 48px; display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.foot-co { display: grid; gap: 2px; }
.foot-co b { color: var(--ink); }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.foot-note { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .doc { padding-top: 32px; }
  .data-table thead { display: none; }
  .data-table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  .data-table td[data-label]::before { content: attr(data-label) "："; font-weight: 700; color: var(--ink); }
  .data-table td:first-child { white-space: normal; }
  .foot { grid-template-columns: 1fr; }
}
