/* Enlaces legales del pie */
.csag-pie-legal { text-align: center; padding: 12px 15px; font-size: 14px; background: #2b2b2b; }
.csag-pie-legal a { color: #fff; margin: 0 10px; text-decoration: underline; display: inline-block; }
.csag-pie-legal.csag-dentro { background: transparent; padding: 8px 0 0; }
.csag-pie-legal.csag-dentro a { color: inherit; }

/* Páginas legales */
.csag-legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .92em; display: block; overflow-x: auto; }
.csag-legal th, .csag-legal td { border: 1px solid #d6d6d6; padding: 8px 10px; vertical-align: top; text-align: left; }
.csag-legal thead th { background: #f2f2f2; }
.csag-legal table:not(:has(thead)) tr > :first-child { background: #f7f7f7; font-weight: 600; width: 28%; }
.csag-legal h2 { font-size: 1.35em; margin: 1.6em 0 .6em; }
.csag-legal h3 { font-size: 1.1em; margin: 1.3em 0 .5em; }
.csag-legal mark { background: #fff59d; padding: 0 3px; }

/* Banner y panel */
.csag-banner[hidden], .csag-panel-fondo[hidden] { display: none !important; }
.csag-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999999; max-width: 960px; margin: 0 auto;
	background: #fff; color: #222; border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,.25); padding: 20px 44px 18px 22px;
	font: 15px/1.5 Arial, Helvetica, sans-serif; }
.csag-banner p, .csag-panel p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #222; }
.csag-banner a, .csag-panel a { color: #1a5aa6; text-decoration: underline; }
.csag-titulo { font-weight: 700; font-size: 17px !important; margin-bottom: 8px !important; }
.csag-botones { display: flex; flex-wrap: wrap; gap: 10px; }
/* Mismo nivel, tamaño, color y formato para todos los botones (requisito AEPD) */
.csag-btn { flex: 1 1 160px; min-height: 44px; padding: 10px 16px; border: 2px solid #1a5aa6; border-radius: 6px;
	background: #1a5aa6; color: #fff; font: 600 15px/1.2 Arial, Helvetica, sans-serif; cursor: pointer; text-transform: none; letter-spacing: 0; }
.csag-btn:hover, .csag-btn:focus { background: #134680; border-color: #134680; outline: none; box-shadow: 0 0 0 3px rgba(26,90,166,.3); }
.csag-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 26px; line-height: 1; color: #555; cursor: pointer; padding: 4px 8px; }
.csag-panel-fondo { position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000000; background: rgba(0,0,0,.5);
	display: flex; align-items: center; justify-content: center; padding: 16px; }
.csag-panel { position: relative; background: #fff; color: #222; border-radius: 8px; max-width: 620px; width: 100%; max-height: 90vh; overflow: auto;
	padding: 24px 24px 20px; font: 15px/1.5 Arial, Helvetica, sans-serif; }
.csag-cat { border: 1px solid #ddd; border-radius: 6px; padding: 12px 14px 2px; margin-bottom: 12px; }
.csag-cat-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.csag-siempre { font-size: 13px; color: #2e7d32; font-weight: 600; }
.csag-switch { position: relative; display: inline-block; width: 46px; height: 26px; margin: 0; }
.csag-switch input { opacity: 0; width: 0; height: 0; }
.csag-switch span { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: #bbb; border-radius: 26px; cursor: pointer; transition: .2s; }
.csag-switch span:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.csag-switch input:checked + span { background: #1a5aa6; }
.csag-switch input:checked + span:before { transform: translateX(20px); }
.csag-switch input:focus + span { box-shadow: 0 0 0 3px rgba(26,90,166,.35); }
@media (max-width: 600px) { .csag-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px 36px 14px 16px; } .csag-btn { flex-basis: 100%; } }
