.zr-privacy-tools { max-width: 72rem; margin: 0 auto; padding: .65rem 1rem; text-align: center; }
.zr-privacy-tools button { background: white; color: #213047; border: 1px solid #506580; border-radius: .35rem; padding: .45rem .8rem; font: inherit; cursor: pointer; }
.zr-privacy-panel { margin: .5rem auto 0; max-width: 40rem; padding: 1rem; color: #172130; background: #fff; border: 1px solid #c8cdd4; border-radius: .5rem; }
.zr-privacy-panel p { margin: 0 0 .5rem; }
.zr-privacy-panel button { margin: .2rem; }
.zr-support-link { position: fixed; bottom: 4.25rem; right: 1.1rem; z-index: 99; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #ffdd00; color: #20180e; text-decoration: none; font-size: 1.2rem; }
.zr-share-link { display: inline-block; color: inherit; text-decoration: underline; padding: .3rem; }

/* ===== 頁尾流量分析設定：新樣式（覆蓋上方舊樣式） ===== */
.zr-privacy-tools {
  --zr-gold: #b08d57;
  --zr-ink: #2b2420;
  --zr-line: #e8dfd0;
  --zr-cream: #faf6ef;
  max-width: 560px;
  margin: 8px auto 28px;
  padding: 0 16px;
  text-align: center;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* 開關按鈕：改成低調的文字連結 + 盾牌圖示 + 箭頭 */
.zr-privacy-tools > button[aria-controls] {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: .04em;
  color: #8a7a68;
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.zr-privacy-tools > button[aria-controls]::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.zr-privacy-tools > button[aria-controls]::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.zr-privacy-tools > button[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}
.zr-privacy-tools > button[aria-controls]:hover,
.zr-privacy-tools > button[aria-expanded="true"] {
  color: var(--zr-ink);
  border-bottom-color: var(--zr-gold);
}
.zr-privacy-tools > button[aria-controls]:focus-visible {
  outline: 2px solid var(--zr-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 面板：米色卡片 */
.zr-privacy-panel {
  margin-top: 14px;
  padding: 22px 24px 20px;
  background: var(--zr-cream);
  border: 1px solid var(--zr-line);
  border-radius: 16px;
  box-shadow: 0 6px 24px -12px rgba(43, 36, 32, .18);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
  animation: zrIn .25s ease;
}
.zr-privacy-panel[hidden] { display: none; }
@keyframes zrIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.zr-privacy-panel > p { grid-column: 1 / -1; margin: 0; }

/* 說明文字 + 金色小標 */
.zr-privacy-panel > p:first-child {
  font-size: 14.5px;
  line-height: 1.65;
  color: #5a5048;
}
.zr-privacy-panel > p:first-child::before {
  content: "Privacy · Analytics";
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--zr-gold);
}
html[lang^="zh"] .zr-privacy-panel > p:first-child::before { content: "隱私 · 流量分析"; letter-spacing: .2em; }
html[lang^="ja"] .zr-privacy-panel > p:first-child::before { content: "プライバシー · アクセス解析"; letter-spacing: .12em; }
html[lang^="ko"] .zr-privacy-panel > p:first-child::before { content: "개인정보 · 방문 통계"; letter-spacing: .12em; }

/* 狀態：膠囊標籤 + 圓點 */
.zr-privacy-panel > p[role="status"] {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--zr-ink);
  background: #fff;
  border: 1px solid var(--zr-line);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
}
.zr-privacy-panel > p[role="status"]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zr-gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, .18);
}

/* 兩顆按鈕：與頂部 Free Tools 同款膠囊 */
.zr-privacy-panel > button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.zr-privacy-panel > button:active { transform: scale(.98); }
.zr-privacy-panel > button:focus-visible {
  outline: 2px solid var(--zr-gold);
  outline-offset: 2px;
}
.zr-privacy-panel > button:nth-of-type(1) {
  color: var(--zr-ink);
  background: transparent;
  border: 1px solid #cfc3b0;
}
.zr-privacy-panel > button:nth-of-type(1):hover {
  border-color: var(--zr-ink);
  background: #fff;
}
.zr-privacy-panel > button:nth-of-type(2) {
  color: #fff;
  background: var(--zr-ink);
  border: 1px solid var(--zr-ink);
}
.zr-privacy-panel > button:nth-of-type(2):hover { background: #463a33; }

/* 小螢幕：按鈕直排，主按鈕在上 */
@media (max-width: 420px) {
  .zr-privacy-panel { grid-template-columns: 1fr; padding: 20px 18px; }
  .zr-privacy-panel > button:nth-of-type(2) { order: -1; grid-row: 3; }
}
