/* ----------------------------------------------------------------------------
   Attic — legal pages (Aviso de Privacidad / Términos y Condiciones)
   Mirrors the landing design system: Hanken Grotesk + Geist Mono, flat surfaces,
   single pink accent, hairline borders, generous whitespace. Light only.
---------------------------------------------------------------------------- */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #1a1a18;
  --text: #3f3f3a;
  --muted: #6a6a65;
  --faint: #9d9d97;
  --hair: rgba(22, 22, 20, 0.08);
  --hair-strong: rgba(22, 22, 20, 0.14);
  --accent: #ff3c68;
  --accent-ink: #be2a4e;
  --accent-soft: rgba(255, 60, 104, 0.09);
  --footer: #0c0c0e;
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }

.mono-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
}

/* ---- nav ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  z-index: 50;
}
.nav-in {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 26px; height: 26px; object-fit: contain; }
.brand span { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: color 0.15s;
}
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

/* ---- layout ---- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 128px 24px 96px; }
.doc-head { max-width: 760px; margin: 0 0 8px; }
.doc-head h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
  color: var(--ink); margin: 16px 0 0;
}
.doc-head h1 em { font-style: normal; color: var(--accent); }
.doc-head .entity { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.doc-meta {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: 13px; color: var(--muted);
}
.doc-meta .pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--hair); background: var(--surface);
  border-radius: 999px; padding: 5px 12px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.grid { display: grid; gap: 48px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 1000px) { .grid { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }

/* ---- table of contents ---- */
.toc { display: none; }
@media (min-width: 1000px) {
  .toc {
    display: block; position: sticky; top: 104px; align-self: start;
    max-height: calc(100vh - 140px); overflow: auto;
  }
}
.toc .mono-label { display: block; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: flex; gap: 10px; padding: 7px 0 7px 14px; margin-left: -2px;
  color: var(--muted); text-decoration: none; font-size: 13.5px; line-height: 1.35;
  border-left: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.toc a:hover { color: var(--ink); border-color: var(--hair-strong); }
.toc a .n { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 1px; }

/* ---- prose ---- */
.prose { max-width: 72ch; }
.prose h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  margin: 44px 0 0; padding-top: 44px; border-top: 1px solid var(--hair);
  scroll-margin-top: 96px;
}
.prose h2.lead { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-ink); margin: 28px 0 10px;
}
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.prose li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.55;
}
.prose a {
  color: var(--accent-ink); text-decoration: none;
  border-bottom: 1px solid rgba(190, 42, 78, 0.3);
}
.prose a:hover { border-color: var(--accent-ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .callout {
  margin: 0 0 16px; background: var(--accent-soft);
  border: 1px solid rgba(255, 60, 104, 0.14); border-radius: 12px;
  padding: 14px 16px; font-size: 14.5px; color: var(--ink);
}
.prose .legal-emphasis { font-weight: 600; color: var(--ink); }

.endnote { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hair); }
.endnote p { margin: 0 0 8px; color: var(--muted); }
.endnote .copy { font-size: 13px; color: var(--faint); }

/* ---- footer ---- */
.foot { background: var(--footer); color: #fff; padding: 56px 0; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand img { width: 26px; height: 26px; object-fit: contain; }
.foot-brand span { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: #fff; }
.foot .blurb { margin: 16px 0; max-width: 42ch; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.foot a.mail { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.15s; }
.foot a.mail:hover { color: var(--accent); }
.foot h4 {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.4); margin: 0 0 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.foot ul a:hover { color: #fff; }
.foot-bottom {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 640px) { .foot-bottom { flex-direction: row; } }

@media print {
  .nav, .foot { display: none; }
  .wrap { padding-top: 24px; }
}
