/* ============================================================
   LEGAL + SCROLLBAR  ·  Haciendas Horizonte
   1) Barra de scroll global en dorado #b88b5a
   2) Modales "Política de Privacidad" y "Términos y Condiciones"
      (se abren en la misma página, sin cambiar de ventana)
   Paleta: verde #1d3535 · dorado #b88b5a / #d4a574 · crema #F5F0E8
   ============================================================ */

/* ------------------------------------------------------------
   1) SCROLLBAR GLOBAL (página completa)
   ------------------------------------------------------------ */
html {
	scrollbar-color: #b88b5a #F5F0E8; /* Firefox: thumb / track */
}
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
	background: #b88b5a;
	border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
	background: #a67a4b;
}

/* ------------------------------------------------------------
   2) MODAL LEGAL — overlay
   ------------------------------------------------------------ */
.hh-legal-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
	background: rgba(15, 26, 26, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.hh-legal-modal.is-open {
	display: flex;
	animation: hhLegalFade .25s ease;
}
@keyframes hhLegalFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Tarjeta blanca */
.hh-legal-card {
	position: relative;
	width: 100%;
	max-width: 820px;
	max-height: min(86vh, 900px);
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	overflow: hidden;
	animation: hhLegalUp .3s ease;
}
@keyframes hhLegalUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Cabecera del modal */
.hh-legal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px clamp(20px, 4vw, 36px) 18px;
	border-bottom: 1px solid rgba(29, 53, 53, .08);
	flex: 0 0 auto;
}
.hh-legal-title {
	font-family: 'Playfair Display', Georgia, serif !important;
	font-weight: 700;
	font-size: clamp(20px, 2.4vw, 26px);
	color: #1d3535;
	margin: 0;
	line-height: 1.2;
}

/* Botón cerrar (rojo, como el original) */
.hh-legal-close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e2504a;
	color: #ffffff;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
	padding: 0;
}
.hh-legal-close:hover {
	background: #c93e38;
	transform: scale(1.05);
}
.hh-legal-close svg {
	width: 18px;
	height: 18px;
}

/* Cuerpo con scroll interno */
.hh-legal-body {
	overflow-y: auto;
	padding: 8px clamp(20px, 4vw, 36px) 34px;
	scrollbar-color: #b88b5a #f3ece2; /* Firefox */
	overscroll-behavior: contain;
}
.hh-legal-body::-webkit-scrollbar {
	width: 8px;
}
.hh-legal-body::-webkit-scrollbar-track {
	background: #f3ece2;
	border-radius: 8px;
}
.hh-legal-body::-webkit-scrollbar-thumb {
	background: #b88b5a;
	border-radius: 8px;
}

/* Tipografía del contenido */
.hh-legal-body h3 {
	font-family: 'Playfair Display', Georgia, serif !important;
	font-weight: 700;
	font-size: clamp(21px, 2.6vw, 28px);
	color: #1d3535;
	margin: 30px 0 12px;
	line-height: 1.25;
}
.hh-legal-body p {
	font-family: 'Poppins', sans-serif;
	font-size: 15.5px;
	line-height: 1.75;
	color: #3f4f4f;
	margin: 0 0 14px;
}
.hh-legal-body ul {
	margin: 0 0 16px;
	padding-left: 22px;
	list-style: disc;
}
.hh-legal-body li {
	font-family: 'Poppins', sans-serif;
	font-size: 15.5px;
	line-height: 1.75;
	color: #3f4f4f;
	margin-bottom: 8px;
}
.hh-legal-body strong {
	color: #1d3535;
	font-weight: 600;
}

/* Cuando un modal está abierto, bloqueamos el scroll del fondo */
body.hh-legal-lock {
	overflow: hidden !important;
}

/* ------------------------------------------------------------
   3) FOOTER — enlaces legales y crédito de agencia
   ------------------------------------------------------------ */
.hh-foot-legal button.hh-legal-open {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: color .2s ease;
}
.hh-foot-legal button.hh-legal-open:hover {
	color: #d4a574;
}
.hh-foot-credit {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}
.hh-foot-credit:hover {
	color: #d4a574;
	text-decoration: underline;
}

/* Móvil */
@media (max-width: 640px) {
	.hh-legal-card {
		max-height: 92vh;
		border-radius: 14px;
	}
	.hh-legal-head {
		padding: 18px 18px 14px;
	}
	.hh-legal-body {
		padding: 6px 18px 26px;
	}
}
