/* the legal pages (Spanish and English): one readable column on the studio's paper.
   Self-contained: animario.com serves /legal/ and the fonts, not the app's stylesheet (/ui/app.css leads to
   app.animario.com, which the page's CSP refuses), so the tokens, the faces, the base and the paper panel are here,
   as the app has them. */

@font-face { font-family: Archivo; src: url("/ui/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --pulp: #d1ccc2;
  --pulp-shade: #a9a296;
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --white: #fffdf8;
  --ink: #1d1a16;
  --ink-2: #4e473e;
  --ink-3: #6f665a;
  --rule-strong: #1d1a16;
  --next: #ff8a3d;
  --f-ui: Archivo, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--pulp); color: var(--ink); font: 400 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--ink); }
body {
  margin: 0; min-height: 100vh; padding: 32px 16px 64px;
  /* the fibre of moulded pulp, barely there */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .15 0 0 0 .17 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--next); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; font-stretch: 70%; line-height: .98; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
h2 { font-size: 22px; font-weight: 800; font-stretch: 72%; line-height: 1.05; margin: 0 0 10px; text-wrap: balance; }
code { font: 600 .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
/* the paper panel */
.label { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; }

main.doc { max-width: 720px; margin: 0 auto; padding: 28px 28px 36px; }
main.doc h1 { margin: 0 0 4px; }
main.doc .meta { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }
main.doc h2 { font-size: 19px; margin: 26px 0 8px; }
main.doc p, main.doc li { line-height: 1.6; max-width: 68ch; }
main.doc ul { padding-left: 20px; }
main.doc a { color: var(--ink); text-underline-offset: 2px; }
main.doc .back { display: inline-block; margin-bottom: 16px; }

/* the top of a legal page: the way back and the language switch («ES · EN», ui/sitio/idioma.js keeps the choice) */
main.doc .doc-cab { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
main.doc .doc-cab .back { margin-bottom: 0; }
.idioma { display: inline-flex; align-items: center; font: 700 13px/1 var(--f-ui); letter-spacing: .06em; white-space: nowrap; }
.idioma a, .idioma-actual { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 32px; padding: 0 6px; border-radius: 6px; }
main.doc .idioma a { color: var(--ink-2); text-decoration: none; }
main.doc .idioma a:hover { color: var(--ink); background: var(--paper-2); }
.idioma-actual { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.idioma-sep { color: var(--ink-3); padding: 0 1px; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* the English pages say which version prevails */
main.doc .aviso { margin: 0 0 22px; padding: 12px 14px; max-width: none; background: var(--white); border: 1px dashed var(--ink-2); border-radius: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
