/* ---------- Franja legal bajo el pie (todas las páginas) ---------- */
.legal-bar { background: var(--color-navy-dark, #131d30); color: #aeb8cb; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--font-sans); font-size: 12px; line-height: 1.5; }
.legal-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.legal-bar .lb-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.legal-bar a, .legal-bar .lb-cookie { color: #cfd6e3; text-decoration: none; letter-spacing: .3px; transition: color .2s; }
.legal-bar a:hover, .legal-bar .lb-cookie:hover { color: var(--color-gold-light, #c9973f); }
.legal-bar .lb-cookie { background: none; border: 0; border-bottom: 1px solid rgba(201,151,63,.55); padding: 0 0 1px; margin: 0; font: inherit; cursor: pointer; color: var(--color-gold-light, #c9973f); }
.legal-bar .lb-cookie:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 700px) { .legal-bar .container { flex-direction: column; text-align: center; justify-content: center; } .legal-bar .lb-links { justify-content: center; gap: 8px 18px; } }

/* ---------- Páginas legales ---------- */
.lg-doc .container { max-width: 860px; }
.lg-doc h2 { font-size: 22px; margin: 38px 0 12px; }
.lg-doc p, .lg-doc li { font-size: 15.5px; line-height: 1.75; color: var(--color-text, #333); }
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul { margin: 0 0 16px; padding-left: 22px; }
.lg-doc li { margin-bottom: 6px; }
.lg-doc a { color: var(--color-gold-dark, #8f6624); text-decoration: underline; text-underline-offset: 2px; }
.lg-doc code { background: #f3efe6; padding: 1px 6px; border-radius: 3px; font-size: 13px; }
.lg-doc .lg-updated { font-size: 13px; color: var(--color-text-light, #777); margin-bottom: 8px; }
.lg-table { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--color-border, #e3dccd); border-radius: 4px; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.lg-table th { background: var(--color-cream, #f7f3ea); color: var(--color-navy, #1c2b45); text-align: left; font-weight: 600; }
.lg-table th, .lg-table td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--color-border, #e3dccd); line-height: 1.55; }
.lg-table tr:last-child td { border-bottom: 0; }

/* ---------- Banner y panel de cookies ---------- */
.ck-banner { position: fixed; right: 20px; bottom: 20px; z-index: 9998; width: min(440px, calc(100vw - 40px)); background: var(--color-navy, #1c2b45); color: #fff; border-top: 3px solid var(--color-gold, #b3812f); border-radius: 4px; box-shadow: 0 14px 44px rgba(10,16,30,.4); padding: 22px 22px 18px; font-family: var(--font-sans); animation: ckin .35s ease; }
@keyframes ckin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ck-banner h2 { font-family: var(--font-serif); color: #fff; font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.ck-banner p { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: #cfd6e3; }
.ck-banner p a { color: var(--color-gold-light, #c9973f); text-decoration: underline; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-btn { flex: 1 1 auto; font: 600 12px/1 var(--font-sans); letter-spacing: 1px; text-transform: uppercase; padding: 13px 16px; border-radius: 2px; cursor: pointer; border: 1px solid transparent; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.ck-btn.gold { background: var(--color-gold, #b3812f); color: #fff; }
.ck-btn.gold:hover { background: var(--color-gold-light, #c9973f); }
.ck-btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.ck-btn.line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.ck-link { display: block; width: 100%; margin-top: 12px; background: none; border: 0; color: #cfd6e3; font: 12px var(--font-sans); text-decoration: underline; cursor: pointer; text-align: center; }
.ck-link:hover { color: #fff; }
.ck-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(10,16,30,.62); padding: 16px; }
.ck-modal.open { display: flex; }
.ck-panel { background: #fff; color: var(--color-text, #333); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 4px; border-top: 3px solid var(--color-gold, #b3812f); padding: 26px 26px 22px; font-family: var(--font-sans); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.ck-panel h2 { font-size: 22px; margin: 0 0 8px; }
.ck-panel > p { font-size: 13.5px; line-height: 1.6; margin: 0 0 16px; color: var(--color-text-light, #666); }
.ck-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--color-border, #e3dccd); }
.ck-cat b { display: block; font-size: 14px; color: var(--color-navy, #1c2b45); margin-bottom: 3px; }
.ck-cat span { display: block; font-size: 12.5px; line-height: 1.5 !important; color: var(--color-text-light, #666); }
.ck-sw { position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin-top: 2px; }
.ck-sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ck-sw i { position: absolute; inset: 0; background: #c8cdd6; border-radius: 24px; transition: background .2s; }
.ck-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ck-sw input:checked + i { background: var(--color-gold, #b3812f); }
.ck-sw input:checked + i::after { transform: translateX(20px); }
.ck-sw input:disabled { cursor: not-allowed; } .ck-sw input:disabled + i { opacity: .55; }
.ck-sw input:focus-visible + i { outline: 2px solid var(--color-navy, #1c2b45); outline-offset: 2px; }
.ck-panel .ck-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border, #e3dccd); }
.ck-panel .ck-btn.line { color: var(--color-navy, #1c2b45); border-color: var(--color-navy, #1c2b45); }
.ck-panel .ck-btn.line:hover { background: var(--color-cream, #f7f3ea); }
@media (max-width: 560px) { .ck-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px; } .ck-btn { flex: 1 1 100%; } }
