/**
 * GEOCIKLO — Legal Center Stylesheet
 *
 * Premium but juridical: high legibility, generous measure, sticky desktop TOC,
 * collapsible mobile TOC, print-friendly. No video, no WebGL, no heavy motion.
 *
 * Horizontal-overflow contract (360 / 390 / 414 / 768 / 1024 / 1440):
 *  - every grid track that receives flowing text uses minmax(0, …) so a wide
 *    child can never blow the track out;
 *  - the only element allowed to be wider than its column is a table, and it is
 *    always wrapped in .gc-lgl-table-wrap { overflow-x: auto };
 *  - long tokens (emails, cookie names) wrap via overflow-wrap: anywhere;
 *  - the root uses overflow-x: clip rather than hidden, because `hidden` would
 *    turn the root into a scroll container and silently break position: sticky
 *    on the desktop TOC.
 */

:root {
	--gc-l-dark: #073F4D;
	--gc-l-teal: #035877;
	--gc-l-deep-teal: #06605C;
	--gc-l-emerald: #3FAE6A;
	--gc-l-ink: #24403F;
	--gc-l-bg-light: #F7FAF8;
	--gc-l-bg-soft: #F0FAF4;
	--gc-l-border: #E1ECE7;
	--gc-l-border-strong: #CDE7D9;
	--gc-l-text-muted: #57737A;
	--gc-l-shadow-sm: 0 4px 20px rgba(7, 63, 77, 0.05);
}

.gc-legal-root {
	font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: #FFFFFF;
	color: var(--gc-l-dark);
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

.gc-legal-root *,
.gc-legal-root *::before,
.gc-legal-root *::after {
	box-sizing: border-box;
}

/* Hello Elementor's own page header duplicates the H1; the PHP filter removes
   it from the DOM, this is only a defensive fallback for editor previews. */
.page:has(.gc-legal-root) .page-header,
.page:has(.gc-legal-root) .entry-header,
body:has(.gc-legal-root) .page-header,
body:has(.gc-legal-root) .entry-header {
	display: none !important;
}

.gc-lgl-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(18px, 5vw, 32px);
	width: 100%;
}

/* ==========================================================================
   01 — HERO
   ========================================================================== */

.gc-lgl-hero {
	padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 44px);
	border-bottom: 1px solid var(--gc-l-border);
	background:
		radial-gradient(circle at 92% 8%, rgba(63, 174, 106, 0.08) 0%, transparent 60%),
		linear-gradient(180deg, #FFFFFF 0%, var(--gc-l-bg-light) 100%);
}

.gc-lgl-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--gc-l-text-muted);
	margin-bottom: 18px;
}

.gc-lgl-breadcrumbs a {
	color: var(--gc-l-teal);
	text-decoration: none;
	font-weight: 700;
}

.gc-lgl-breadcrumbs a:hover,
.gc-lgl-breadcrumbs a:focus-visible {
	text-decoration: underline;
}

.gc-lgl-badge {
	display: block;
	margin: 0 0 14px;
}

.gc-lgl-badge span {
	display: inline-block;
	background: var(--gc-l-bg-soft);
	border: 1px solid var(--gc-l-border-strong);
	padding: 5px 14px;
	border-radius: 9999px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gc-l-deep-teal);
}

.gc-lgl-title {
	font-size: clamp(28px, 4.2vw, 46px);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--gc-l-dark);
	margin: 0 0 16px;
	overflow-wrap: anywhere;
}

.gc-lgl-intro {
	font-size: clamp(15px, 1.4vw, 17.5px);
	line-height: 1.65;
	color: var(--gc-l-ink);
	max-width: 68ch;
	margin: 0 0 18px;
}

.gc-lgl-meta-info {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13.5px;
	color: var(--gc-l-text-muted);
	margin: 0;
}

.gc-lgl-primary-link {
	margin: 20px 0 0;
}

.gc-lgl-primary-link a {
	display: inline-block;
	font-size: 15px;
	font-weight: 800;
	color: var(--gc-l-deep-teal);
	text-decoration: none;
	border-bottom: 2px solid var(--gc-l-emerald);
	padding-bottom: 2px;
}

.gc-lgl-primary-link a:hover,
.gc-lgl-primary-link a:focus-visible {
	color: var(--gc-l-emerald);
}

/* ==========================================================================
   02 — LAYOUT
   ========================================================================== */

.gc-lgl-body-section {
	padding: clamp(28px, 4vw, 52px) 0 clamp(56px, 8vw, 92px);
}

.gc-lgl-split-layout {
	display: grid;
	grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

/* ==========================================================================
   03 — DESKTOP STICKY TOC
   ========================================================================== */

.gc-lgl-sidebar {
	position: sticky;
	top: 110px;
	align-self: start;
	min-width: 0;
}

.gc-lgl-toc-box {
	background: var(--gc-l-bg-light);
	border: 1.5px solid var(--gc-l-border);
	border-radius: 18px;
	padding: 22px 20px;
	box-shadow: var(--gc-l-shadow-sm);
	max-height: calc(100vh - 150px);
	overflow-y: auto;
}

.gc-lgl-toc-heading {
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gc-l-dark);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--gc-l-border);
}

