/* ============================================================
   隱私權政策頁專屬樣式（2026-12-03）
   頁面：/privacy.html

   問題：窄螢幕（320–375px）下，表格欄位被擠壓，
         連結（如「亞大附醫連絡資訊」）溢出容器寬度，
         造成 document.scrollWidth > clientWidth（水平捲動）。
   作法：表格外加捲動容器；表格本身維持最小寬度以維持可讀性。
   桌面版：捲動容器不生效，表格寬度 100%。
   ============================================================ */

.privacy-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

.privacy-table-wrap table {
    width: 100%;
    min-width: 340px;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.7;
}

.privacy-table-wrap th,
.privacy-table-wrap td {
    padding: 0.7rem;
    border: 1px solid #e8eaf2;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.privacy-table-wrap thead th {
    background: #f4f5fa;
    color: #1b2952;
    font-weight: 700;
}

.privacy-table-wrap tbody tr:nth-child(even) th,
.privacy-table-wrap tbody tr:nth-child(even) td {
    background: #f8f9fc;
}

/* 表格內連結不被拆斷（避免中文逐字換行難讀） */
.privacy-table-wrap a {
    overflow-wrap: normal;
    word-break: keep-all;
}

/* 捲動提示（僅在真的可捲動時顯示） */
@media (max-width: 480px) {
    .privacy-scroll-hint {
        font-size: 0.82rem;
        color: #5a6a8a;
        margin: -0.5rem 0 1rem;
    }
}

/* ============================================================
   axe: link-in-text-block（serious）修正
   問題：段落內連結色 #1a2744（--navy-800）與內文 #2c3a5a（--ink-700）
         對比僅 1.31:1，遠低於 WCAG AA 要求的 3:1。
         → 連結「只靠顏色」與周圍文字區隔，讀者（色弱／高對比模式）看不出哪裡可點。
   解法：段落內連結加上底線（WCAG 認可的非色彩區隔方式）。
   ⚠️ 不改共用 CSS：--navy-800 是全站品牌色，改它會牽動所有頁面。
   ============================================================ */
.content-card p a,
.content-card li a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 0.06em;
}

.content-card p a:hover,
.content-card li a:hover {
    text-decoration-thickness: 0.12em;
}

/* 表格內連結保留原樣（表格有邊框，連結已可區隔） */
.privacy-table-wrap a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
