/* 總站條款三頁（服務條款／退款政策／隱私權政策）共用樣式。
   2026-10-12 為了金流特約商店審查新增：三頁是純靜態 HTML、不跑 JS（CSP 只放 'self'，沒有內嵌 script）。
   配色沿用首頁「夜幕」的 :root 變數，只取讀長文需要的部分；星空、星圖不放（條款頁要好讀）。 */
:root {
  --bg: #06070d;
  --bg-2: #0b0d18;
  --text: #f3efe6;
  --muted: rgb(243 239 230 / .7);
  --faint: rgb(243 239 230 / .45);
  --line: rgb(243 239 230 / .1);
  --line-2: rgb(243 239 230 / .2);
  --gold: #d8bd84;
  --gold-2: #f2e3bf;
  --gold-3: #a9884d;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --serif: 'Noto Serif TC', 'PingFang TC', 'Microsoft JhengHei', serif;
  color-scheme: dark;
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70% 40% at 85% -10%, rgb(96 84 170 / .18), transparent 62%),
    var(--bg); }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
::selection { background: rgb(216 189 132 / .35); color: #fff; }

/* 頂列：品牌＋三頁分頁 */
.top { border-bottom: 1px solid var(--line); background: rgb(6 7 13 / .8); position: sticky; top: 0; z-index: 10;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top-in { width: min(1040px, 100% - var(--gutter) * 2); margin-inline: auto; display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 17px; color: var(--gold-2);
  background: rgb(216 189 132 / .07); box-shadow: inset 0 0 0 1px rgb(216 189 132 / .55); }
.brand b { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .12em; }
.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.tabs a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 6px 12px; border-radius: 999px; }
.tabs a:hover { color: var(--text); background: rgb(243 239 230 / .06); }
.tabs a[aria-current="page"] { color: var(--gold-2); box-shadow: inset 0 0 0 1px rgb(216 189 132 / .5); }

/* 內文 */
main { width: min(800px, 100% - var(--gutter) * 2); margin: 0 auto; padding: 48px 0 72px; }
h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 5vw, 40px); letter-spacing: .06em; margin: 0 0 6px; }
.meta { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.lead { font-size: 17px; color: var(--text); padding: 18px 20px; border-radius: 14px; background: rgb(243 239 230 / .04); box-shadow: inset 0 0 0 1px var(--line); margin: 0 0 8px; }
h2 { font-size: 20px; font-weight: 700; margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); letter-spacing: .02em; }
h2::before { content: ''; display: inline-block; width: 14px; height: 2px; background: var(--gold); vertical-align: middle; margin: -3px 10px 0 0; }
p { margin: 0 0 12px; color: var(--muted); }
li { color: var(--muted); margin: 4px 0; }
ol, ul { padding-left: 1.4em; margin: 0 0 12px; }
b, strong { color: var(--text); font-weight: 700; }
.note { font-size: 14.5px; color: var(--faint); }

/* 經營者資訊 */
.org { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; padding: 16px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
.org dt { color: var(--faint); }
.org dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* 表格：窄螢幕在自己的框裡橫捲，整頁不捲 */
.table-wrap { overflow-x: auto; margin: 6px 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--gold-2); font-weight: 500; background: rgb(216 189 132 / .06); white-space: nowrap; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
footer .in { width: min(1040px, 100% - var(--gutter) * 2); margin-inline: auto; padding: 26px 0 40px; line-height: 1.9; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .tabs { margin-left: 0; width: 100%; }
  .org { grid-template-columns: 1fr; gap: 0; }
  .org dd { margin-bottom: 8px; }
}
