/* =====================================================================
   Privacidad — public legal page (Aviso de Privacidad + Política de
   Tratamiento de la Información; SkyRock as Responsable for ACCOUNT
   data). Served at /privacy (alias /legal/privacidad). Styled to the
   "SkyRock White" system like /dental-books: frosted clinical panels
   floating on the cosmic starfield (sky.jpg), brushed-black top bar,
   steel-navy + gold. Self-contained tokens (mirror dental-books). `pv-`
   namespace. Long-form legal reading: constrained measure, quiet type.
   ===================================================================== */

:root {
    /* Surfaces */
    --bg: #eef2f8; --surface: #ffffff; --surface-2: #f7f9fc; --surface-3: #eef2f8;
    --line: #e3e8f0; --line-strong: #d3dae6;
    --panel: linear-gradient(158deg, rgba(247, 250, 253, 0.92), rgba(229, 235, 246, 0.88));
    --panel-line: rgba(255, 255, 255, 0.45); --panel-blur: blur(16px) saturate(1.15);
    --panel-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    /* Ink */
    --text: #2a2f3a; --muted: #5b6473; --subtle: #8a93a3;
    /* On the starfield */
    --on-dark: #FFF6F6; --on-dark-muted: rgba(255, 255, 255, 0.74); --on-dark-faint: rgba(255, 255, 255, 0.55);
    --gold-light: #d9c08a;
    /* Brand */
    --accent: #3C486B; --accent-hover: #2e3a56;
    --gold: #c2a35a; --gold-soft: rgba(194, 163, 90, 0.40); --gold-ink: #8a6d1f;
    /* Type */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Spacing */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
    /* Radii */
    --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
    /* Elevation */
    --sh-sm: 0 1px 2px rgba(8, 12, 24, 0.18), 0 2px 6px rgba(8, 12, 24, 0.16);
    --sh-md: 0 1px 3px rgba(8, 12, 24, 0.22), 0 8px 22px rgba(8, 12, 24, 0.28);
    /* Motion */
    --ease: cubic-bezier(0.2, 0.6, 0.2, 1); --dur: 160ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: #0b0e1a;
    background-image:
        linear-gradient(180deg, rgba(8, 11, 22, 0.58), rgba(8, 11, 22, 0.72)),
        url('/components/files/images/sky.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gold-soft); border-radius: var(--r-sm); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

main { max-width: 52rem; margin: 0 auto; padding: 0 var(--s-5) var(--s-8); }

/* ---------------- Top bar (brushed black metal — shared SkyRock vibe) ---------------- */
.pv-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    padding: var(--s-3) var(--s-5);
    background: linear-gradient(-145deg, #1c1c1c, #2a2a2a, #141414, #333333, #1c1c1c);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    position: sticky; top: 0; z-index: 20;
}
.pv-brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--on-dark); }
.pv-brand-logo {
    width: 1.9rem; height: 1.9rem; flex: 0 0 auto; display: inline-block;
    background-image: url('/components/files/icons/OfficialSkyRockWhiteLogo.svg');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.pv-brand-text { display: flex; flex-direction: column; line-height: 1.05; font-weight: 700; letter-spacing: 0.04em; color: var(--on-dark); }
.pv-brand-sub { color: rgba(255, 255, 255, 0.5); font-size: 0.6rem; letter-spacing: 0.18em; font-weight: 400; text-transform: uppercase; margin-top: 2px; }
.pv-nav { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; justify-content: flex-end; }
.pv-nav a {
    color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.9rem; font-weight: 600;
    padding: 0.5rem 0.85rem; border-radius: var(--r-md); border: 1px solid transparent;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pv-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------------- Hero (light text on the cosmos) ---------------- */
.pv-hero { text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.75rem, 4vw, 2.5rem); }
.pv-eyebrow {
    display: inline-block; margin: 0 0 var(--s-3);
    color: var(--gold-light); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.28em; text-transform: uppercase;
}
.pv-hero h1 {
    margin: 0 0 var(--s-3); color: var(--on-dark);
    font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 700; line-height: 1.15;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.pv-hero-lead {
    margin: 0 auto var(--s-4); max-width: 40rem;
    color: var(--on-dark-muted); font-size: 1.02rem; line-height: 1.65;
}
.pv-hero-meta { margin: 0; color: var(--on-dark-faint); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------- Frosted panels ---------------- */
.pv-panel {
    background: var(--panel);
    border: 1px solid var(--panel-line); border-radius: var(--r-lg);
    box-shadow: var(--sh-md), var(--panel-sheen);
    -webkit-backdrop-filter: var(--panel-blur); backdrop-filter: var(--panel-blur);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0 0 var(--s-6);
}
.pv-panel-eyebrow { margin: 0 0 var(--s-2); color: var(--gold-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.pv-panel > h2 { margin: 0 0 var(--s-2); color: var(--accent); font-size: 1.45rem; font-weight: 700; line-height: 1.25; }
.pv-panel-sub { margin: 0 0 var(--s-5); color: var(--muted); font-size: 0.92rem; }

/* Section headings inside the policy */
.pv-panel h3 {
    margin: var(--s-6) 0 var(--s-3); padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    color: var(--accent); font-size: 1.05rem; font-weight: 700; line-height: 1.3;
}
.pv-panel h3:first-of-type { margin-top: var(--s-4); }
.pv-panel p, .pv-panel li { color: var(--text); font-size: 0.94rem; line-height: 1.7; }
.pv-panel p { margin: 0 0 var(--s-3); }
.pv-panel ul, .pv-panel ol { margin: 0 0 var(--s-3); padding-left: 1.3rem; }
.pv-panel li { margin: 0 0 var(--s-2); }
.pv-panel strong { color: var(--accent); }
.pv-panel a { border-bottom: 1px solid var(--gold-soft); padding-bottom: 1px; }
.pv-panel a:hover { color: var(--accent-hover); border-bottom-color: var(--gold); }

/* Identity / facts table */
.pv-facts { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-4); font-size: 0.92rem; }
.pv-facts th, .pv-facts td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pv-facts th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 34%; }
.pv-facts td { color: var(--text); word-break: break-word; }
.pv-facts tr:last-child th, .pv-facts tr:last-child td { border-bottom: none; }

/* Callout — quiet gold-accented note (role notes, keyless promise) */
.pv-note {
    display: flex; gap: var(--s-3); align-items: flex-start;
    background: var(--surface-2); border: 1px solid var(--line);
    border-left: 3px solid var(--gold); border-radius: var(--r-sm);
    padding: var(--s-4); margin: 0 0 var(--s-4);
}
.pv-note-ic { flex: 0 0 auto; width: 20px; height: 20px; color: var(--gold-ink); margin-top: 2px; }
.pv-note-ic svg { width: 20px; height: 20px; display: block; }
.pv-note p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.pv-note p + p { margin-top: var(--s-2); }
.pv-note strong { color: var(--accent); }

/* Summary strip — three quick promise cards above the legal text */
.pv-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin: 0 0 var(--s-6); }
.pv-summary-card {
    background: var(--panel);
    border: 1px solid var(--panel-line); border-radius: var(--r-lg);
    box-shadow: var(--sh-sm), var(--panel-sheen);
    -webkit-backdrop-filter: var(--panel-blur); backdrop-filter: var(--panel-blur);
    padding: var(--s-5);
}
.pv-summary-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-bottom: var(--s-3);
    border-radius: var(--r-md); background: var(--accent); color: #fff;
    box-shadow: var(--sh-sm);
}
.pv-summary-ic svg { width: 20px; height: 20px; display: block; }
.pv-summary-card h2 { margin: 0 0 var(--s-2); color: var(--accent); font-size: 1rem; font-weight: 700; }
.pv-summary-card p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* Owner-managed document body: plain text, escaped, breaks preserved (mirrors the
   Terms page body). Inherits the panel's reading typography. */
.pv-body {
    margin: 0; padding: 0;
    color: var(--text); font-size: 0.94rem; line-height: 1.7; font-family: inherit;
    white-space: pre-wrap; word-break: break-word;
}
.pv-empty { color: var(--muted); font-size: 0.94rem; }

/* Table of contents */
.pv-toc { margin: 0 0 var(--s-2); padding: 0; list-style: none; columns: 2; column-gap: var(--s-6); }
.pv-toc li { margin: 0 0 var(--s-2); break-inside: avoid; font-size: 0.9rem; }
.pv-toc a { color: var(--muted); border-bottom: none; }
.pv-toc a:hover { color: var(--accent); border-bottom: 1px solid var(--gold); }
.pv-toc-n { color: var(--gold-ink); font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* Footer (light on cosmos) */
.pv-foot { text-align: center; padding: var(--s-6) 0 var(--s-7); }
.pv-foot p { margin: 0 0 var(--s-2); color: var(--on-dark-muted); font-size: 0.88rem; }
.pv-foot a { color: var(--on-dark); border-bottom: 1px solid var(--gold-light); padding-bottom: 1px; }
.pv-foot a:hover { color: var(--gold-light); }
.pv-foot-tag { color: var(--gold-light); font-style: italic; font-size: 0.8rem; letter-spacing: 0.04em; }

/* Back-to-top helper */
.pv-top { display: inline-block; margin-top: var(--s-4); font-size: 0.85rem; color: var(--muted); border-bottom: none; }
.pv-top:hover { color: var(--accent); }

@media (max-width: 760px) {
    .pv-summary { grid-template-columns: 1fr; }
    .pv-toc { columns: 1; }
    .pv-facts th { width: auto; display: block; padding-bottom: 0; border-bottom: none; }
    .pv-facts td { display: block; padding-top: 2px; }
    .pv-nav a { padding: 0.45rem 0.6rem; font-size: 0.84rem; }
}

/* Print: drop the cosmos, keep the text */
@media print {
    body { background: #fff; color: #000; }
    .pv-topbar, .pv-foot, .pv-top { display: none; }
    .pv-hero h1, .pv-hero-lead, .pv-hero-meta, .pv-eyebrow { color: #000; text-shadow: none; }
    .pv-panel, .pv-summary-card { box-shadow: none; border: 1px solid #ccc; background: #fff; }
}
