/* Woozle · términos y privacidad (3.4.4, diseño nuevo desde cero; landing/legales.py arma el HTML).
   Igual que la portada: papel gris con puntitos, la barra de menú de Mac, el ícono de la app sobre el título en tipo
   oración, y el documento abierto en una ventana tipo app de notas (secciones a la izquierda, texto a la derecha).
   Nada de cielo, stickers ni cubos aquí: es para leer. Siempre de día. */
body.lg { background-color: #F4F4F6; background-image: radial-gradient(#D6DAE1 1.1px, transparent 1.3px); background-size: 22px 22px; }
.lg { --ink: #0B1526; --ink-2: #3E4A5E; --ink-3: #66718A; --line: rgba(11, 21, 38, .1); --blue: #2F7BF0; --ease: cubic-bezier(.2, .8, .2, 1); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: #FFFFFF; box-shadow: var(--win); }
.skip:focus { top: 10px; }

/* ---------- barra de menú (la de la portada) ---------- */
.lg-mb { position: sticky; top: 0; z-index: 20; height: 44px; background: rgba(246, 246, 248, .92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.lg-mb-in { display: flex; align-items: center; gap: 22px; max-width: 1120px; height: 100%; margin: 0 auto; padding-inline: max(18px, env(safe-area-inset-left, 0px)); }
.lg-mb-logo .logo { display: block; height: 19px; width: auto; color: var(--ink); }
.lg-mb nav { display: flex; gap: 20px; font-size: 14px; font-weight: 550; }
.lg-mb nav a { color: var(--ink-2); text-decoration: none; transition: color .2s; }
.lg-mb nav a:hover, .lg-mb nav a[aria-current="page"] { color: var(--ink); }
.lg-mb nav a[aria-current="page"] { font-weight: 700; }
.lg-mb-get { margin-left: auto; font-size: 14px; font-weight: 650; color: var(--blue); text-decoration: none; white-space: nowrap; }
.lg-mb-get:hover { text-decoration: underline; }

/* ---------- título ---------- */
.lg-hero { display: grid; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto; padding: 72px 20px 40px; }
.lg-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 14px 30px -14px rgba(16, 58, 140, .55); animation: lgIn .7s var(--ease) both, lgBob 5s ease-in-out .7s infinite alternate; }
.lg-hero h1 { margin-top: 22px; font: 650 clamp(40px, 6.4vw, 68px)/1.02 var(--sans); letter-spacing: -.045em; color: var(--ink); animation: lgIn .7s var(--ease) .06s both; }
.lg-sub { max-width: 34em; margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--ink-3); text-wrap: balance; animation: lgIn .7s var(--ease) .12s both; }
.lg-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; animation: lgIn .7s var(--ease) .18s both; }
.lg-meta span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; font: 500 12.5px/1 var(--mono); color: var(--ink-2); background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); }
.lg-meta svg { width: 14px; height: 14px; color: var(--blue); }
@keyframes lgIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes lgBob { to { transform: translateY(-5px) rotate(-3deg); } }

