/* arsregia.ai · legal.css
   Solo para privacy.html y terms.html. Complementa site.css (no lo modifica).
   Valores tomados de diseno/legal-arsregia.dc.html. */

/* Scroll: solo html{overflow-x:clip}; nada en body (anula la regla de site.css) */
html { overflow-x: clip; }
body { overflow-x: visible; }

.lg-root { min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.55; }

/* Cabecera: igual a la del sitio, sin enlaces a secciones */
.lg-hdr-in { justify-content: space-between; gap: 12px; }
a.btn-acc { font-size: 13px; font-weight: 500; }
a.btn-acc:hover { color: var(--text); }
.lg-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: #9184d9; box-shadow: 0 0 8px rgba(145,132,217,0.6); transition: width .1s linear; }

/* Encabezado del documento */
.lg-hero { position: relative; overflow: clip; border-bottom: 1px solid var(--border); }
.lg-hero-geo { position: absolute; right: -140px; top: -160px; width: 560px; height: 560px; pointer-events: none; stroke: var(--geo1); }
.lg-hero-geo .hi { stroke: var(--geoHi); }
.lg-hero-in { position: relative; max-width: 1320px; margin: 0 auto; padding: clamp(48px,7vw,96px) clamp(20px,5vw,64px) clamp(36px,5vw,56px); display: flex; flex-direction: column; gap: 28px; }
.lg-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); align-self: flex-start; }
.lg-tabs a { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: var(--subtle); font: 500 13px Inter, sans-serif; }
.lg-tabs a[aria-current="page"] { background: var(--surface2); color: var(--text); }
.lg-hero h1 { margin: 0; font-size: clamp(38px,5.4vw,76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; text-wrap: balance; }
.lg-updated { font-size: 13px; color: var(--subtle); font-variant-numeric: tabular-nums; }

/* Cuerpo: índice + artículo */
.lg-main { max-width: 1320px; margin: 0 auto; padding: clamp(40px,6vw,88px) clamp(20px,5vw,64px) clamp(64px,9vw,128px); display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(32px,6vw,96px); align-items: start; }
.lg-toc { position: static; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.lg-toc .h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 10px; }
.lg-toc a { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); transition: color .3s, border-color .4s; }
.lg-toc a:hover { color: var(--text); border-top-color: var(--accent); }
.lg-toc a .n { width: 20px; flex-shrink: 0; color: var(--accentText); font-variant-numeric: tabular-nums; }
.lg-art { max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.lg-intro { margin: 0 0 8px; font-size: clamp(19px,1.8vw,22px); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.lg-sec { display: flex; flex-direction: column; gap: 10px; }
.lg-sec h2 { scroll-margin-top: 96px; margin: 48px 0 4px; display: flex; gap: 14px; align-items: baseline; font-size: clamp(22px,2.2vw,28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: var(--text); text-wrap: balance; }
.lg-sec h2 .n { font-size: 14px; color: var(--accentText); font-variant-numeric: tabular-nums; }
.lg-sec p { margin: 0; text-wrap: pretty; }
.lg-sec p.b { margin: 6px 0 0; color: var(--text); font-weight: 500; }
.lg-sec ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lg-sec li { display: flex; gap: 12px; align-items: baseline; }
.lg-sec li .dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-3px); }
.lg-sec li .tx { text-wrap: pretty; }
.lg-sec li strong { font-weight: 500; color: var(--text); }
.lg-contact { margin-top: 56px; padding: 20px 22px; border-radius: 14px; background: #262a60; color: #cfd3e5; font-size: 15px; }
.lg-contact a { color: #d2cefd; font-weight: 500; }

/* Pie */
.lg-ftr { position: relative; overflow: clip; padding: 48px 0 32px; border-top: 1px solid var(--border); }
.lg-ftr-in { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px,5vw,64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.lg-ftr-in img { height: 40px; width: auto; }
.lg-ftr-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: var(--subtle); }
.lg-ftr-links a { color: var(--subtle); }

@media (min-width: 900px) {
  .lg-main { grid-template-columns: minmax(0,1fr) minmax(0,2.4fr); }
  .lg-toc { position: sticky; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-progress { transition: none; }
}
.lg-root b { font-weight: inherit; }
