/* MYTIQ v1.1 — Estilos legales (usa variables de styles.css) */

.legal-body { background: var(--bg-deep); }

.legal { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); min-height: calc(100vh - 200px); }
.legal__container { max-width: 860px; margin: 0 auto; }

.legal__breadcrumb { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); margin-bottom: 2rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.legal__breadcrumb a { color: var(--text-muted); }
.legal__breadcrumb a:hover { color: var(--accent); }

.legal__meta { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal__tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; padding: 0.3rem 0.75rem; border: 1px solid var(--accent); border-radius: 100px; }
.legal__title { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; line-height: 1.05; }
.legal__subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1.5rem; max-width: 60ch; }
.legal__dates { font-size: 0.85rem; color: var(--text-dim); font-family: var(--font-mono); line-height: 1.7; }

.legal__toc { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 2rem; margin-bottom: 3rem; }
.legal__toc h2 { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }
.legal__toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc-counter; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.4rem 1.5rem; }
.legal__toc li { counter-increment: toc-counter; position: relative; padding-left: 2rem; font-size: 0.92rem; line-height: 1.4; }
.legal__toc li::before { content: counter(toc-counter, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 500; }
.legal__toc a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s var(--ease); }
.legal__toc a:hover { color: var(--accent); }

.legal__actions { margin-bottom: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.legal__alert { background: rgba(139, 92, 246, 0.08); border-left: 3px solid var(--magic); padding: 1.25rem 1.5rem; border-radius: 6px; margin-bottom: 2rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.55; }
.legal__alert strong { color: var(--text-primary); }

.legal__section { margin-bottom: 3rem; scroll-margin-top: 100px; }
.legal__section h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 1rem; line-height: 1.2; padding-top: 1rem; border-top: 1px solid var(--border); }
.legal__section h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; color: var(--text-primary); margin: 1.5rem 0 0.75rem; letter-spacing: -0.01em; }
.legal__section p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; font-size: 0.98rem; }
.legal__section p strong, .legal__section li strong { color: var(--text-primary); font-weight: 700; }
.legal__section a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal__section a:hover { color: var(--accent-glow); }

.legal__section ul, .legal__section ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-secondary); }
.legal__section ul li, .legal__section ol li { margin-bottom: 0.6rem; line-height: 1.65; font-size: 0.97rem; }
.legal__section ul { list-style: none; padding-left: 1.5rem; }
.legal__section ul li { position: relative; padding-left: 1rem; }
.legal__section ul li::before { content: '→'; position: absolute; left: -0.5rem; color: var(--accent); font-weight: 600; }
.legal__section ol { list-style: decimal; padding-left: 1.75rem; }
.legal__section ol li::marker { color: var(--accent); font-family: var(--font-mono); font-weight: 600; }

.legal__highlight { background: rgba(45, 212, 191, 0.06); border-left: 3px solid var(--accent); padding: 1rem 1.25rem; border-radius: 4px; margin: 1.5rem 0; font-size: 0.95rem; line-height: 1.55; }

.legal__table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border-radius: 8px; border: 1px solid var(--border); }
.legal__table { width: 100%; border-collapse: collapse; background: var(--bg-surface); font-size: 0.9rem; }
.legal__table thead { background: var(--bg-elevated); }
.legal__table th { text-align: left; padding: 0.85rem 1rem; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); font-weight: 700; border-bottom: 1px solid var(--border-strong); }
.legal__table td { padding: 0.85rem 1rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.legal__table tr:last-child td { border-bottom: none; }
.legal__table tr:hover td { background: var(--bg-elevated); }

.legal__section code { font-family: var(--font-mono); font-size: 0.85rem; background: var(--bg-deep); color: var(--accent); padding: 0.15em 0.4em; border-radius: 3px; border: 1px solid var(--border); }

.legal__footer-note { margin-top: 4rem; padding: 1.5rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.legal__footer-note p { margin-bottom: 0.5rem; font-size: 0.85rem; }
.legal__footer-note p:last-child { margin-bottom: 0; }

.site-footer--minimal { padding-top: 0; }
.site-footer--minimal .site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0; }
.site-footer--minimal nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer--minimal nav a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; }
.site-footer--minimal nav a:hover { color: var(--accent); }

.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 560px; margin: 0 auto; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 1.5rem 1.75rem; z-index: 9999; animation: cookieSlideUp 0.4s var(--ease-out); }
@keyframes cookieSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1.25rem; }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn { flex: 1; min-width: 120px; justify-content: center; font-size: 0.85rem; padding: 0.7rem 1rem; }
.cookie-banner__prefs { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: none; }
.cookie-banner__prefs.is-open { display: block; }
.cookie-pref { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.cookie-pref:last-child { border-bottom: none; }
.cookie-pref input[type="checkbox"] { margin-top: 0.2rem; accent-color: var(--accent); width: 18px; height: 18px; cursor: pointer; }
.cookie-pref input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-pref__body { flex: 1; }
.cookie-pref__name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.15rem; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.cookie-pref__required { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.cookie-pref__desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }

@media (max-width: 700px) {
  .legal__toc ol { grid-template-columns: 1fr; }
  .legal__table { font-size: 0.85rem; }
  .legal__table th, .legal__table td { padding: 0.7rem 0.75rem; }
  .cookie-banner { left: 12px; right: 12px; padding: 1.25rem 1.25rem; bottom: 12px; }
  .cookie-banner__actions .btn { min-width: unset; }
  .site-footer--minimal .site-footer__bottom { flex-direction: column; text-align: center; }
  .site-footer--minimal nav { justify-content: center; }
}