.gc-lgl-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	counter-reset: none;
}

.gc-lgl-toc-list li {
	margin: 0;
}

.gc-ltoc-link {
	display: block;
	font-size: 13px;
	line-height: 1.45;
	color: var(--gc-l-text-muted);
	text-decoration: none;
	padding: 6px 8px;
	border-radius: 8px;
	border-left: 2px solid transparent;
	transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
	overflow-wrap: anywhere;
}

.gc-ltoc-link:hover,
.gc-ltoc-link:focus-visible {
	color: var(--gc-l-deep-teal);
	background: #FFFFFF;
	border-left-color: var(--gc-l-emerald);
}

/* ==========================================================================
   04 — MOBILE COLLAPSIBLE TOC
   ========================================================================== */

.gc-lgl-mobile-toc {
	display: none;
	margin-bottom: 28px;
}

.gc-lgl-mobile-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	color: var(--gc-l-dark);
	background: var(--gc-l-bg-light);
	border: 1.5px solid var(--gc-l-border);
	border-radius: 14px;
	padding: 14px 18px;
	cursor: pointer;
	text-align: left;
}

.gc-lgl-mobile-toc__chevron {
	width: 10px;
	height: 10px;
	flex: 0 0 auto;
	border-right: 2px solid var(--gc-l-deep-teal);
	border-bottom: 2px solid var(--gc-l-deep-teal);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.2s ease;
}

.gc-lgl-mobile-toc__toggle[aria-expanded="true"] .gc-lgl-mobile-toc__chevron {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.gc-lgl-mobile-toc__panel {
	margin-top: 10px;
	background: #FFFFFF;
	border: 1.5px solid var(--gc-l-border);
	border-radius: 14px;
	padding: 12px;
}

.gc-lgl-mobile-toc__panel[hidden] {
	display: none;
}

/* ==========================================================================
   05 — DOCUMENT
   ========================================================================== */

.gc-lgl-article {
	min-width: 0;
	max-width: 78ch;
}

.gc-lgl-clause {
	margin-bottom: 36px;
	padding-bottom: 30px;
	border-bottom: 1px solid var(--gc-l-border);
	scroll-margin-top: 120px;
}

.gc-lgl-clause:last-of-type {
	border-bottom: none;
}

.gc-lgl-clause-title {
	font-size: clamp(18px, 1.9vw, 21px);
	font-weight: 900;
	line-height: 1.3;
	color: var(--gc-l-dark);
	margin: 0 0 14px;
	overflow-wrap: anywhere;
}

.gc-lgl-clause-content p {
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--gc-l-ink);
	margin: 0 0 14px;
	overflow-wrap: anywhere;
}

.gc-lgl-clause-content p:last-child {
	margin-bottom: 0;
}

.gc-lgl-list {
	margin: 0 0 16px;
	padding-left: 22px;
}

.gc-lgl-list li {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--gc-l-ink);
	margin-bottom: 9px;
	overflow-wrap: anywhere;
}

.gc-lgl-list li::marker {
	color: var(--gc-l-emerald);
}

/* ==========================================================================
   06 — TABLES
   ========================================================================== */

.gc-lgl-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 20px;
	border: 1.5px solid var(--gc-l-border);
	border-radius: 14px;
	max-width: 100%;
}

.gc-lgl-table-wrap:focus-visible {
	outline: 2px solid var(--gc-l-emerald);
	outline-offset: 2px;
}

.gc-lgl-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 13.5px;
	background: #FFFFFF;
}

.gc-lgl-table th,
.gc-lgl-table td {
	text-align: left;
	vertical-align: top;
	padding: 12px 14px;
	border-bottom: 1px solid var(--gc-l-border);
	line-height: 1.55;
	color: var(--gc-l-ink);
	overflow-wrap: anywhere;
}

.gc-lgl-table thead th {
	background: var(--gc-l-bg-light);
	color: var(--gc-l-dark);
	font-weight: 900;
	font-size: 12.5px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.gc-lgl-table tbody th[scope="row"] {
	font-weight: 800;
	color: var(--gc-l-deep-teal);
	white-space: nowrap;
}

.gc-lgl-table tbody tr:last-child th,
.gc-lgl-table tbody tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   07 — CALLOUTS
   ========================================================================== */

.gc-lgl-callout {
	border-radius: 14px;
	padding: 18px 20px;
	margin: 0 0 18px;
	border-left: 4px solid var(--gc-l-emerald);
	background: var(--gc-l-bg-soft);
}

.gc-lgl-callout--warning {
	border-left-color: var(--gc-l-teal);
	background: #F2F8FB;
}

.gc-lgl-callout__title {
	font-size: 14px;
	font-weight: 900;
	color: var(--gc-l-dark);
	margin: 0 0 8px;
}

.gc-lgl-callout p {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--gc-l-ink);
	margin: 0;
}

/* ==========================================================================
   08 — IDENTITY & CONTACT
   ========================================================================== */

