/* Ultramedia legal pages: privacidad, términos. Same tokens as the home page. */
:root { --bg: #f7f7f5; --surface: #ebebe8; --ink: #000; --muted: #5f5f5b; --accent: #2f4cda; --line: rgba(0,0,0,.12); --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.7 "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 20; }
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar__in { width: min(100% - 48px, 1100px); margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; text-decoration: none; }
.logo i { width: 20px; height: 20px; border-radius: 50%; border: 6px solid var(--accent); }
.back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 15px; transition: transform 160ms var(--ease-out); }
.back:active { transform: scale(0.97); }
.page { width: min(100% - 48px, 1100px); margin: 0 auto; padding: 64px 0 96px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 12px; font-weight: 500; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.toc a:hover { background: var(--surface); color: var(--ink); }
h1 { font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 8px; max-width: 62ch; }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 40px; }
h2 { font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
section:first-of-type h2 { border-top: 0; padding-top: 0; margin-top: 0; }
p, li { max-width: 68ch; text-wrap: pretty; }
ul { padding-left: 20px; }
li + li { margin-top: 6px; }
.note { background: var(--surface); border-radius: 12px; padding: 16px 20px; font-size: 15px; }
.foot { border-top: 1px solid var(--line); }
.foot__in { width: min(100% - 48px, 1100px); margin: 0 auto; padding: 32px 0 48px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .page { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; } .toc { position: static; } }
.toc summary { font-weight: 500; margin-bottom: 12px; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
@media (min-width: 861px) { .toc summary { pointer-events: none; } }
@media (max-width: 860px) {
  .page { display: flex; flex-direction: column; }
  .toc { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
  .toc summary { margin: 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
  .toc summary::after { content: "+"; font-size: 20px; }
  .toc details[open] summary::after { content: "–"; }
  .toc ol { padding-bottom: 12px; }
}
