/* Legal + cookies — Finanzas Empresariales (Apex Pulse) */
.legal-page { padding-top: 3rem; padding-bottom: 4rem; min-height: 70vh; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-family: var(--font-head); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; color: var(--ink); }
.legal-meta { font-size: 0.875rem; color: var(--muted-light); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--ink); }
.legal-page h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 0.5rem; color: var(--ink); }
.legal-page p, .legal-page li { font-size: 0.9375rem; color: var(--muted-light); margin-bottom: 0.75rem; line-height: 1.75; }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page a { color: #15803D; font-weight: 500; }
.legal-box { padding: 1.25rem; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); margin: 1.5rem 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.legal-nav a { padding: 0.4rem 0.875rem; font-size: 0.8125rem; font-weight: 600; background: var(--white); border: 1px solid var(--border-light); border-radius: 999px; color: var(--muted-light); }
.legal-nav a:hover, .legal-nav a.active { border-color: #15803D; color: #15803D; }
.legal-back { display: inline-block; font-weight: 600; color: #15803D; margin-bottom: 1.5rem; }
.legal-sitemap { list-style: none; padding-left: 0; }
.legal-sitemap li { padding: 0.65rem 0; border-bottom: 1px solid var(--border-light); }
.legal-sitemap li:last-child { border-bottom: none; }
.legal-sitemap a { font-weight: 600; }
.legal-sitemap .link-btn { background: none; border: none; font: inherit; font-weight: 600; color: #15803D; cursor: pointer; padding: 0; text-decoration: underline; }

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; padding: 1.25rem; background: rgba(3, 7, 18, 0.98); border-top: 1px solid var(--border); transform: translateY(100%); transition: transform 0.4s; }
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong { display: block; color: #fff; margin-bottom: 0.25rem; }
.cookie-text p { font-size: 0.875rem; color: var(--muted); margin: 0; }
.cookie-text a { color: var(--lime); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-icon { font-size: 1.75rem; }

.cookie-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: 0.3s; }
.cookie-modal.open { opacity: 1; visibility: visible; }
.cookie-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.cookie-modal-panel { position: relative; width: min(480px,100%); max-height: 90vh; overflow-y: auto; padding: 2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.cookie-modal-panel h2 { font-family: var(--font-head); margin-bottom: 0.5rem; }
.cookie-modal-intro { font-size: 0.875rem; color: var(--muted-light); margin-bottom: 1rem; }
.cookie-modal-close { position: absolute; top: 1rem; right: 1rem; border: none; background: var(--paper); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.cookie-option { padding: 1rem; margin-bottom: 0.5rem; border: 1px solid var(--border-light); border-radius: 10px; }
.cookie-option-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.cookie-option p { font-size: 0.8125rem; color: var(--muted-light); margin: 0; }
.cookie-tag { font-size: 0.6875rem; color: #15803D; font-weight: 700; }
.cookie-modal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.cookie-modal-panel .btn-line { background: transparent; color: #15803D; border: 2px solid #15803D; }

.map-cookie-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; padding: 1.5rem; text-align: center; background: var(--surface); }
.map-cookie-placeholder p { color: var(--muted); margin-bottom: 1rem; font-size: 0.875rem; }

.compliance-bar { padding: 0.875rem 0; text-align: center; font-size: 0.75rem; }

.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; margin: 1rem 0; }
.cookie-table th, .cookie-table td { padding: 0.625rem; border: 1px solid var(--border-light); text-align: left; }
.cookie-table th { background: var(--paper); }

@media (max-width: 768px) { .cookie-actions .btn { width: 100%; } }
