/* GPS 高鵬欣：Cookie 同意視窗與影片提示。「全部同意」與「全部拒絕」外觀相同，避免誘導選擇。 */
.gps-consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000;
  background: #252525; color: #fff; box-shadow: 0 -4px 20px rgba(0, 0, 0, .3);
  font-family: inherit; font-size: 14px; line-height: 1.6;
}
.gps-consent-banner[hidden], .gps-consent-overlay[hidden] { display: none; }
.gps-consent-inner {
  max-width: 1170px; margin: 0 auto; padding: 20px 15px;
  display: flex; align-items: center; gap: 24px;
}
.gps-consent-text { flex: 1 1 auto; }
.gps-consent-banner h2, .gps-consent-dialog h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; font-weight: 700; color: inherit; }
.gps-consent-banner p { margin: 0; color: #ddd; }
.gps-consent-banner a, .gps-consent-dialog-body a { color: #6cc3ff; text-decoration: underline; }
.gps-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.gps-consent-btn {
  min-height: 44px; padding: 10px 20px; border: 2px solid #0071bc; border-radius: 0;
  background: #0071bc; color: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
}
.gps-consent-btn[data-act="customize"], .gps-consent-btn[data-act="save"] { background: transparent; color: inherit; border-color: currentColor; }
.gps-consent-btn:hover { background: #005a96; border-color: #005a96; color: #fff; }
.gps-consent-btn:focus-visible, .gps-consent-close:focus-visible, .gps-consent-switch input:focus-visible + span, .gps-consent-allow:focus-visible {
  outline: 3px solid #ffbf47; outline-offset: 2px;
}

.gps-consent-overlay {
  position: fixed; inset: 0; z-index: 100001; background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center; padding: 15px;
}
html.gps-consent-open { overflow: hidden; }
.gps-consent-dialog {
  width: 100%; max-width: 640px; max-height: calc(100vh - 30px); overflow: auto;
  background: #fff; color: #333; font-size: 14px; line-height: 1.6; box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.gps-consent-dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: #0071bc; color: #fff;
}
.gps-consent-dialog-head h2 { margin: 0; }
.gps-consent-close {
  width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: transparent;
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.gps-consent-dialog-body { padding: 18px 20px 6px; }
.gps-consent-dialog-body > p { margin: 0 0 14px; }
.gps-consent-dialog-body a { color: #0071bc; }
.gps-consent-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #e5e5e5; }
.gps-consent-row-text { flex: 1 1 auto; }
.gps-consent-row h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.4; font-weight: 700; color: #252525; }
.gps-consent-row p { margin: 0; color: #555; font-size: 13px; }
.gps-consent-always { flex: 0 0 auto; color: #0071bc; font-weight: 700; font-size: 13px; }
.gps-consent-switch { position: relative; flex: 0 0 auto; width: 52px; height: 30px; cursor: pointer; }
.gps-consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gps-consent-switch span { position: absolute; inset: 0; border-radius: 15px; background: #9a9a9a; transition: background .2s; pointer-events: none; }
.gps-consent-switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.gps-consent-switch input:checked + span { background: #0071bc; }
.gps-consent-switch input:checked + span::after { transform: translateX(22px); }
.gps-consent-dialog .gps-consent-actions { padding: 14px 20px 20px; justify-content: flex-end; }
.gps-consent-dialog .gps-consent-btn[data-act="save"] { color: #0071bc; border-color: #0071bc; }
.gps-consent-dialog .gps-consent-btn[data-act="save"]:hover { color: #fff; }

/* 同意前的 YouTube 提示，蓋在影片位置上 */
.brxe-video { position: relative; }
.gps-consent-placeholder {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; background: #1d1d1d; color: #fff; text-align: center; font-size: 14px; line-height: 1.6;
}
.gps-consent-placeholder p { margin: 0; max-width: 420px; color: #eee; }
.gps-consent-allow {
  min-height: 44px; padding: 10px 22px; border: 0; background: #0071bc; color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.gps-consent-allow:hover { background: #005a96; }
iframe.gps-consent-blocked { visibility: hidden; }

@media (max-width: 767px) {
  .gps-consent-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 15px; }
  .gps-consent-banner { font-size: 13px; max-height: 70vh; overflow: auto; }
  .gps-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .gps-consent-actions .gps-consent-btn[data-act="customize"], .gps-consent-actions .gps-consent-btn[data-act="save"] { grid-column: 1 / -1; order: 3; }
  .gps-consent-btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .gps-consent-switch span, .gps-consent-switch span::after { transition: none; }
}

/* 頁尾隱私權政策／Cookie 設定連結 */
.gps-legal-links a { color: inherit; text-decoration: none; }
.gps-legal-links a:hover, .gps-legal-links a:focus-visible { text-decoration: underline; }
.gps-legal-links span { margin: 0 8px; opacity: .7; }

/* 隱私權政策頁內容 */
.gps-legal-title { margin: 0 0 10px; font-size: 32px; line-height: 1.3; font-weight: 700; color: #252525; }
.gps-legal { font-size: 15px; line-height: 1.8; color: #454545; }
html[lang^="zh"] .gps-legal, html[lang^="zh"] .gps-legal-title { font-family: "Microsoft JhengHei", "Apple LiGothic Medium", "Lucida Grande", Arial, sans-serif; }
html[lang^="en"] .gps-legal, html[lang^="en"] .gps-legal-title { font-family: Verdana, Geneva, Arial, sans-serif; }
.gps-legal p, .gps-legal li, .gps-legal td, .gps-legal th, .gps-legal h2, .gps-legal h3, .gps-legal strong { font-family: inherit; font-size: inherit; line-height: inherit; }
.gps-legal h2 { font-size: 22px; line-height: 1.4; }
.gps-legal h3 { font-size: 17px; line-height: 1.4; }
.gps-legal table td, .gps-legal table th { font-size: 14px; line-height: 1.6; }
.gps-legal .gps-legal-meta { color: #777; font-size: 13px; margin: 0 0 24px; }
.gps-legal h2 { margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #0071bc; font-size: 22px; line-height: 1.4; font-weight: 700; color: #252525; }
.gps-legal h3 { margin: 22px 0 8px; font-size: 17px; line-height: 1.4; font-weight: 700; color: #0071bc; }
.gps-legal p { margin: 0 0 12px; }
.gps-legal ul { margin: 0 0 14px; padding-left: 1.4em; list-style: disc; }
.gps-legal li { margin: 0 0 6px; }
.gps-legal a { color: #0071bc; text-decoration: underline; word-break: break-word; }
.gps-legal table { width: 100%; margin: 8px 0 18px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.gps-legal th, .gps-legal td { padding: 10px 12px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.gps-legal th { background: #f3f6f9; color: #252525; font-weight: 700; }
@media (max-width: 767px) {
  .gps-legal-title { font-size: 26px; }
  .gps-legal h2 { font-size: 19px; }
  .gps-legal table, .gps-legal thead, .gps-legal tbody, .gps-legal tr, .gps-legal th, .gps-legal td { display: block; width: 100%; }
  .gps-legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gps-legal tr { margin: 0 0 12px; border: 1px solid #ddd; }
  .gps-legal td { border: 0; border-top: 1px solid #eee; }
  .gps-legal td:first-child { border-top: 0; background: #f3f6f9; font-weight: 700; color: #252525; }
}
