/* ============================================================
   NOVA GLOBAL SYSTEM — LEGAL STYLESHEET (Privacy Policy & Terms)
   Strict CSP compliant — zero external CDN dependencies.
   ============================================================ */

@font-face{font-family:"Barlow";src:url("../fonts/barlow-300.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow";src:url("../fonts/barlow-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow";src:url("../fonts/barlow-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow";src:url("../fonts/barlow-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url("../fonts/instrument-serif-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}

:root {
  --bg: #08080a;
  --panel: #0d0e12;
  --gold: #d4af37;
  --gold-soft: #f0d98c;
  --gold-deep: #a88841;
  --txt: #f5f3ee;
  --txt-2: rgba(245, 243, 238, 0.78);
  --txt-3: rgba(245, 243, 238, 0.46);
  --maxw: 1180px;
  --rule: rgba(245, 243, 238, 0.10);
  --rule-gold: rgba(212, 175, 55, 0.24);
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: var(--body); font-weight: 300;
  font-size: 16.5px; line-height: 1.75; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* Language switching */
[data-lang="en"] .l-es { display: none !important; }
[data-lang="es"] .l-en { display: none !important; }

/* Surfaces & Liquid Glass */
.liquid-glass {
  background: rgba(245, 243, 238, 0.03);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: inset 0 1px 1px rgba(245, 243, 238, 0.08);
  position: relative; overflow: hidden;
}
.liquid-gold {
  background: linear-gradient(180deg, rgba(212, 175, 55, .95) 0%, rgba(168, 136, 65, .95) 100%);
  box-shadow: 0 4px 24px rgba(212, 175, 55, .25), inset 0 1px 1px rgba(255, 255, 255, .35);
  color: #08080a; font-weight: 600;
}
.liquid-gold:hover {
  background: linear-gradient(180deg, rgba(240, 217, 140, 1) 0%, rgba(190, 155, 75, 1) 100%);
  box-shadow: 0 6px 32px rgba(212, 175, 55, .4), inset 0 1px 1px rgba(255, 255, 255, .4);
}

/* Nav */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: #08080a; padding: 10px 16px; border-radius: 999px; font-weight: 600; }

.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-brand {
  display: flex; align-items: center; gap: 10px; border-radius: 999px;
  padding: 8px 18px 8px 12px; text-decoration: none; color: var(--txt);
  transition: transform .3s ease;
}
.nav-brand:hover { transform: scale(1.04); }
.nav-brand .brand-badge {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--gold); display: grid; place-items: center;
  background: rgba(212, 175, 55, 0.12);
}
.nav-brand .brand-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: block; }
.nav-brand .brand-badge img, .nav-brand .brand-badge-img { width: 18px; height: 18px; object-fit: contain; display: block; }
.nav-brand span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; letter-spacing: -.02em; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.pill {
  border-radius: 999px; padding: 9px 16px; font-size: .84rem; font-weight: 500;
  text-decoration: none; color: var(--txt); display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(212, 175, 55, 0.25); cursor: pointer; font-family: var(--body);
  transition: transform .25s ease, color .25s ease, border-color .25s ease;
}
.pill:hover { transform: scale(1.05); color: var(--gold-soft); border-color: var(--gold); }
.pill-lang { font-family: var(--body); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.pill svg { width: 17px; height: 17px; flex: none; }
.nav-back { display: none; }
@media (min-width: 720px) { .nav-back { display: inline-flex; } }

/* Shell & Hero */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero { position: relative; padding: 130px 0 54px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, .15) 0%, rgba(13, 14, 18, .3) 45%, rgba(8, 8, 10, 0) 72%);
}
.hero-in { position: relative; z-index: 2; }
.kicker {
  font-family: var(--body); font-size: .75rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 16px;
}
h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 20px; color: var(--txt); max-width: 18ch;
}
.lede { font-size: 1.06rem; color: var(--txt-2); max-width: 64ch; margin: 0 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.chip {
  font-family: var(--body); font-size: .74rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--txt-2);
  border: 1px solid var(--rule-gold); border-radius: 999px; padding: 6px 14px;
  background: rgba(212, 175, 55, 0.05);
}
.chip strong { color: var(--gold-soft); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; border-radius: 999px;
  padding: 13px 24px; font-size: .92rem; text-decoration: none; cursor: pointer; border: 0;
  font-family: var(--body); font-weight: 500;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--txt); border: 1px solid rgba(212, 175, 55, 0.3); }
.btn-ghost:hover { color: var(--gold-soft); border-color: var(--gold); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Grid Layout & Sticky TOC */
.grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 8px 0 40px; }
@media (min-width: 1000px) {
  .grid { grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
}

.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: 104px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
}
.toc h2 {
  font-family: var(--body); font-style: normal; font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--txt-3);
  margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--rule);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a {
  display: flex; gap: 11px; padding: 6px 0; font-size: .88rem; line-height: 1.45;
  color: var(--txt-3); text-decoration: none; transition: color .2s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(212, 175, 55, 0.45); padding-top: 3px; flex: none;
}
.toc a:hover { color: var(--gold-soft); }
.toc a.is-active { color: var(--gold); font-weight: 500; }
.toc a.is-active::before { color: var(--gold); }
.toc-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.toc-foot a {
  font-family: var(--body); font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); text-decoration: none; cursor: pointer;
}
.toc-foot a:hover { color: var(--gold-soft); }

