/* ============================================================
   Privacy policy. Reuses design tokens from /styles/styles.css
   (--bg, --surface, --border, --text, --text-muted,
    --accent-gold, --accent-blue, --radius, --max-width, fonts).
   ============================================================ */

.pv-main { position: relative; z-index: 1; }

.pv-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 4vh 24px 8vh;
}

/* A document page reads better narrower than the 1080px bento grid, so
   pull the shared header/footer in to the same width and let the brand,
   the headings and the copyright line all share one left edge. */
.site-header, .site-footer { max-width: 820px; }

/* --- page head --- */

.pv-head { margin-bottom: 28px; }
.pv-head h1 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    line-height: 1.2;
}
.pv-lede {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

.pv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
}
.pv-meta b { color: var(--text); font-weight: 500; }

/* --- language switcher (in the shared site header) --- */

/* Only the privacy page loads this file, so relaxing the shared header to
   wrap here is safe and affects nothing else. */
.site-header { flex-wrap: wrap; row-gap: 12px; }

.pv-langswitch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;   /* sit at the far end of the header row, LTR or RTL */
}
.pv-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.pv-lang-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
    text-decoration: none;
}
.pv-lang-btn.is-active {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: var(--accent-gold-dim);
}
/* Flags render as real flags on Android/iOS/macOS and degrade to the
   two-letter code on Windows; the label beside them keeps it unambiguous. */
.pv-lang-btn .pv-flag { font-size: 14px; line-height: 1; }
.pv-lang-btn .pv-lang-label { letter-spacing: 0.2px; }

/* --- highlight callout (the TL;DR) --- */

.pv-callout {
    background: var(--accent-blue-dim);
    border: 1px solid rgba(111, 211, 247, 0.35);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 28px;
}
.pv-callout h2 {
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent-blue);
}
.pv-callout p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.7; }
.pv-callout p:last-child { margin-bottom: 0; }

/* --- table of contents --- */

.pv-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 32px;
}
.pv-toc h2 {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.pv-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pv-toc;
    display: grid;
    gap: 8px;
}
@media (min-width: 620px) {
    .pv-toc ol { grid-template-columns: repeat(2, 1fr); gap: 8px 22px; }
}
.pv-toc li { counter-increment: pv-toc; }
.pv-toc a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.pv-toc a::before {
    content: counter(pv-toc, decimal-leading-zero) ' ';
    color: var(--accent-gold);
}
.pv-toc a:hover { color: var(--text); }

/* --- sections --- */

.pv-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 16px;
    scroll-margin-top: 84px;   /* clears the sticky header on #anchor jumps */
    transition: border-color 0.25s ease, background 0.25s ease;
}
.pv-section:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.pv-section:target { border-color: var(--accent-gold); }

.pv-section h2 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}
.pv-section h2 .pv-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-gold);
    margin-right: 10px;
}
.pv-section h3 {
    margin: 20px 0 8px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.pv-section p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
}
.pv-section p:last-child { margin-bottom: 0; }
.pv-section strong { color: var(--text); font-weight: 500; }
.pv-section a { color: var(--accent-blue); }
.pv-section a:hover { text-decoration: underline; }

.pv-section ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.pv-section li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}
.pv-section li::before {
    content: '·';
    position: absolute;
    left: 4px;
    color: var(--accent-gold);
    font-weight: 700;
}
.pv-section li:last-child { margin-bottom: 0; }
.pv-section ul + p { margin-top: 12px; }

/* state marker on sections driven by a config.php feature flag */
.pv-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 5px;
    vertical-align: middle;
    margin-left: 8px;
    white-space: nowrap;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}
.pv-badge.is-maybe { color: var(--accent-blue); background: var(--accent-blue-dim); }
.pv-badge.is-on    { color: var(--accent-gold); background: var(--accent-gold-dim); }

/* --- contact block --- */

.pv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.pv-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.pv-contact a:hover { border-color: var(--border-hover); background: var(--surface-hover); text-decoration: none; }
.pv-contact svg { width: 16px; height: 16px; color: var(--accent-gold); }

@media (prefers-reduced-motion: reduce) {
    .pv-section { transition: none; }
}
