/* privacy.css: "What we store, and how to delete it" (privacy.html, js/privacy.js). Class prefix pv-.
   Colors: the site tokens in css/pages.css (light and dark). Phone first; one column up to 820px. */

.pv-main { max-width: 820px; padding-top: 22px; padding-bottom: 28px; }
.pv-main h1 { margin: 6px 0 10px; font-size: clamp(1.55rem, 5.4vw, 2rem); line-height: 1.2; color: var(--ink); }
.pv-lead { font-size: 1.05rem; line-height: 1.55; margin: 0 0 10px; max-width: 70ch; }
.pv-meta { color: var(--muted); font-size: .9rem; margin: 4px 0 18px; }
.pv-main p, .pv-main li { line-height: 1.55; }
.pv-main a:not(.btn) { color: var(--accent); font-weight: 600; }

/* ---------- at a glance */
.pv-glance { display: grid; gap: 10px; margin: 0 0 8px; }
@media (min-width: 640px) { .pv-glance { grid-template-columns: repeat(3, 1fr); } }
.pv-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; padding: 14px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); }
.pv-main a.pv-card { color: var(--text); font-weight: 400; }
.pv-card:hover { background: var(--hover); }
.pv-card .pv-ico { grid-row: span 2; }
.pv-card-t { font-weight: 700; color: var(--ink); }
.pv-card-d { font-size: .92rem; color: var(--muted); grid-column: 2; }

.pv-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: var(--info-bg); color: var(--accent); }
.pv-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections */
.pv-sec { margin-top: 30px; outline: none; scroll-margin-top: 12px; }
.pv-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.3rem; color: var(--ink); }
.pv-sec > p { max-width: 70ch; margin: 0 0 8px; }
.pv-group { margin: 22px 0 8px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- expandable rows */
.pv-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 0 0 8px; }
.pv-item > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; min-height: 48px; box-sizing: border-box;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); border-radius: 12px; }
.pv-item > summary::-webkit-details-marker { display: none; }
.pv-item > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: 2px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.pv-item[open] > summary::before { transform: rotate(45deg); }
.pv-item > summary:hover { background: var(--hover); }
.pv-item[open] > summary { border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.pv-name { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.pv-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pv-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2);
  color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.pv-tag.pv-here { background: var(--good-bg); color: var(--good); border-color: transparent; }

.pv-facts { margin: 0; padding: 4px 14px 2px; }
.pv-facts > div { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.pv-facts > div:last-child { border-bottom: 0; }
.pv-facts dt { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pv-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .pv-facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; }
  .pv-facts dt { padding-top: 2px; }
  .pv-facts dd { margin: 0; }
}
.pv-keys { margin: 0; padding: 4px 14px 12px; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.pv-keys code { font-size: .8rem; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  overflow-wrap: anywhere; word-break: break-all; }
.pv-go { margin: 0; padding: 0 14px 12px; }
.pv-small { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.pv-item > .pv-small { padding: 0 14px 12px; margin: 0; }
.pv-item > .pv-small:empty { display: none; }

/* ---------- delete box */
.pv-del { margin: 14px 0 6px; padding: 16px; border: 1px solid var(--warn-border); border-radius: 14px; background: var(--warn-bg); }
.pv-del h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--ink); }
.pv-del p { margin: 0 0 10px; max-width: 70ch; }
.pv-count { font-weight: 600; }
.pv-count:empty { display: none; }
.pv-danger { color: var(--bad) !important; border-color: currentColor !important; min-height: 44px; }
.pv-confirm { margin: 12px 0 0; padding: 14px; border-radius: 12px; background: var(--surface); border: 2px solid var(--bad); outline: none; }
.pv-confirm:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring, #2468A8); }
.pv-confirm-h { font-weight: 700; color: var(--ink); }
.pv-note { padding: 8px 10px; border-radius: 8px; background: var(--info-bg); color: var(--info-text); border: 1px solid var(--info-border); }
.pv-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; cursor: pointer; }
.pv-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.pv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pv-actions .btn { min-height: 44px; }
.pv-yes { background: #B03A2E; border-color: #B03A2E; color: #fff; }
.pv-yes:hover { background: #8F2C22; border-color: #8F2C22; color: #fff; }
.pv-yes:disabled { opacity: .7; cursor: progress; }
.pv-status { margin: 10px 0 0; font-weight: 600; color: var(--good); outline: none; }
.pv-status:empty { display: none; }

/* ---------- never + ask */
.pv-never { margin: 0; }
.pv-ask { margin: 12px 0 6px; }

@media (prefers-reduced-motion: reduce) { .pv-item > summary::before { transition: none; } }
@media print {
  .pv-del, .pv-ask, .pv-glance { display: none; }
  .pv-item { break-inside: avoid; }
}
