/* ══════════════════════════════════════════════════════════
   privacy-inline.css — 表單內「隱私權政策」展開框
   設計要求（2026-11-03 修正）：
     · 不另開新視窗，直接在同意勾選欄同一框內展開
     · 文字「適中」可讀 —— 原本 8px 太小看不清，改為 15px 起跳
     · 不限高度 —— 原本 max-height 340px 會截斷，條款看不全
     · 桌機與手機皆可用
   ══════════════════════════════════════════════════════════ */

/* ── 觸發連結 ────────────────────────────────────────── */
.pv-toggle {
  color: var(--primary);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.pv-toggle:hover { color: var(--primary-dark); }

/* ── 展開框 ──────────────────────────────────────────── */
.pv-box {
  display: none;
  margin: 14px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}
.pv-box.show { display: block; }

/* 框頂端：標題 + 更新日期 + 收合鈕 */
.pv-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--navy);
  color: white;
}
.pv-box-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pv-box-date {
  font-size: 14px;
  opacity: 0.75;
  white-space: nowrap;
}
.pv-box-close {
  background: none;
  border: none;
  color: white;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
}
.pv-box-close:hover { opacity: 0.7; }

/* ── 內容區：適中字級、完整顯示（不再截斷）────────────── */
.pv-body {
  padding: 16px 18px 18px;
  max-height: none;          /* 不限制高度，條款完整呈現 */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 每個條款段落 */
.pv-line {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}
.pv-line:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.pv-line:first-child { padding-top: 2px; }

/* 條款標題 */
.pv-h {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* 內文 */
.pv-p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 6px;
  text-align: justify;
}
.pv-p:last-child { margin-bottom: 0; }
.pv-p strong {
  font-weight: 700;
  color: var(--navy);
}

/* 清單 */
.pv-ul {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
}
.pv-ul li {
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  padding-left: 18px;
  margin-bottom: 4px;
}
.pv-ul li:last-child { margin-bottom: 0; }
.pv-ul li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.pv-ul li strong {
  font-weight: 700;
  color: var(--navy);
}

/* 提示 */
.pv-note {
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text2);
  background: var(--primary-light);
  padding: 10px 12px;
  margin: 8px 0 0;
  border-radius: 0 6px 6px 0;
}
/* 左側重點條用 pseudo-element 畫在文字欄外，
   這樣 .pv-note 的文字起點與其他段落完全齊平 */
.pv-note::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* 表格 */
.pv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  table-layout: fixed;
}
.pv-table td {
  font-size: 14px;
  line-height: 1.7;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text);
  vertical-align: top;
  word-break: break-word;
}
.pv-td-k {
  width: 26%;
  font-weight: 700;
  color: var(--navy);
  background: rgba(0, 0, 0, 0.02);
}

/* 聯絡 */
.pv-contact {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin-top: 8px;
}
.pv-contact a {
  color: var(--primary);
  text-decoration: none;
}
.pv-contact a:hover { text-decoration: underline; }

/* 展開框已不限高度，不需要捲軸美化 */

/* ── 手機版 ──────────────────────────────────────────── */
@media (max-width: 768px) {
  /* 注意：mobile-compact.css 在本檔之後載入，其 .cta p { ... !important }
     會蓋掉隱私條款文字。此處用 .cta-form / .pv-box 前綴提高特異性並加
     !important，確保條款字級不受手機版收斂規則影響。 */
  .pv-box .pv-box-head { padding: 11px 13px; }
  .pv-box .pv-box-title { font-size: 16px; }
  .pv-box .pv-box-date { font-size: 12px; }
  .pv-box .pv-body { padding: 14px 14px 16px; max-height: none; }
  .pv-box .pv-h { font-size: 15px; }
  .pv-box .pv-p,
  .pv-box .pv-ul li,
  .pv-box .pv-contact { font-size: 14px; }
  .pv-box .pv-table td { font-size: 13px; padding: 6px 8px; }
  .pv-box .pv-note { font-size: 13px; }
  .cta-form .pv-p,
  .cta-form .pv-ul li,
  .cta-form .pv-contact,
  .cta-form .pv-note { font-size: 14px !important; }
}
