/* venio · the quiet pages: privacidad, términos, soporte, 404.
   Tokens are copied from prototype/tokens.css (v1.3); change them there first. */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/SchibstedGrotesk-Regular.ttf") format("truetype"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/SchibstedGrotesk-Medium.ttf") format("truetype"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/SchibstedGrotesk-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/SchibstedGrotesk-ExtraBold.ttf") format("truetype"); }

:root {
  --ink: #1B1B1F;
  --slate: #6E6E78;          /* 4.9:1 on paper; never on mist */
  --mist: #F1F0F4;
  --paper: #FFFFFF;
  --border: #E7E5EC;
  --orange: #FF7A3D;         /* fill only, never text */
  --orange-text: #C2410C;
  --purple-link: #7C42C9;
  --font-ui: "Schibsted Grotesk", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 48px; --s10: 64px;
  --r-sm: 8px; --r-md: 12px; --r-pill: 999px;
  --dur-fast: 120ms; --dur-base: 200ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --measure: 68ch;
  --gutter: 16px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s7); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---------- links and focus ---------- */
a { color: var(--purple-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--purple-link); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -64px;
  background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none; z-index: 10;
}
.skip:focus { top: var(--s3); }

/* ---------- frame ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }

.draft-band {
  background: var(--mist);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.draft-band .wrap { padding-top: var(--s3); padding-bottom: var(--s3); }
.draft-band strong { font-weight: 600; }

.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding-top: var(--s6); padding-bottom: var(--s6);
}
.home {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 44px; color: var(--ink); text-decoration: none;
}
.home img { width: 32px; height: 32px; border-radius: var(--r-sm); display: block; }
.home span { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.head-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none;
}
.head-link:hover { text-decoration: underline; text-underline-offset: 3px; }

main { flex: 1 0 auto; }

/* ---------- the document ---------- */
.doc-top { padding-top: var(--s10); padding-bottom: var(--s9); border-bottom: 1px solid var(--border); }
.doc-top .kicker {
  font-size: 15px; font-weight: 600; color: var(--orange-text); margin: 0 0 var(--s4);
}
h1 {
  font-weight: 800;
  font-size: clamp(44px, 4.2vw + 24px, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.lede { font-size: 21px; line-height: 1.45; max-width: 40ch; margin: var(--s6) 0 0; }
.meta { font-size: 15px; color: var(--slate); margin: var(--s5) 0 0; }

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s9);
  padding-top: var(--s9);
  padding-bottom: var(--s10);
}
@media (min-width: 1080px) {
  .doc { grid-template-columns: 240px minmax(0, var(--measure)); gap: var(--s10); padding-top: var(--s10); }
  .toc { position: sticky; top: var(--s7); align-self: start; max-height: calc(100svh - 64px); overflow-y: auto; }
}

.toc h2 { font-size: 15px; font-weight: 600; color: var(--slate); margin: 0 0 var(--s2); letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.toc li { border-bottom: 1px solid var(--border); }
.toc a {
  display: flex; align-items: center; min-height: 44px; padding: var(--s2) 0;
  color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35;
}
.toc a:hover { color: var(--purple-link); }
@media (max-width: 1079px) {
  .toc ol { columns: 2 280px; column-gap: var(--s7); border-top: 0; }
  .toc li { break-inside: avoid; }
  .toc li:first-child { border-top: 1px solid var(--border); }
}

.prose { max-width: var(--measure); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em;
  margin: var(--s9) 0 var(--s4); padding-top: var(--s7); border-top: 1px solid var(--border);
}
.prose > h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin: var(--s7) 0 var(--s2); }
.prose p { margin: 0 0 var(--s4); }
.prose ul, .prose ol { margin: 0 0 var(--s4); padding-left: 1.25em; }
.prose li { margin: 0 0 var(--s2); padding-left: var(--s1); }
.prose li::marker { color: var(--slate); }
.prose strong { font-weight: 600; }
.prose .intro { font-size: 20px; line-height: 1.5; }

/* The places a lawyer still has to write. Visible on purpose. */
mark.pendiente {
  background: var(--mist);
  color: var(--ink);
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  text-decoration: underline dashed var(--slate);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- soporte ---------- */
.contact { margin: 0 0 var(--s4); }
.contact a {
  font-weight: 600; font-size: clamp(26px, 2.4vw + 14px, 40px); letter-spacing: -0.02em;
  line-height: 1.15; display: inline-block; padding: var(--s1) 0;
}
.path {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin: var(--s2) 0 var(--s5);
}
.path span {
  padding: var(--s1) var(--s3); background: var(--mist); border-radius: var(--r-pill);
  font-weight: 500; font-size: 16px; line-height: 1.5;
}
.path .sep { background: none; padding: 0; color: var(--slate); }
.glyph { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.quote { font-weight: 500; }

.faq { margin: 0; padding: 0; border-top: 1px solid var(--border); }
.faq dt { font-weight: 600; font-size: 20px; line-height: 1.3; padding-top: var(--s6); margin: 0 0 var(--s2); }
.faq dd { margin: 0; padding-bottom: var(--s6); border-bottom: 1px solid var(--border); }
.faq dd p:last-child { margin-bottom: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: var(--s3) var(--s6); border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.button:hover { text-decoration: none; }
.button:active { transform: scale(0.98); }

/* ---------- 404 ---------- */
.lost { padding-top: var(--s10); padding-bottom: var(--s10); }
.lost h1 { max-width: 16ch; }
.lost .button { margin-top: var(--s8); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--border); margin-top: var(--s10); }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s2) var(--s6); padding-top: var(--s5); padding-bottom: var(--s7);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--s6); }
.site-foot a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: 15px; text-decoration: none;
}
.site-foot a:hover, .site-foot a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.site-foot small { font-size: 15px; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .draft-band { border-bottom: 1px solid var(--ink); }
  .toc, .site-foot nav, .skip { display: none; }
  .doc { display: block; }
  body { font-size: 12pt; }
}
