/* ==========================================================================
   Avodah — páginas legales (aviso de privacidad, términos, envíos)
   ========================================================================== */
.legal-progress { position: fixed; left: 0; top: 0; z-index: 70; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--olive-700); }
.legal-head .page-title { max-width: 760px; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta .ico { font-size: 16px; }
.legal-draft { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 1.5; }
.legal-draft .ico { font-size: 20px; flex: none; margin-top: 1px; }
.legal-tabs { margin-top: 26px; }
.legal-tabs a { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(23,34,26,.08); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: var(--space-section); }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc p { margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc li { counter-increment: toc; }
.toc ol a { display: block; margin-left: -2px; padding: 7px 12px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--text); transition: color .15s, border-color .15s, background .15s; }
.toc ol a::before { content: counter(toc) ". "; color: var(--muted); }
.toc ol a:hover { color: var(--ink); background: var(--field); }
.toc ol a.is-on { border-left-color: var(--olive-700); color: var(--olive-700); font-weight: 700; }
.toc__actions { display: grid; gap: 8px; margin-top: 22px; }
.toc__actions .btn { height: 40px; font-size: 13.5px; }

.prose { max-width: 760px; counter-reset: sec; font-size: 16px; line-height: 1.75; color: var(--text); }
.prose > section { scroll-margin-top: 96px; padding-bottom: 14px; }
.prose > section + section { padding-top: 26px; border-top: 1px solid var(--line); }
.prose h2 { counter-increment: sec; display: flex; gap: 12px; margin: 0 0 12px; font: 800 22px/1.25 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.prose h2::before { content: counter(sec); display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--olive-100); color: var(--olive-700); font-size: 15px; }
.prose h3 { margin: 22px 0 8px; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--olive-700); }
.prose a { color: var(--olive-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; margin: 6px 0 18px; border-collapse: collapse; font-size: 14.5px; }
.prose th { padding: 10px 10px 10px 0; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.prose td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { font-weight: 700; color: var(--ink); }
.callout { display: flex; gap: 12px; margin: 6px 0 18px; padding: 16px 18px; border-radius: 14px; background: var(--sand); font-size: 15px; line-height: 1.6; }
.callout .ico { flex: none; font-size: 20px; color: var(--olive-700); margin-top: 3px; }
.callout--info { background: var(--info-bg); color: var(--info); }
.callout--info .ico { color: var(--info); }
.fill { padding: 1px 7px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: .92em; white-space: nowrap; }
.legal-foot { margin-top: 30px; padding: 24px; border-radius: 18px; background: var(--hero-bg); font-size: 15px; }
.legal-foot b { display: block; margin-bottom: 4px; color: var(--ink); }

@media (max-width: 960px) {
	.legal { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
	.toc { position: static; max-height: none; }
	.toc details > summary { cursor: pointer; }
	.toc__actions { display: none; }
}
@media (max-width: 600px) {
	.prose { font-size: 15.5px; }
	.prose h2 { font-size: 19px; }
	.prose table { font-size: 13.5px; }
}
@media print {
	.topbar, .site-header, .footer, .fabs, .toc, .legal-tabs, .legal-progress, .toasts, .chat, .alerts { display: none !important; }
	.legal { display: block; padding: 0; }
	.page-head { background: none; padding: 0 0 12px; }
	.prose { max-width: none; font-size: 11pt; }
	.prose a { color: inherit; }
}
