/* ============================================================
   NOVA STUDIO — legal pages (Terms / Privacy)
   A quiet, editorial reading experience. Geist, #03001B,
   one restrained indigo accent (#9199FF), generous rhythm.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #03001b;
  --surface:       rgba(145, 153, 255, 0.045);
  --surface-2:     rgba(145, 153, 255, 0.07);
  --border:        rgba(145, 153, 255, 0.12);
  --border-soft:   rgba(145, 153, 255, 0.08);

  --accent:        #9199ff;
  --accent-bright: #b3bcff;
  --accent-bg:     rgba(145, 153, 255, 0.12);

  --text:          rgba(214, 221, 255, 0.78);
  --text-strong:   #ffffff;
  --text-dim:      rgba(214, 221, 255, 0.50);
  --text-faint:    rgba(214, 221, 255, 0.32);

  --amber:         #dc8f23;
  --warn:          #ff9a9a;

  /* legacy var names used by inline styles in the content */
  --primary:        #6f6cff;
  --primary-mid:    #7b78ff;
  --primary-light:  #9199ff;
  --holo-aqua:      #b3bcff;
  --text-primary:   #ffffff;
  --text-secondary: rgba(214, 221, 255, 0.78);
  --text-tertiary:  rgba(214, 221, 255, 0.50);
  --text-muted:     rgba(214, 221, 255, 0.32);
  --text-accent:    #9199ff;

  --font: 'Geist', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* a single, very soft ambient bloom at the top — nothing more */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(80% 42% at 50% -12%, rgba(71, 35, 220, 0.22) 0%, transparent 60%),
    radial-gradient(50% 40% at 92% 4%, rgba(115, 114, 255, 0.08) 0%, transparent 60%);
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px 120px;
}

/* ── Header ───────────────────────────────────────────────── */
header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 64px;
  padding: 12px 24px;
  background: rgba(10, 5, 30, 0.45); /* Apple-like glassmorphism */
  backdrop-filter: blur(20px) saturate(190%) brightness(120%);
  -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(120%);
  border: 1px solid rgba(145, 153, 255, 0.14); /* Subtle border on all sides */
  border-radius: 20px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.08); /* Inner glass glow */
}

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }

/* real Nova character, not a fake gradient circle */
.logo-orb {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(91, 74, 252, 0.45));
}

.logo-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--accent);
  opacity: 0.5;
  padding: 5px 12px;
  border-radius: 999px;
  transition: opacity .2s ease, background .2s ease;
}
.lang-btn:hover { opacity: 0.85; }
.lang-btn.active { opacity: 1; background: var(--accent-bg); }

/* ── Page title ───────────────────────────────────────────── */
.page-title { margin-bottom: 56px; }

.page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-title h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.page-meta { font-size: 14px; color: var(--text-dim); }
.page-meta span { color: var(--accent); }

/* ── TOC ──────────────────────────────────────────────────── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 26px 30px;
  margin-bottom: 72px;
}

.toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 28px;
}

@media (max-width: 560px) { .toc ol { grid-template-columns: 1fr; } }

.toc li { counter-increment: toc; }

.toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color .18s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  transition: color .18s ease;
}
.toc a:hover { color: var(--accent); }
.toc a:hover::before { color: var(--accent); }

/* ── Sections ─────────────────────────────────────────────── */
.section { margin-bottom: 56px; scroll-margin-top: 96px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-num {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 7px;
  padding: 4px 9px;
  flex-shrink: 0;
}

.section h2 {
  font-size: clamp(21px, 3vw, 25px);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 16px;
}
.section p:last-child { margin-bottom: 0; }

.section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin: 26px 0 12px;
}

.section ul, .section ol { padding-left: 22px; margin-bottom: 16px; }
.section li { font-size: 16px; color: var(--text); margin-bottom: 10px; line-height: 1.7; }
.section li::marker { color: var(--accent); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Callout cards ────────────────────────────────────────── */
.info-card, .warning-card {
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  border: 1px solid var(--border);
  background: var(--surface);
}
.info-card { border-color: rgba(145, 153, 255, 0.22); background: rgba(145, 153, 255, 0.06); }
.warning-card { border-color: rgba(255, 154, 154, 0.22); background: rgba(255, 154, 154, 0.05); }

.info-card p, .warning-card p { font-size: 15px; color: var(--text); margin: 0; }
.info-card strong { color: var(--accent-bright); }
.warning-card strong { color: var(--warn); }

/* ── Plan cards (terms §3) ────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 520px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 22px;
}
.plan-card.featured { border-color: rgba(145, 153, 255, 0.35); background: rgba(145, 153, 255, 0.07); }

.plan-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.plan-card.featured .plan-label { color: var(--accent); }
.plan-name { font-size: 17px; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; letter-spacing: -0.01em; }
.plan-desc { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* ── Highlight rows (privacy §3) ──────────────────────────── */
.highlight-row {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 16px 0; border-bottom: 1px solid var(--border-soft);
}
.highlight-row:last-child { border-bottom: none; }
.highlight-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 9px;
  box-shadow: 0 0 10px rgba(145, 153, 255, 0.6);
}
.highlight-dot.aqua { background: var(--accent-bright); }

/* ── Divider ──────────────────────────────────────────────── */
.section-divider { border: none; border-top: 1px solid var(--border-soft); margin: 0 0 56px; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 30px 34px;
  margin-top: 56px;
}
.contact-card h2 { font-size: 18px; font-weight: 600; color: var(--text-strong); margin-bottom: 14px; letter-spacing: -0.01em; }
.contact-card p { font-size: 15px; margin-bottom: 8px; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
}
.footer__info p {
  margin: 0;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.4;
}
.footer__info p.footer__owner {
  opacity: 0.8;
}
footer a { font-size: 12px; color: var(--text-dim); transition: color 0.22s; }
footer a:hover { color: var(--accent); text-decoration: none; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 600px) {
  footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .footer__links {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }
}

/* ── i18n ─────────────────────────────────────────────────── */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="es"] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }

@media (max-width: 480px) {
  .page-wrap { padding: 0 16px 90px; }
  header { 
    top: 12px;
    margin: 12px 0 48px; 
    padding: 10px 18px; 
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