/* ---------- la ventana del documento ---------- */
.lg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 90px; }
.lg-win { border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(11, 21, 38, .12), 0 2px 4px rgba(11, 21, 38, .04), 0 40px 80px -40px rgba(11, 21, 38, .45); animation: lgIn .8s var(--ease) .22s both; }
.lg-wbar { position: sticky; top: 44px; z-index: 10; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-radius: 14px 14px 0 0; background: linear-gradient(#F7F8FA, #ECEFF3); border-bottom: 1px solid var(--line); }
.lg-wbar .lights { display: flex; gap: 7px; }
.lg-wbar .lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.lg-wbar .lights i:nth-child(2) { background: #FEBC2E; } .lg-wbar .lights i:nth-child(3) { background: #28C840; }
.lg-wbar b { flex: 1; text-align: center; margin-right: 52px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.lg-read { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.lg-read i { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; will-change: transform; }
.lg-wbody { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.lg-cap { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* el índice: a la izquierda, se queda mientras lees; una pastilla azul marca dónde vas */
.lg-side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; padding: 22px 14px 22px 16px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.lg-side-h { display: flex; justify-content: space-between; padding: 0 10px 10px; font: 500 11.5px/1 var(--mono); text-transform: lowercase; color: var(--ink-3); }
.lg-toc { position: relative; display: grid; gap: 2px; }
.lg-toc .pill { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 9px; background: #EAF2FE; box-shadow: inset 0 0 0 1px rgba(47, 123, 240, .25); opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), height .35s var(--ease), opacity .2s; pointer-events: none; }
.lg-toc a { position: relative; z-index: 1; display: flex; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); text-decoration: none; transition: color .2s, background .2s; }
.lg-toc a small { flex: none; padding-top: 1px; font: 500 11px/1.3 var(--mono); color: var(--ink-3); }
.lg-toc a:hover { background: #F4F6F9; }
.lg-toc a.on { color: #164FB0; font-weight: 600; }
.lg-toc a.on small { color: var(--blue); }
.lg-other { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); background: #F6F8FB; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.lg-other:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(47, 123, 240, .35); }
.lg-other svg { flex: none; width: 18px; height: 18px; color: var(--blue); }
.lg-other span { display: grid; font-size: 12px; color: var(--ink-3); }
.lg-other b { font-size: 14px; font-weight: 650; color: var(--ink); }

/* el texto */
.lg-art { min-width: 0; padding: 30px clamp(20px, 4.5vw, 64px) 46px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.lg-tldr { padding: 18px; border-radius: 14px; background: #F6F9FE; box-shadow: inset 0 0 0 1px rgba(47, 123, 240, .18); }
.lg-tldr-h { margin-bottom: 12px; font: 500 12px/1 var(--mono); color: #2F6FD8; }
.lg-short { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-short > div { display: flex; gap: 11px; padding: 12px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); }
.lg-short p { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.lg-short b { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.gi { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #FFFFFF; background: linear-gradient(#5CA0FF, #2F7BF0 60%, #1F63D6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 0 #1747A0; }
.gi svg { width: 17px; height: 17px; }
.gi.red { background: linear-gradient(#FF7B7F, #E5484D 60%, #C93439); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 0 #A1262A; }
.gi.ink { background: linear-gradient(#3B4454, #171D29 60%, #0D121B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 #04060A; }
.lg-art .lead { margin-top: 26px; font-size: 17px; color: var(--ink); }
.lg-sec { margin-top: 44px; scroll-margin-top: 96px; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font: 650 25px/1.2 var(--sans); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.lg-sec h2 small { font: 500 13px/1 var(--mono); color: var(--blue); }
.lg-sec h3 { margin: 22px 0 8px; font: 650 17px/1.3 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.lg-sec p + p, .lg-sec p + ul, .lg-sec ul + p, .lg-sec .tbl-wrap + p, .lg-sec .tbl-wrap + ul, .lg-sec .lg-acts + ul { margin-top: 12px; }
.lg-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.lg-sec li { position: relative; padding-left: 26px; }
.lg-sec li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 14px; border-radius: 5px; background: #EAF2FE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232F7BF0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.6 2.6L12 5.5'/%3E%3C/svg%3E") center / 11px no-repeat; transform: translateY(-2px); }
.lg-sec b { color: var(--ink); font-weight: 650; }
.lg-sec a, .lg-art .lead a, .lg-tpl a { color: #1F63D6; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lg-sec .caps { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; color: var(--ink); background: #FFF8DB; box-shadow: inset 0 0 0 1px rgba(181, 137, 0, .25); }
.lg-note { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: #F6F8FB; box-shadow: inset 0 0 0 1px var(--line); }
.lg-note svg { flex: none; width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
/* subir un poco al llegar, sin desvanecerse (lista anti hecho con IA) */
.lg-sec, .lg-tldr { transform: translateY(16px); transition: transform .6s var(--ease); }
.lg-sec.in, .lg-tldr.in { transform: none; }

/* tablas: en compu, tabla; en celular, cada renglón es una tarjeta */
.tbl-wrap { margin-top: 12px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.tbl th { padding: 10px 14px; text-align: left; font: 500 11.5px/1 var(--mono); color: var(--ink-3); background: #F6F8FB; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; color: var(--ink); }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: #FAFBFD; }

/* botones de acción (descargar, borrar, escribir) */
.lg-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lg-acts a { display: grid; gap: 4px; padding: 14px; border-radius: 13px; text-decoration: none; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -16px rgba(11, 21, 38, .45); transition: transform .25s var(--ease), box-shadow .25s; }
.lg-acts a:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(47, 123, 240, .35), 0 16px 26px -16px rgba(11, 21, 38, .45); }
.lg-acts .gi { margin-bottom: 6px; }
.lg-acts b { font-size: 14.5px; color: var(--ink); }
.lg-acts span:not(.gi) { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.lg-tpl { margin-top: 48px; padding-top: 18px; border-top: 1px dashed rgba(11, 21, 38, .18); font-size: 13.5px; color: var(--ink-3); }

/* ---------- pie (el de la portada) ---------- */
.lg-foot { border-top: 1px solid var(--line); background: #FFFFFF; }
.lg-foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; max-width: 1120px; margin: 0 auto; padding: 46px max(18px, env(safe-area-inset-left, 0px)) 54px; }
.lg-foot-brand .logo { display: block; height: 26px; width: auto; color: var(--ink); }
.lg-foot-brand p { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.lg-foot-brand .lg-indep { max-width: 26em; margin-top: 6px; font-size: 12.5px; }
.lg-foot-cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: end; gap: 48px; }
.lg-foot-cols div { display: grid; align-content: start; gap: 10px; }
.lg-foot-cols b { font-size: 14px; font-weight: 650; color: var(--ink); }
.lg-foot-cols a, .lg-foot-cols span { font-size: 14px; color: var(--ink-3); text-decoration: none; }
.lg-foot-cols a:hover { color: var(--ink); }

/* ---------- tableta y celular ---------- */
@media (max-width: 900px) {
  .lg-wbody { grid-template-columns: minmax(0, 1fr); }
  /* el índice se vuelve una tira que se desliza, pegada bajo la barra de la ventana */
  .lg-side { position: sticky; top: 84px; z-index: 5; max-height: none; overflow: visible; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .lg-side-h, .lg-other { display: none; }
  .lg-toc { display: flex; gap: 4px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; }
  .lg-toc::-webkit-scrollbar { display: none; }
  .lg-toc a { flex: none; white-space: nowrap; padding: 7px 10px; }
  .lg-sec { scroll-margin-top: 140px; }
  .lg-foot-in { grid-template-columns: minmax(0, 1fr); }
  .lg-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; gap: 26px; }
}
@media (max-width: 640px) {
  .lg-mb nav { gap: 14px; font-size: 13.5px; }
  .lg-mb nav a:first-child { display: none; }
  .lg-mb-get { font-size: 13.5px; }
  .lg-long { display: none; }
  .lg-hero { padding: 48px 18px 28px; }
  .lg-icon { width: 60px; height: 60px; border-radius: 15px; }
  .lg-sub { font-size: 16px; }
  .lg-wrap { padding-inline: 10px; }
  .lg-art { padding: 22px 18px 34px; font-size: 15.5px; }
  .lg-short { grid-template-columns: minmax(0, 1fr); }
  .lg-sec h2 { font-size: 22px; }
  .lg-acts { grid-template-columns: minmax(0, 1fr); }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 3px 0; border: 0; }
  .tbl td::before { content: attr(data-h); display: block; font: 500 11px/1.4 var(--mono); color: var(--ink-3); }
  .lg-wbar b { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lg *, .lg *::before { animation: none !important; transition: none !important; }
  .lg-sec, .lg-tldr { transform: none; }
}
