/* 支援頁與隱私權政策頁共用。配色對應 iOS 系統色，強調色與 App 的 AccentColor 相同 */
:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --card: #ffffff;
  --separator: #e5e5ea;
  --text: #1c1c1e;
  --body: #3c3c43;
  --muted: #6c6c70;
  --chevron: #c7c7cc;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --on-accent: #ffffff;
  --accent-tint: #fbede6;
  --segment-bg: rgba(118, 118, 128, 0.12);
  --icon-shadow: 0 10px 28px rgba(194, 65, 12, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --separator: #38383a;
    --text: #ffffff;
    --body: #d1d1d6;
    --muted: #98989f;
    --chevron: #5a5a5e;
    --accent: #ff9f5a;
    --accent-hover: #ffbd8a;
    --on-accent: #1c1c1e;
    --accent-tint: rgba(255, 159, 90, 0.16);
    --segment-bg: rgba(118, 118, 128, 0.24);
    --icon-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.page {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 上方列：App 名稱與語言切換 */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.lang-picker {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  background: var(--segment-bg);
  color: var(--body);
}
.js .lang-picker { display: flex; }
.lang-picker select {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 依語言只顯示一種；沒有 JavaScript 時全部顯示。hidden 要壓過 article 的 display: flex */
[hidden] { display: none !important; }
article { display: flex; flex-direction: column; gap: 32px; }

/* 頁首 */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 16px;
}
.hero-icon { width: 112px; height: 112px; border-radius: 25px; box-shadow: var(--icon-shadow); }
.hero-icon.small { width: 88px; height: 88px; border-radius: 20px; }
h1 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.4px; }
.lead { margin: 0; max-width: 520px; font-size: 17px; color: var(--body); }
.date { margin: 0; font-size: 15px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }

/* 分組列表，和 iOS「設定」相同 */
.group { display: flex; flex-direction: column; gap: 8px; }
.group-title { margin: 0; padding: 0 16px; font-size: 13px; font-weight: 400; letter-spacing: 0.2px; color: var(--muted); }
.group-footer { margin: 0; padding: 0 16px; font-size: 13px; color: var(--muted); }
.card { background: var(--card); border-radius: 16px; overflow: hidden; }

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 11px 16px;
  font-size: 17px;
}
.row.item { align-items: flex-start; padding: 16px; }
.row .grow { flex: 1; }
a.row { color: var(--text); text-decoration: none; }
a.row:hover { background: var(--accent-tint); color: var(--text); }
.row .value { text-decoration: none; }

/* 分隔線從文字開始，不經過圖示 */
.card .row { position: relative; }
.card .row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 60px;
  right: 0;
  height: 1px;
  background: var(--separator);
}

.tile {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile svg { width: 18px; height: 18px; }
.chevron { flex: none; width: 14px; height: 14px; color: var(--chevron); }

.item-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-text h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; }
.item-text p { margin: 0; font-size: 15px; color: var(--body); }
[lang|="zh"] .item-text p, [lang|="zh"] .lead,
[lang="ja"] .item-text p, [lang="ja"] .lead { line-height: 1.6; }

/* 隱私權政策的三張摘要卡 */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.summary div { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--card); border-radius: 16px; }
.summary h2 { margin: 0; font-size: 17px; font-weight: 600; }
.summary p { margin: 0; font-size: 13px; color: var(--muted); }
.badge {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge svg { width: 22px; height: 22px; }

footer { text-align: center; font-size: 13px; color: var(--muted); }
