/* Legal pages (/aviso-legal, /politica-de-cookies, /politica-de-privacidad).
   Keep the long-form legal documents in the same editorial design as the rest
   of the site: comfortable reading column, Source Serif headings, Manrope body,
   berry links, ink emphasis. Scoped to body.gai-legal-page (added in
   functions.php). */

body.gai-legal-page .content-area {
	padding-top: 56px;
	padding-bottom: 120px;
}

body.gai-legal-page article {
	max-width: 900px;
	margin: 0 auto;
	color: #4e4c4e;
	font-size: 1rem;
	line-height: 1.8;
}

/* Page title (rendered inside .fl-post-header on default Astra pages) */
body.gai-legal-page article .fl-post-header {
	margin: 0 0 10px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}
body.gai-legal-page article h1 {
	color: var(--ink);
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 600;
	font-size: clamp(2.1rem, 4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
}

/* Section headings inside the legal text */
body.gai-legal-page article h2 {
	color: var(--ink);
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 600;
	font-size: 1.7rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 2em 0 0.55em;
}
body.gai-legal-page article h3 {
	color: var(--ink);
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 600;
	font-size: 1.35rem;
	line-height: 1.3;
	margin: 1.8em 0 0.5em;
}
body.gai-legal-page article h4 {
	color: var(--ink);
	font-family: "Manrope", Arial, sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.4;
	margin: 1.6em 0 0.5em;
}

body.gai-legal-page article p {
	margin: 0 0 1.1em;
}
body.gai-legal-page article strong,
body.gai-legal-page article b {
	color: var(--ink);
	font-weight: 700;
}
body.gai-legal-page article em {
	color: var(--ink);
}

body.gai-legal-page article a {
	color: var(--berry);
	text-decoration: none;
	transition: color 0.2s;
}
body.gai-legal-page article a:hover {
	color: var(--berry-dark);
	text-decoration: underline;
}

body.gai-legal-page article ul,
body.gai-legal-page article ol {
	margin: 0 0 1.4em;
	padding-left: 1.35em;
}
body.gai-legal-page article ul ul,
body.gai-legal-page article ol ol,
body.gai-legal-page article ul ol,
body.gai-legal-page article ol ul {
	margin-bottom: 0.4em;
}
body.gai-legal-page article li {
	margin: 0 0 0.45em;
}
body.gai-legal-page article ul li::marker {
	color: var(--berry);
}

body.gai-legal-page article hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.2em 0;
}

body.gai-legal-page article table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.6em;
	font-size: 0.95rem;
}
body.gai-legal-page article th,
body.gai-legal-page article td {
	border: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}
body.gai-legal-page article th {
	background: var(--cream);
	color: var(--ink);
	font-family: "Manrope", Arial, sans-serif;
	font-weight: 800;
}

body.gai-legal-page article blockquote {
	margin: 1.6em 0;
	padding: 14px 20px;
	border-left: 3px solid var(--berry);
	background: var(--cream);
	color: var(--muted);
}

/* Small screens: keep a little breathing room around the column */
@media (max-width: 600px) {
	body.gai-legal-page .content-area {
		padding-top: 40px;
		padding-bottom: 80px;
	}
}

/* --------------------------------------------------------------------------
   Complianz document inside the legal pages (/politica-de-cookies/).
   Complianz ships its own stylesheet for the generated document and its
   consent widget, and the rules above already style the document's headings,
   tables and links, so only the two things that read off-design are fixed
   here: the "last updated" note, and the default browser-blue controls of the
   consent widget (the site's accent is berry).
   -------------------------------------------------------------------------- */

/* Lead note ("Esta política de cookies fue actualizada el …") */
body.gai-legal-page .cmplz-document > p:first-child {
	color: var(--muted);
	font-size: 0.92rem;
}
body.gai-legal-page .cmplz-document > p:first-child em,
body.gai-legal-page .cmplz-document > p:first-child i {
	font-style: normal;
}

/* Consent widget: category rows (functional / statistics / marketing) */
body.gai-legal-page #cmplz-manage-consent-container input[type="checkbox"] {
	accent-color: var(--berry);
}
body.gai-legal-page #cmplz-manage-consent-container .cmplz-always-active {
	/* Complianz prints this label in green; the design has no green. */
	color: var(--berry) !important;
}
body.gai-legal-page #cmplz-manage-consent-container .cmplz-always-active svg,
body.gai-legal-page #cmplz-manage-consent-container .cmplz-always-active .cmplz-icon {
	fill: var(--berry) !important;
	color: var(--berry) !important;
}
