/* 隱私權政策、資訊安全政策共用樣式 */
.policy-hero {
    background: linear-gradient(135deg, #aecad7 0%, #f4f9fd 55%, #aecad7 100%);
    text-align: center;
    padding: 70px 20px 60px;
}
.policy-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #0a3a5c;
}
.policy-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: #0a3a5c;
    font-size: 1.1em;
}
/* 中文語系取消寬度上限，讓引言在桌機維持單行（:lang(zh) 涵蓋 zh-Hant、zh-TW、zh-CN） */
html:lang(zh) .policy-hero p {
    max-width: none;
}
.policy-hero .policy-date {
    margin-top: 14px;
    font-size: .95em;
    color: #5b7184;
}

/* 主體：左側目錄 + 右側內文 */
.policy-wrap {
    max-width: 1100px;
    margin: 50px auto 80px;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.policy-toc {
    flex: 0 0 240px;
    position: sticky;
    top: 120px;
    border-left: 3px solid #d7eaf3;
    padding-left: 18px;
}
.policy-toc h2 {
    font-size: 1rem;
    color: #0a3a5c;
    font-weight: 700;
    margin-bottom: 10px;
}
.policy-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .95em;
}
.policy-toc li { margin-bottom: 6px; }
.policy-toc a {
    color: #5b7184;
    text-decoration: none;
    transition: color .2s;
}
.policy-toc a:hover { color: #0097cb; }

.policy-body {
    flex: 1;
    min-width: 0;
    color: #333;
}
.policy-body .lead {
    font-size: 1.1em;
    color: #475569;
    margin-bottom: 30px;
}
.policy-body section {
    margin-bottom: 40px;
    scroll-margin-top: 120px; /* 錨點跳轉時避開固定 navbar */
}
.policy-body h2 {
    font-size: 1.45rem;
    color: #0a3a5c;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.policy-body h3 {
    font-size: 1.1rem;
    color: #0a3a5c;
    font-weight: 700;
    margin: 20px 0 8px;
}
.policy-body ul,
.policy-body ol { padding-left: 1.4em; }
.policy-body li { margin-bottom: 6px; }
.policy-body a { color: #0097cb; }

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 0;
    font-size: .97em;
}
.policy-table th,
.policy-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    vertical-align: top;
    text-align: left;
}
.policy-table th {
    background: #f1f5f9;
    color: #0a3a5c;
    white-space: nowrap;
}

.policy-contact {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 24px 28px;
}
.policy-contact p { margin-bottom: 6px; }
.policy-contact i {
    color: #10a2d3;
    width: 1.4em;
}

@media screen and (max-width: 992px) {
    .policy-wrap { flex-direction: column; gap: 20px; margin-top: 30px; }
    .policy-toc {
        position: static;
        flex: none;
        width: 100%;
    }
}
@media screen and (max-width: 576px) {
    .policy-hero { padding: 40px 16px 36px; }
    .policy-hero h1 { font-size: 1.9rem; }
    .policy-wrap { padding: 0 16px; }
    .policy-table th { white-space: normal; }
    .policy-table th,
    .policy-table td { padding: 8px 10px; }
}

/* 覆寫 style.css 手機版的全站 table 規則（隱藏表頭、td 左側留白 50%），改成卡片並顯示欄位名稱 */
@media screen and (max-width: 768px) {
    .policy-table thead { display: none; }
    .policy-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden;
    }
    .policy-table td {
        display: block;
        border: 0;
        border-bottom: 1px solid #eef2f6;
        padding: 8px 14px !important;
    }
    .policy-table td:last-child { border-bottom: 0; }
    .policy-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: #0a3a5c;
        font-size: .9em;
    }
}
