/* HyE Clean Service — Aviso de Privacidad (/privacidad)
   Reutiliza los tokens de la landing: navy #1D2E52 · on-navy #DCE1D4
   wa/accent #5E7C58 · bg #F6F5F1 · text #1F2A24 · border #E3E2DB
   muted #5C6B5E · DM Serif Display + DM Sans */

:root {
	--hye-navy: #1D2E52;
	--hye-on-navy: #DCE1D4;
	--hye-wa: #5E7C58;
	--hye-accent: #5E7C58;
	--hye-bg: #F6F5F1;
	--hye-text: #1F2A24;
	--hye-why-title: #A8C3F0;
	--hye-border: #E3E2DB;
	--hye-muted: #5C6B5E;
	--hye-white: #FFFFFF;
	--hye-font-serif: "DM Serif Display", Georgia, serif;
	--hye-font-sans: "DM Sans", system-ui, sans-serif;
}

body {
	margin: 0;
	background: var(--hye-bg);
	color: var(--hye-text);
	font-family: var(--hye-font-sans);
	font-size: 1rem;
	line-height: 1.7;
}

.hye-legal-container {
	max-width: 920px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ============ HEADER ============ */
.hye-legal-header {
	background: rgba(246, 245, 241, 0.96);
	border-bottom: 1px solid var(--hye-border);
}

.hye-legal-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 72px;
}

.hye-legal-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--hye-navy);
}

.hye-legal-mark {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.hye-legal-wordmark {
	font-family: var(--hye-font-serif);
	font-size: 1.25rem;
	letter-spacing: 0.01em;
}

.hye-legal-wordmark em {
	font-style: normal;
	color: var(--hye-accent);
}

.hye-legal-cta {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 6px;
	background: var(--hye-navy);
	color: var(--hye-on-navy);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hye-legal-cta:hover {
	background: #16233f;
	transform: translateY(-1px);
}

/* ============ DOCUMENT ============ */
.hye-legal-main {
	padding: 48px 0 72px;
}

.hye-legal-doc {
	background: var(--hye-white);
	border: 1px solid var(--hye-border);
	border-radius: 10px;
	padding: 48px 56px;
	box-shadow: 0 12px 40px rgba(29, 46, 82, 0.05);
}

.hye-legal-eyebrow {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hye-accent);
}

.hye-legal-doc h1 {
	margin: 0 0 16px;
	font-family: var(--hye-font-serif);
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.15;
	color: var(--hye-navy);
}

.hye-legal-lead {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: var(--hye-muted);
}

.hye-legal-doc section {
	scroll-margin-top: 24px;
}

.hye-legal-doc h2 {
	margin: 40px 0 12px;
	font-family: var(--hye-font-serif);
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	line-height: 1.3;
	color: var(--hye-navy);
}

.hye-legal-doc p {
	margin: 0 0 14px;
}

.hye-legal-doc ul,
.hye-legal-doc ol {
	margin: 0 0 16px;
	padding-left: 22px;
}

.hye-legal-doc li {
	margin-bottom: 8px;
}

.hye-legal-doc a {
	color: var(--hye-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hye-legal-doc a:hover {
	color: var(--hye-accent);
}

.hye-legal-doc strong {
	color: var(--hye-navy);
}

/* ============ COOKIE TABLE ============ */
.hye-legal-table-wrap {
	margin: 20px 0 24px;
	overflow-x: auto;
	border: 1px solid var(--hye-border);
	border-radius: 8px;
}

.hye-legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	min-width: 640px;
}

.hye-legal-table th,
.hye-legal-table td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--hye-border);
}

.hye-legal-table thead th {
	background: var(--hye-bg);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hye-muted);
}

.hye-legal-table tbody tr:last-child td {
	border-bottom: none;
}

.hye-legal-table code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
	background: var(--hye-bg);
	border: 1px solid var(--hye-border);
	border-radius: 4px;
	padding: 1px 6px;
	white-space: nowrap;
}

.hye-legal-callout {
	margin-top: 24px;
	padding: 16px 18px;
	border-left: 4px solid var(--hye-accent);
	border-radius: 0 6px 6px 0;
	background: rgba(94, 124, 88, 0.08);
}

/* ============ CONSENT CONTROL ============ */
.hye-consent {
	margin: 24px 0;
	padding: 20px 22px;
	border: 1px solid var(--hye-border);
	border-radius: 8px;
	background: var(--hye-bg);
}

.hye-consent[hidden] {
	display: none;
}

.hye-consent-status {
	margin: 0 0 14px;
	font-weight: 600;
	color: var(--hye-navy);
}

.hye-consent-btn {
	display: inline-block;
	padding: 11px 20px;
	border: 1px solid var(--hye-navy);
	border-radius: 6px;
	background: var(--hye-navy);
	color: var(--hye-on-navy);
	font-family: var(--hye-font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.hye-consent-btn:hover {
	background: #16233f;
}

.hye-consent-btn[aria-pressed="true"] {
	background: transparent;
	color: var(--hye-navy);
}

.hye-consent-btn[aria-pressed="true"]:hover {
	background: rgba(29, 46, 82, 0.06);
}

.hye-consent-btn:focus-visible,
.hye-legal-cta:focus-visible,
.hye-legal-doc a:focus-visible {
	outline: 3px solid var(--hye-why-title);
	outline-offset: 2px;
}

.hye-consent-note {
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: var(--hye-muted);
}

/* ============ FOOTER ============ */
.hye-legal-footer {
	border-top: 1px solid var(--hye-border);
	background: var(--hye-bg);
	padding: 40px 0 48px;
	text-align: center;
}

.hye-legal-footer-brand {
	margin: 0 0 8px;
	font-family: var(--hye-font-serif);
	font-size: 1.15rem;
	color: var(--hye-navy);
}

.hye-legal-footer-line {
	margin: 0 0 8px;
	font-size: 0.9rem;
	color: var(--hye-muted);
}

.hye-legal-footer-line a {
	color: var(--hye-muted);
	text-decoration: none;
}

.hye-legal-footer-line a:hover {
	color: var(--hye-text);
	text-decoration: underline;
}

.hye-legal-footer-copy {
	margin: 16px 0 6px;
	font-size: 0.8125rem;
	color: var(--hye-muted);
}

.hye-legal-footer-links {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--hye-muted);
}

.hye-legal-footer-links a {
	color: var(--hye-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hye-legal-footer-links a:hover {
	color: var(--hye-text);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
	.hye-legal-container {
		padding: 0 20px;
	}

	.hye-legal-main {
		padding: 24px 0 48px;
	}

	.hye-legal-doc {
		padding: 28px 22px;
		border-radius: 8px;
	}

	.hye-legal-header-inner {
		min-height: 64px;
	}

	.hye-legal-wordmark {
		font-size: 1.05rem;
	}

	.hye-legal-cta {
		padding: 9px 16px;
		font-size: 0.82rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hye-legal-cta {
		transition: none;
	}
}