.gc-lgl-identity {
	background: var(--gc-l-bg-light);
	border: 1.5px solid var(--gc-l-border);
	border-radius: 16px;
	padding: 20px 22px;
	margin: 18px 0 0;
}

.gc-lgl-identity__title {
	font-size: 14px;
	font-weight: 900;
	color: var(--gc-l-dark);
	margin: 0 0 14px;
}

.gc-lgl-identity__list,
.gc-lgl-contact-list {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.gc-lgl-identity__row,
.gc-lgl-contact-row {
	display: grid;
	grid-template-columns: minmax(140px, 34%) minmax(0, 1fr);
	gap: 8px 16px;
	align-items: baseline;
}

.gc-lgl-identity__row dt,
.gc-lgl-contact-row dt {
	font-size: 13px;
	font-weight: 800;
	color: var(--gc-l-text-muted);
	margin: 0;
}

.gc-lgl-identity__row dd,
.gc-lgl-contact-row dd {
	font-size: 14.5px;
	color: var(--gc-l-dark);
	font-weight: 600;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.gc-lgl-identity__notice {
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--gc-l-text-muted);
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--gc-l-border);
}

.gc-lgl-crosslinks {
	margin: 8px 0 32px;
	padding: 22px 24px;
	background: #FFFFFF;
	border: 1.5px solid var(--gc-l-border);
	border-radius: 16px;
}

.gc-lgl-crosslinks__title {
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--gc-l-text-muted);
	margin: 0 0 14px;
}

.gc-lgl-crosslinks ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gc-lgl-crosslinks a {
	font-size: 15px;
	font-weight: 800;
	color: var(--gc-l-deep-teal);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.gc-lgl-crosslinks a:hover,
.gc-lgl-crosslinks a:focus-visible {
	color: var(--gc-l-emerald);
	text-decoration: underline;
}

.gc-lgl-contact-clause {
	background: var(--gc-l-bg-soft);
	border: 1.5px solid var(--gc-l-border-strong);
	border-radius: 18px;
	padding: clamp(20px, 3vw, 30px);
}

.gc-lgl-contact-clause h2 {
	font-size: 18px;
	font-weight: 900;
	color: var(--gc-l-dark);
	margin: 0 0 10px;
}

.gc-lgl-contact-clause p {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--gc-l-ink);
	margin: 0 0 16px;
}

.gc-lgl-contact-clause a {
	color: var(--gc-l-deep-teal);
	overflow-wrap: anywhere;
}

.gc-lgl-contact-cta {
	margin: 20px 0 0;
}

.gc-lgl-btn {
	display: inline-block;
	background: var(--gc-l-dark);
	color: #FFFFFF !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 9999px;
	transition: background-color 0.2s ease;
}

.gc-lgl-btn:hover,
.gc-lgl-btn:focus-visible {
	background: var(--gc-l-deep-teal);
}

.gc-lgl-admin-note {
	margin-top: 28px;
	padding: 18px 20px;
	border: 1.5px dashed var(--gc-l-border-strong);
	border-radius: 14px;
	background: #FFFDF5;
}

.gc-lgl-admin-note h2 {
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gc-l-text-muted);
	margin: 0 0 10px;
}

.gc-lgl-admin-note p {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--gc-l-ink);
	margin: 0 0 8px;
	overflow-wrap: anywhere;
}

/* Visible keyboard focus everywhere in the legal center. */
.gc-legal-root a:focus-visible,
.gc-legal-root button:focus-visible {
	outline: 2px solid var(--gc-l-emerald);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ==========================================================================
   09 — RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.gc-lgl-split-layout {
		grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.gc-lgl-split-layout {
		display: block;
	}

	.gc-lgl-sidebar {
		display: none;
	}

	.gc-lgl-mobile-toc {
		display: block;
	}

	.gc-lgl-article {
		max-width: 100%;
	}

	.gc-lgl-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gc-lgl-table {
		min-width: 560px;
	}

	.gc-lgl-identity__row,
	.gc-lgl-contact-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.gc-lgl-clause {
		margin-bottom: 30px;
		padding-bottom: 24px;
	}
}

@media (max-width: 420px) {
	.gc-lgl-clause-content p,
	.gc-lgl-list li {
		font-size: 15px;
	}

	.gc-lgl-table {
		min-width: 480px;
		font-size: 13px;
	}

	.gc-lgl-btn {
		display: block;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gc-legal-root * {
		transition: none !important;
	}
}

/* ==========================================================================
   10 — PRINT
   ========================================================================== */

@media print {
	.gc-lgl-sidebar,
	.gc-lgl-mobile-toc,
	.gc-lgl-breadcrumbs,
	.gc-lgl-contact-cta,
	.gc-lgl-admin-note,
	header.gc-header,
	.site-footer,
	.gc-footer-legal,
	nav.gc-lgl-crosslinks {
		display: none !important;
	}

	.gc-lgl-split-layout {
		display: block !important;
	}

	.gc-lgl-body-section {
		padding: 0 !important;
	}

	.gc-lgl-article {
		max-width: 100% !important;
	}

	.gc-lgl-table-wrap {
		overflow-x: visible !important;
	}

	.gc-lgl-table {
		min-width: 0 !important;
	}
}
