/* Estilos de las páginas legales: mismos tokens que la portada, formato de documento. */
:root {
  --ground: #0f1411; --ink: #f2e8d5; --muted: #b5ad9c; --line: #2c352e; --ember: #e8913f;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --ground: #f6f0e4; --ink: #1b221d; --muted: #5c5a50; --line: #ddd3c0; --ember: #b4601d; color-scheme: light; }
}
:root[data-theme="light"] { --ground: #f6f0e4; --ink: #1b221d; --muted: #5c5a50; --line: #ddd3c0; --ember: #b4601d; color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.wrap { max-width: 46rem; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .9rem; max-width: 72rem; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: .12em; }
.brand span { font-size: .6rem; letter-spacing: .5em; color: var(--muted); margin-top: .3rem; }
header a.back { font-size: .95rem; color: var(--muted); text-decoration: none; }
header a.back:hover { color: var(--ink); }

main .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.label { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ember); font-weight: 500; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1.08; margin: .6rem 0 .4rem; text-wrap: balance; }
.updated { color: var(--muted); font-size: .9rem; margin: 0 0 2.5rem; }
h2 { font-family: var(--display); font-weight: 500; font-size: 1.7rem; line-height: 1.2; margin: 2.5rem 0 .6rem; text-wrap: balance; }
p, li { color: var(--ink); }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .35rem; }
dl.id { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1rem; padding: 1.25rem 0; border-block: 1px solid var(--line); }
dl.id dt { color: var(--muted); }
dl.id dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.id { grid-template-columns: 1fr; gap: .1rem; } dl.id dd { margin-bottom: .6rem; } }
.pending { color: var(--ember); font-style: italic; }

footer { border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; max-width: 72rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer a { color: var(--muted); }
footer a[aria-current] { color: var(--ink); }
