/* Páginas legales: hereda tipografías y colores del tema (Astra/Elementor). */
:root { --lhc-accent: var(--ast-global-color-0, #1d4ed8); }

.lhc-legal { max-width: 920px; margin: 0 auto; line-height: 1.75; color: inherit; font-family: inherit; }
.lhc-legal * { font-family: inherit; }
.lhc-legal h2 { font-size: 1.55em; line-height: 1.25; margin: 2.1em 0 .7em; padding-bottom: .35em; border-bottom: 3px solid var(--lhc-accent); scroll-margin-top: 90px; }
.lhc-legal h3 { font-size: 1.2em; line-height: 1.3; margin: 1.7em 0 .5em; color: var(--lhc-accent); scroll-margin-top: 90px; }
.lhc-legal p { margin: 0 0 1em; }
.lhc-legal ul, .lhc-legal ol { margin: 0 0 1.2em 1.3em; }
.lhc-legal li { margin-bottom: .35em; }
.lhc-legal a { color: var(--lhc-accent); text-decoration: underline; text-underline-offset: 2px; }
.lhc-legal a:hover { text-decoration: none; }

.lhc-legal__ident { display: grid; grid-template-columns: max-content 1fr; gap: .55em 1.4em; margin: 0 0 1.6em; padding: 1.1em 1.3em; border: 1px solid rgba(0,0,0,.12); border-left: 4px solid var(--lhc-accent); border-radius: 6px; background: rgba(0,0,0,.025); }
.lhc-legal__ident dt { font-weight: 700; }
.lhc-legal__ident dd { margin: 0; }

.lhc-legal__toc { margin: 0 0 2em; padding: 1.1em 1.4em; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; background: rgba(0,0,0,.025); }
.lhc-legal__toc ul { margin: .5em 0 0 1.2em; padding: 0; }
.lhc-legal__toc > ul { list-style: none; margin-left: 0; }
.lhc-legal__toc li { margin-bottom: .3em; }
.lhc-legal__toc a { text-decoration: none; }
.lhc-legal__toc a:hover { text-decoration: underline; }

.lhc-legal__updated { margin-top: 2.2em; font-size: .9em; opacity: .7; }

.lhc-legal .lhc-btn, .lhc-btn { display: inline-block; padding: .7em 1.3em; border: 2px solid var(--lhc-accent); border-radius: 4px; background: var(--lhc-accent); color: #fff !important; font-weight: 600; text-decoration: none !important; cursor: pointer; line-height: 1.2; }
.lhc-btn:hover { filter: brightness(.92); }

.lhc-table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.lhc-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.lhc-table th, .lhc-table td { padding: .65em .8em; border: 1px solid rgba(0,0,0,.15); text-align: left; vertical-align: top; }
.lhc-table thead th { background: var(--lhc-accent); color: #fff; }
.lhc-table tbody tr:nth-child(even) { background: rgba(0,0,0,.03); }

@media (max-width: 640px) {
	.lhc-legal__ident { grid-template-columns: 1fr; gap: .1em; }
	.lhc-legal__ident dd { margin-bottom: .7em; }
	.lhc-legal h2 { font-size: 1.35em; }
}

/* Refuerzo por si el tema aún dibuja la barra lateral en estas páginas */
body.lhc-legal-page #secondary { display: none !important; }
body.lhc-legal-page #primary { width: 100% !important; }
