/* ─────────────────────────────────────────────────────────────────
   PDF Studio — Páginas legales (Términos & Privacidad)
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg:         #0f0f11;
  --surface:    #17171a;
  --surface2:   #1e1e23;
  --border:     #2a2a31;
  --border-hi:  #3d3d48;
  --accent:     #e8ff47;
  --accent-dim: #b8cc2e;
  --text:       #e8e8ec;
  --text-dim:   #7a7a8a;
  --text-muted: #45454f;
  --radius:     6px;
  --radius-lg:  12px;
  --font-ui:    'Syne', sans-serif;
  --font-mono:  'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Header ── */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo-icon { color: var(--accent); }
.logo strong { color: var(--accent); }

.doc-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Main ── */
.doc-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ── Hero ── */
.doc-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.doc-hero__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.doc-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.doc-hero__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Layout doc ── */
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── TOC ── */
.doc-toc {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.doc-toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.doc-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-toc__list a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: all 0.15s;
  line-height: 1.4;
}

.doc-toc__list a:hover {
  color: var(--text);
  background: var(--surface2);
}

.doc-toc__list a.active {
  color: var(--accent);
  background: rgba(232,255,71,0.08);
}

/* ── Content ── */
.doc-content {
  min-width: 0;
}

.doc-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.4s ease both;
}

.doc-section:last-child {
  border-bottom: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.doc-section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
  scroll-margin-top: 100px;
}

.doc-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  margin: 20px 0 10px;
  letter-spacing: -0.01em;
}

.doc-section p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 14px;
}

.doc-section p:last-child { margin-bottom: 0; }

.doc-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.doc-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 4px;
}

.doc-section ul li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 2px;
}

.doc-section a {
  color: var(--accent);
  text-decoration: none;
}

.doc-section a:hover { text-decoration: underline; }

/* ── Highlight box ── */
.doc-highlight {
  display: flex;
  gap: 14px;
  background: rgba(232,255,71,0.06);
  border: 1px solid rgba(232,255,71,0.2);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.doc-highlight__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.doc-highlight strong { color: var(--text); }

/* ── Tabla ── */
.doc-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.doc-table th {
  background: var(--surface2);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.doc-table td {
  padding: 12px 16px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Contacto ── */
.doc-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

.doc-contact__icon { font-size: 18px; }
.doc-contact a { color: var(--accent); text-decoration: none; }
.doc-contact a:hover { text-decoration: underline; }

/* ── Footer ── */
.doc-footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.doc-footer__logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dim);
}

.doc-footer__logo strong { color: var(--accent); }

.doc-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.doc-footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.doc-footer__links a:hover { color: var(--accent); }

.doc-footer__copy {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .doc-main { padding: 0 20px 60px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-hero { padding: 40px 0 32px; }
}
