/* Páginas legales, 404 y enlaces para Instagram */

.doc { max-width: 780px; padding-block: 36px 24px; }
.doc h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin-bottom: 8px; }
.doc .doc__meta { color: var(--muted); font-size: .9375rem; margin-bottom: 26px; }
.doc h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.doc h3 { font-size: 1.0625rem; margin: 20px 0 6px; }
.doc p, .doc li { color: #26314A; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .tbl-wrap { margin: 12px 0 18px; }
.doc .tbl td, .doc .tbl th { white-space: normal; vertical-align: top; }
.doc__box { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--r); padding: 16px 18px; margin: 16px 0; }
.legal-missing { background: #FFF3C4; color: #7A4B00; border-radius: 6px; padding: 0 6px; font-weight: 600; }
.doc__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.doc__toc a { text-decoration: none; background: var(--neutral-soft); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .875rem; font-weight: 600; }
.doc__toc a[aria-current] { background: var(--brand); color: var(--brand-ink); }

/* hoja imprimible para familias */
.sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.sheet .line { border-bottom: 1px solid #222; display: inline-block; min-width: 220px; height: 1.2em; vertical-align: bottom; }
.sheet .box { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #222; border-radius: 3px; vertical-align: -3px; margin-right: 8px; }
@media print { .topbar, .foot, .no-print { display: none !important; } body { background: #fff; } .sheet { border: 0; padding: 0; } .doc { padding: 0; max-width: none; } }

/* 404 */
.nf { min-height: calc(100dvh - 64px); display: grid; place-items: center; text-align: center; padding: 40px 20px 60px; }
.nf__in { max-width: 520px; }
.nf__ball { width: 120px; height: 120px; margin: 0 auto 18px; animation: nf-bounce 2.4s ease-in-out infinite; }
.nf__code { font-size: clamp(4rem, 18vw, 6.5rem); font-weight: 800; letter-spacing: -.05em; color: var(--brand); line-height: 1; }
.nf h1 { font-size: 1.5rem; margin: 10px 0 8px; }
.nf p { color: var(--muted); margin-bottom: 22px; }
.nf__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@keyframes nf-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* enlaces (Instagram) */
.lk { max-width: 460px; margin: 0 auto; padding: 36px 20px 28px; text-align: center; }
.lk__mark { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 26px; background: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-2); }
.lk__mark svg { width: 56px; height: 56px; }
.lk h1 { font-size: 1.625rem; }
.lk__claim { color: var(--muted); margin: 6px 0 24px; }
.lk__list { display: grid; gap: 12px; }
.lk__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); font-weight: 700; transition: transform .18s ease, box-shadow .2s ease; }
.lk__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.lk__btn small { display: block; color: var(--muted); font-weight: 500; font-size: .8125rem; }
.lk__btn--main { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.lk__btn--main small { color: inherit; opacity: .8; }
.lk__btn--gold { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lk__btn--gold small { color: inherit; opacity: .8; }
.lk__btn span.arrow { font-size: 1.25rem; opacity: .7; }
.lk__foot { margin-top: 28px; font-size: .8125rem; color: var(--muted); }
.lk__btn > span:first-child { text-align: left; }