/* Content sections */
.content { min-width: 0; max-width: 74ch; }
section { padding: 34px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; padding-top: 8px; }
.sec-num {
  font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(212, 175, 55, 0.7); display: block; margin: 0 0 8px;
}
h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.2; color: var(--txt);
  margin: 0 0 16px; letter-spacing: -.01em;
}
h3 {
  font-family: var(--body); font-weight: 600; font-size: 1.05rem;
  color: var(--gold-soft); margin: 26px 0 8px;
}
p { margin: 0 0 16px; color: var(--txt-2); }
strong { font-weight: 600; color: var(--txt); }
em { font-style: italic; }
a {
  color: var(--gold-soft); text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition: color .2s ease, border-color .2s ease;
}
a:hover { color: var(--gold); border-bottom-color: var(--gold); }
ul { list-style: none; margin: 14px 0; padding: 0; }
ul li { position: relative; padding-left: 22px; margin: 9px 0; color: var(--txt-2); }
ul li::before {
  content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); opacity: .75;
}
.chips li::before { content: none; display: none; }
.chips li { position: static; padding-left: 14px; margin: 0; }

/* Table */
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--rule-gold); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .93rem; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
tbody tr:last-child td { border-bottom: 0; }
th {
  background: rgba(13, 14, 18, 0.9); color: var(--gold);
  font-family: var(--body); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
td { color: var(--txt-2); }
td:first-child { color: var(--txt); font-weight: 500; }

/* Note / Callout */
.note {
  border-radius: 14px; padding: 20px 24px; margin: 22px 0;
  border-left: 3px solid var(--gold);
}
.note p:last-child { margin-bottom: 0; }
.note-label {
  display: block; font-family: var(--body); font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px;
}

/* Data Deletion Signature Block */
.deletion {
  margin: 26px 0 6px; border-radius: 20px; padding: 30px;
  background: linear-gradient(160deg, rgba(13, 14, 18, .85) 0%, rgba(8, 8, 10, .75) 100%);
  border: 1px solid var(--rule-gold);
}
.deletion h3 { margin-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: flex; gap: 16px; padding: 0; margin: 0; }
.steps li::before {
  content: counter(step); flex: none;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(212, 175, 55, .14); border: 1px solid var(--rule-gold);
  font-family: var(--body); font-size: .8rem; font-weight: 600; color: var(--gold);
  position: static;
}
.steps li > div { min-width: 0; }
.steps b { display: block; color: var(--txt); font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--txt-2); font-size: .94rem; }
.tag {
  display: inline-block; font-family: var(--body); font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; background: rgba(212, 175, 55, .15); color: var(--gold-soft);
  border: 1px solid var(--rule-gold); border-radius: 6px; padding: 2px 8px; margin: 0 2px;
}
.deletion-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }
.copy-ok { font-family: var(--body); font-size: .8rem; color: var(--gold-soft); opacity: 0; transition: opacity .25s ease; }
.copy-ok.show { opacity: 1; }

/* Contact Card */
.card-contact { border-radius: 18px; padding: 26px; margin-top: 8px; }
.card-contact p { margin: 0 0 6px; }
.card-contact .name { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--txt); margin-bottom: 10px; }

/* Footer */
footer {
  background: #08080a; border-top: 1px solid var(--rule);
  padding: 52px 24px 40px; margin-top: 40px;
}
.foot-in { max-width: var(--maxw); margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-brand .f-badge {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold);
  background: rgba(212, 175, 55, 0.1); display: grid; place-items: center;
}
.foot-brand .f-badge i { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); display: block; }
.foot-brand .f-badge img, .foot-brand .f-badge-img { width: 24px; height: 24px; object-fit: contain; display: block; }
.foot-brand .n { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--txt); line-height: 1.1; }
.foot-brand .s { font-size: .78rem; color: var(--txt-3); }
.foot-tag { font-style: italic; font-size: .92rem; color: var(--txt-2); margin: 0; }
footer h4 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.1rem; color: var(--gold-soft); margin: 0 0 12px;
}
.foot-link { display: block; font-size: .9rem; color: var(--txt-2); text-decoration: none; border: 0; margin-bottom: 6px; }
.foot-link:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid var(--rule); padding-top: 22px;
  display: flex; flex-direction: column; gap: 8px; justify-content: space-between;
}
@media (min-width: 760px) { .foot-bottom { flex-direction: row; align-items: center; } }
.foot-bottom p { font-size: .78rem; color: var(--txt-3); margin: 0; }
.foot-bottom .disc { font-style: italic; color: rgba(245, 243, 238, .4); }

/* Print */
@media print {
  body { background: #fff; color: #111; font-size: 11.5pt; }
  .nav, .toc, .hero-cta, .deletion-actions, .hero-glow { display: none !important; }
  .hero { padding: 0 0 18px; }
  h1, h2 { color: #08080a; }
  .kicker, .sec-num, .note-label, th { color: #8a6d2f; }
  p, td, ul li { color: #222; }
  a { color: #08080a; border: 0; }
  .liquid-glass, .deletion, .note { background: #f6f4ef !important; box-shadow: none; border-color: #ddd; }
  section { page-break-inside: avoid; }
}
