/* 關於我們／隱私權政策：與報名頁（index.html）共用同一組 token 與頁首樣式，間距以 4px 為單位。 */
:root { --bg: #0b0e14; --panel: #141a24; --panel-2: #1b2330; --border: #2f3b4d; --text: #eef2f6; --muted: #93a1b5; --accent: #f59e0b; --on-accent: #241300; --radius: 10px; --tap-min: 44px; }
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -64px; z-index: 1; padding: 12px 16px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* 頁首：品牌＋與報名頁相同的四個分頁（.tabs／.tab 的宣告與 index.html 一致；這裡是連結，所以多了 inline-flex 與去底線） */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; padding: 0 24px; border-bottom: 1px solid var(--border); background: var(--panel); }
.brand { padding: 12px 0; color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.tabs { display: flex; gap: 4px; flex: none; }
.tab { flex: none; min-height: var(--tap-min); padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.tab { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap-min); text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--text); }

.page { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.page-title { margin: 0 0 4px; font-size: 24px; line-height: 1.4; }
.page-lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.page-title + .panel { margin-top: 16px; }
.panel { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
h3 { margin: 20px 0 4px; font-size: 15px; }
p { margin: 8px 0; }
ul, ol { margin: 8px 0; padding-left: 20px; }
.muted { color: var(--muted); font-size: 13px; }
.section + .section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min); padding: 0 16px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-weight: 700; text-decoration: none; }

/* 系統概況：項目／內容 */
.facts { margin: 8px 0 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 0; border-top: 1px solid var(--border); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; }
.facts strong { font-weight: 700; }

/* 聯絡我們 */
.contact-list { margin: 8px 0; padding: 0; list-style: none; }
.contact-list li { padding: 8px 0; }
.link-list { margin: 8px 0; padding-left: 20px; }
.link-list a { display: inline-flex; align-items: center; min-height: var(--tap-min); }

/* 目錄：手機＝摺疊的「跳到章節」，≥900px＝左側黏住的目錄 */
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.toc-jump { margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); }
.toc-jump > summary { display: flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; font-weight: 700; cursor: pointer; }
.toc-jump[open] > summary { border-bottom: 1px solid var(--border); }
.toc-side { display: none; }
.toc-title { margin: 0 0 4px; padding: 0 12px; color: var(--muted); font-size: 13px; }

/* 隱私權政策：資料一覽表（手機轉成逐筆區塊，不橫向捲動） */
.data-table { width: 100%; margin: 8px 0; border-collapse: collapse; font-size: 14px; }
.data-table caption { text-align: left; }
.data-table th, .data-table td { padding: 12px 8px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.data-table thead th { color: var(--muted); font-size: 13px; font-weight: 400; }
.data-table tbody th { font-weight: 700; }
.data-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }

.site-links { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.site-links a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 4px; color: var(--muted); }
.site-links a[aria-current] { color: var(--accent); }

@media (max-width: 599px) {
.topbar { padding: 0 16px; gap: 0 16px; }
.tabs { flex: 1 0 100%; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0; }
.tab { padding: 0 4px; font-size: 13px; }
.panel { padding: 16px; }
.data-table thead { display: none; }
.data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
.data-table tr { padding: 8px 0; border-top: 1px solid var(--border); }
.data-table th, .data-table td { padding: 4px 0; border: 0; }
}
@media (min-width: 600px) {
.facts > div { grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; }
.data-table td::before { display: none; }
}
@media (min-width: 900px) {
.doc-grid { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 32px; align-items: start; }
.toc-side { display: block; position: sticky; top: 16px; }
.toc-jump { display: none; }
}
