/* BSG Suite: diseño encapsulado inspirado en los modelos aprobados. */
.slm-legal{--slm-ink:#192128;--slm-muted:#58626a;--slm-line:#e1e6e6;--slm-soft:#f5f8f6;--slm-accent:#217245;box-sizing:border-box;background:#fff;color:var(--slm-ink);font:400 16px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;padding:25px 16px 70px;isolation:isolate}
.slm-legal *,.slm-legal *:before,.slm-legal *:after{box-sizing:border-box}
.slm-legal a{color:var(--slm-accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.slm-legal button{font:inherit;cursor:pointer}
.slm-legal .slm-container{width:100%;max-width:1120px;margin:0 auto}
.slm-legal .slm-topnav{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;border-bottom:1px solid var(--slm-line);padding:0 0 19px;margin-bottom:34px}
.slm-legal .slm-brand{font-size:13px;font-weight:780;text-transform:uppercase;letter-spacing:.06em}
.slm-legal .slm-muted{color:#79857c;text-transform:none;letter-spacing:0;margin-left:6px;font-weight:500}
.slm-legal .slm-links{display:flex;gap:8px;flex-wrap:wrap}
.slm-legal .slm-links a{padding:6px 14px;border-radius:30px;border:1px solid var(--slm-line);font-size:13px;font-weight:650;text-decoration:none;color:var(--slm-muted);background:#fff}
.slm-legal .slm-links a[aria-current=page],.slm-legal .slm-links a:hover{background:var(--slm-soft);color:var(--slm-accent)}
.slm-legal .slm-hero{border-bottom:1px solid var(--slm-line);padding:0 0 30px;margin:0 0 30px}
.slm-legal .slm-eyebrow{margin:0;color:var(--slm-accent);font-size:12px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}
.slm-legal .slm-eyebrow:before{content:"";display:inline-block;width:20px;height:2px;margin-right:8px;vertical-align:middle;background:var(--slm-accent)}
.slm-legal .slm-hero h1{margin:16px 0!important;font-size:clamp(31px,4vw,52px)!important;font-weight:800!important;letter-spacing:-.045em!important;line-height:1.15!important;color:var(--slm-ink)!important}
.slm-legal .slm-intro{margin:0;max-width:760px;font-size:17px;line-height:1.8;color:var(--slm-muted)}
.slm-legal .slm-date{font-size:13px;color:var(--slm-muted);margin:17px 0 0}
.slm-legal .slm-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;align-items:start;gap:30px}
.slm-legal .slm-main,.slm-legal .slm-aside{min-width:0}
.slm-legal .slm-lead{padding:22px 24px;margin:0 0 25px;background:var(--slm-info-bg,var(--slm-soft));border:1px solid #dae5dd;border-radius:14px}
.slm-legal .slm-lead strong{font-weight:800}.slm-legal .slm-lead p{color:#53635a;margin:8px 0 0;font-size:14px}
.slm-legal .slm-accordions{display:grid;gap:10px}
.slm-legal details.slm-item{border:1px solid var(--slm-line);border-radius:12px;overflow:hidden;background:#fff}
.slm-legal details.slm-item[open]{box-shadow:0 5px 23px #1026150a;border-color:#c9dccc}
.slm-legal details.slm-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-size:16px;font-weight:760;color:var(--slm-ink);padding:18px 21px;line-height:1.45}
.slm-legal details.slm-item summary::-webkit-details-marker{display:none}
.slm-legal details.slm-item summary::marker{content:""}
.slm-legal details.slm-item summary:hover, .slm-legal details.slm-item summary:focus-visible{background:var(--slm-hover-bg,#f9fbf9)}
.slm-legal .slm-summary-text{display:flex;align-items:baseline;min-width:0}
.slm-legal .slm-index{font-size:13px;font-weight:800;color:var(--slm-accent);margin-right:12px}
.slm-legal .slm-chevron{display:grid;place-items:center;border:1px solid var(--slm-line);background:var(--slm-soft);color:var(--slm-accent);width:25px;height:25px;min-width:25px;border-radius:50%}
.slm-legal .slm-chevron:before{content:"+";line-height:1}
.slm-legal details[open] .slm-chevron:before{content:"−"}
.slm-legal .slm-body{padding:0 20px 20px 51px;border-top:1px solid var(--slm-line);font-size:15px;line-height:1.85;color:#354048;overflow-wrap:anywhere}
.slm-legal .slm-body p{margin:13px 0}.slm-legal .slm-body strong{color:var(--slm-ink)}
.slm-legal .slm-side-card{border:1px solid var(--slm-line);border-radius:13px;padding:22px;margin-bottom:16px;overflow-wrap:anywhere}
.slm-legal .slm-tinted{background:var(--slm-responsible-bg,var(--slm-soft));border-color:#dae5dd}
.slm-legal .slm-side-card h2{font-size:15px!important;line-height:1.5!important;font-weight:800!important;color:var(--slm-ink)!important;margin:0 0 12px!important}
.slm-legal .slm-side-card p{margin:8px 0;color:var(--slm-muted);font-size:13px;line-height:1.7}
.slm-legal .slm-side-card a{font-size:13px}
.slm-legal .slm-eyeline{height:3px;width:31px;background:var(--slm-accent);margin-bottom:15px;border-radius:3px}
.slm-legal .slm-stat{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #e1e7e2;font-size:13px}
.slm-legal .slm-stat strong{font-size:19px}
.slm-legal .slm-cta{display:inline-flex;align-items:center;justify-content:center;background:var(--slm-accent);border:1px solid var(--slm-accent);color:#fff!important;text-decoration:none!important;border-radius:9px;font-size:13px;font-weight:700;padding:10px 13px;cursor:pointer;margin-top:13px;width:100%}
.slm-legal .slm-inline-cta{width:auto;margin:0}
.slm-legal .slm-cta:hover{filter:brightness(.91)}
.slm-legal .slm-note{font-size:13px;background:#f6f9f7;border-left:3px solid var(--slm-accent);padding:10px 15px;border-radius:0 7px 7px 0}
.slm-legal .slm-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--slm-line);border-radius:10px;margin:14px 0}
.slm-legal .slm-table-wrap table{margin:0;border:0;border-collapse:collapse;background:white;min-width:575px;width:100%;font-size:13px;line-height:1.65}
.slm-legal .slm-table-wrap th{padding:12px;text-align:left;background:#f3f7f4;font-weight:800;color:#26362e;border-bottom:1px solid #dce5df}
.slm-legal .slm-table-wrap td{padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid #eef2ef;color:#36413e}
.slm-legal .slm-table-wrap code{display:inline-block;white-space:nowrap;font-size:12px;padding:1px 5px;border-radius:4px;background:#eef5ee;color:var(--slm-accent)}
.slm-legal .slm-table-wrap small{color:var(--slm-muted)}
.slm-legal .slm-foot{padding-top:20px;margin-top:34px;border-top:1px solid var(--slm-line);color:var(--slm-muted);font-size:13px}
.slm-legal a:focus-visible,.slm-legal button:focus-visible,.slm-legal summary:focus-visible{outline:3px solid var(--slm-accent);outline-offset:3px}
@media(max-width:880px){.slm-legal .slm-layout{grid-template-columns:minmax(0,1fr)}.slm-legal .slm-aside{display:grid;grid-template-columns:1fr 1fr;gap:15px}.slm-legal .slm-side-card{margin:0}}
@media(max-width:620px){.slm-legal{padding:16px 10px 50px;font-size:15px}.slm-legal .slm-hero{margin-bottom:23px}.slm-legal .slm-intro{font-size:15px}.slm-legal .slm-aside{display:block}.slm-legal .slm-side-card{margin-bottom:12px}.slm-legal .slm-lead{padding:18px}.slm-legal details.slm-item summary{padding:15px;font-size:14.5px}.slm-legal .slm-body{padding:0 15px 16px;font-size:14px}.slm-legal .slm-index{margin-right:9px}}
@media(prefers-reduced-motion:reduce){.slm-legal *{transition:none!important}}

/* Theme and Elementor isolation on generated legal pages */
.slm-legal,.slm-legal .slm-container,.slm-legal .slm-layout,.slm-legal .slm-main,.slm-legal .slm-aside{height:auto!important;min-height:0!important;overflow:visible}
.slm-legal .slm-hero h1,.slm-legal .slm-side-card h2{display:block!important;visibility:visible!important;opacity:1!important}
.slm-legal details.slm-item summary,.slm-legal details.slm-item summary *{color:var(--slm-ink)!important;text-transform:none!important;letter-spacing:normal!important}
.slm-legal details.slm-item .slm-index,.slm-legal details.slm-item .slm-chevron{color:var(--slm-accent)!important}
.slm-legal .slm-body,.slm-legal .slm-body p,.slm-legal .slm-intro,.slm-legal .slm-side-card p{color:var(--slm-muted)!important}
.slm-legal .slm-table-wrap{overflow-x:auto!important}

/* Layout compatibility with Astra + Elementor footer templates.
   The site footer can be placed beside #primary within Astra's flex container.
   Restore vertical document flow ONLY on pages that contain BSG Suite. */
.site-content > .ast-container:has(.slm-legal){display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.site-content > .ast-container:has(.slm-legal) > #primary{display:block!important;float:none!important;flex:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.site-content > .ast-container:has(.slm-legal) #main,
.site-content > .ast-container:has(.slm-legal) article.ast-article-single,
.site-content > .ast-container:has(.slm-legal) .entry-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.site-content > .ast-container:has(.slm-legal) > footer{display:block!important;position:relative!important;clear:both!important;width:100%!important;max-width:none!important;flex:none!important}
.slm-legal{width:100%!important;max-width:100%!important;display:block!important}
.slm-legal .slm-layout{width:100%;min-width:0}
@media(max-width:880px){.slm-legal .slm-layout{grid-template-columns:minmax(0,1fr)!important}}
