/**
 * GEMKIBO — info / legal pages (Faza 2)
 *
 * Universal stylesheet dla wszystkich stron prawnych: regulamin, polityka,
 * cookies, dostawa, formy płatności, zwroty, deklaracja dostępności.
 *
 * Layout 1:1 z makietą Stitch (desktop-regulamin sklepu desktop.html):
 *   hero forest dark · 2-col aside TOC + article prose · CTA bottom
 *
 * @phase 2
 */

/* ───────────────────────── ROOT ───────────────────────── */
.gk-info {
	background: #FAF8F4;
	color: #1F3D14;
	min-height: 60vh;
}

/* ───────────────────────── HERO ───────────────────────── */
.gk-info__hero {
	background: #1F3D14;
	color: #FAF8F4;
	padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 64px);
	position: relative;
	overflow: hidden;
}
.gk-info__hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(93, 169, 53, 0.15) 0%, transparent 60%);
	pointer-events: none;
}
.gk-info__hero-inner {
	/* FIX 2026-05-30: dopasowane do kontenera headera (1440 / 57.6px @desktop) żeby
	   hero był wyrównany z nagłówkiem, a nie węższy (było 1280/48px). */
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 57.6px);
	position: relative;
}
.gk-info__breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: rgba(250, 248, 244, 0.70);
	margin: 0 0 16px;
}
.gk-info__breadcrumb a {
	color: rgba(250, 248, 244, 0.85);
	text-decoration: none;
	transition: color .15s ease;
}
.gk-info__breadcrumb a:hover { color: #74E518; }
.gk-info__breadcrumb svg { opacity: 0.5; flex-shrink: 0; }
.gk-info__eyebrow {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(116, 229, 24, 0.12);
	border: 1px solid rgba(116, 229, 24, 0.30);
	color: #74E518;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 16px;
}
.gk-info__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: #FAF8F4;
	margin: 0 0 12px;
	max-width: 900px;
}
/* FIX 2026-05-30: `.gk-home h1` nadpisywał kremowy tytuł na ciemny → niewidoczny na
   ciemnozielonym hero (regulamin + wszystkie strony prawne). Wykluczenie 0,2,0.
   `.gk-home h1{margin:0}` też zabijał margines → "Ostatnia aktualizacja" przyklejona
   do tytułu (gap 0). Przywracamy margin-bottom. */
.gk-home .gk-info__title { color: #FAF8F4; margin-bottom: 16px; }
.gk-info__updated {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: rgba(250, 248, 244, 0.55);
	margin: 0;
}

/* ───────────────────────── LAYOUT (TOC + ARTICLE) ───────────────────────── */
.gk-info__layout {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(40px, 6vh, 64px) clamp(16px, 4vw, 48px);
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
/* Gdy treść nie ma wystarczająco nagłówków na TOC (legacy content z h4 only) — hide aside, center article */
.gk-info.gk-info--no-toc .gk-info__layout {
	grid-template-columns: 1fr;
	max-width: 900px;
}
.gk-info.gk-info--no-toc .gk-info__toc {
	display: none;
}
.gk-info.gk-info--no-toc .gk-info__article {
	max-width: 100%;
}

/* ───────────────────────── TOC ASIDE ───────────────────────── */
.gk-info__toc {
	position: relative;
}
.gk-info__toc-sticky {
	position: sticky;
	top: 110px;
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	padding-right: 8px;
}
.gk-info__toc-sticky::-webkit-scrollbar { width: 4px; }
.gk-info__toc-sticky::-webkit-scrollbar-thumb {
	background: rgba(31, 61, 20, 0.20);
	border-radius: 2px;
}
.gk-info__toc-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1F3D14;
	margin: 0 0 16px;
}
.gk-info__toc-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-left: 1.5px solid rgba(31, 61, 20, 0.10);
	padding-left: 0;
}
.gk-info__toc-nav a {
	display: block;
	padding: 8px 14px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	color: #5A6354;
	text-decoration: none;
	border-left: 2px solid transparent;
	margin-left: -1.5px;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
	line-height: 1.4;
}
.gk-info__toc-nav a:hover {
	color: #1F3D14;
	background: rgba(93, 169, 53, 0.05);
}
.gk-info__toc-nav a.is-active {
	color: #1F3D14;
	font-weight: 700;
	border-left-color: #5DA935;
	background: rgba(93, 169, 53, 0.06);
}
.gk-info__toc-nav a[data-level="3"] { padding-left: 28px; font-size: 12.5px; }
.gk-info__toc-nav a[data-level="4"] { padding-left: 38px; font-size: 12px; color: #9CA396; }
.gk-info__toc-empty {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: rgba(31, 61, 20, 0.40);
	font-style: italic;
}

/* ───────────────────────── ARTICLE PROSE ───────────────────────── */
.gk-info__article {
	max-width: 760px;
	min-width: 0; /* grid track ne expanduje sie przez wide content (np tabele/pre) */
	font-family: 'Inter', sans-serif;
	color: #1F3D14;
	font-size: 16px;
	line-height: 1.65;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.gk-info__article > * { max-width: 100%; }
.gk-info__article pre,
.gk-info__article code { overflow-x: auto; word-wrap: normal; }
.gk-info__article table { display: block; overflow-x: auto; }
.gk-info__article h2,
.gk-info__article h3,
.gk-info__article h4 {
	font-family: 'Playfair Display', Georgia, serif;
	color: #1F3D14;
	letter-spacing: -0.01em;
	scroll-margin-top: 110px;
	margin: 40px 0 16px;
	line-height: 1.2;
}
.gk-info__article h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.gk-info__article h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
.gk-info__article h4 { font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; font-family: 'Inter', sans-serif; }
.gk-info__article h2:first-child,
.gk-info__article h3:first-child,
.gk-info__article h4:first-child { margin-top: 0; }
.gk-info__article p {
	margin: 0 0 16px;
	color: #3a3a3a;
}
.gk-info__article p strong { color: #1F3D14; font-weight: 700; }
.gk-info__article a {
	color: #4F9028;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .15s ease;
}
.gk-info__article a:hover { color: #1F3D14; }
.gk-info__article ul,
.gk-info__article ol {
	margin: 0 0 18px;
	padding-left: 24px;
}
.gk-info__article li {
	margin: 0 0 6px;
	color: #3a3a3a;
}
.gk-info__article li::marker { color: #5DA935; }
.gk-info__article blockquote {
	margin: 24px 0;
	padding: 16px 20px;
	background: rgba(93, 169, 53, 0.06);
	border-left: 3px solid #5DA935;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #1F3D14;
}
.gk-info__article table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14.5px;
	background: #FFFFFF;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(31, 61, 20, 0.04);
}
.gk-info__article th {
	background: #1F3D14;
	color: #FAF8F4;
	padding: 12px 16px;
	text-align: left;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.gk-info__article td {
	padding: 12px 16px;
	border-bottom: 1px solid #ECE6DC;
}
.gk-info__article tr:last-child td { border-bottom: 0; }
.gk-info__article img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 16px 0;
}
.gk-info__article hr {
	border: 0;
	border-top: 1px solid #ECE6DC;
	margin: 32px 0;
}
.gk-info__article > p:first-of-type {
	font-size: 17.5px;
	color: #1F3D14;
	font-weight: 500;
	margin-bottom: 24px;
}

/* ───────────────────────── CTA BOTTOM ───────────────────────── */
.gk-info__cta {
	background: #FFFFFF;
	border-top: 1px solid #ECE6DC;
	margin-top: 32px;
	padding: clamp(48px, 8vh, 80px) 0;
}
.gk-info__cta-inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 48px);
	text-align: center;
}
.gk-info__cta-eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #5DA935;
	margin: 0 0 12px;
}
.gk-info__cta-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 700;
	color: #1F3D14;
	margin: 0 0 24px;
	line-height: 1.2;
}
.gk-info__cta-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.gk-info__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #FFFFFF;
	color: #1F3D14;
	border: 1.5px solid #1F3D14;
	padding: 14px 28px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .15s ease;
}
.gk-info__cta-btn:hover {
	background: #1F3D14;
	color: #FFFFFF;
	transform: translateY(-1px);
}
.gk-info__cta-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #5DA935;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: color .15s ease;
}
.gk-info__cta-phone:hover { color: #1F3D14; }

/* ───────────────────────── MOBILE ───────────────────────── */
@media (max-width: 1024px) {
	.gk-info__layout {
		grid-template-columns: 1fr;
	}
	.gk-info__toc {
		order: -1;
		margin-bottom: 24px;
	}
	.gk-info__toc-sticky {
		position: static;
		max-height: none;
		background: #FFFFFF;
		border: 1px solid #ECE6DC;
		border-radius: 12px;
		padding: 20px;
	}
	.gk-info__toc-nav {
		border-left: 0;
		padding-left: 0;
	}
	.gk-info__toc-nav a {
		border-left: 0;
		padding-left: 0;
		border-bottom: 1px solid #F0EBE0;
		margin-left: 0;
	}
	.gk-info__toc-nav a[data-level="3"],
	.gk-info__toc-nav a[data-level="4"] {
		padding-left: 16px;
		border-bottom: 1px solid #F8F4EC;
	}
	.gk-info__article { max-width: 100%; }
}
@media (max-width: 540px) {
	.gk-info__hero { padding-top: 100px; }
	.gk-info__title { font-size: 28px; }
	.gk-info__article { font-size: 15.5px; }
	.gk-info__article h2 { font-size: 22px; }
	.gk-info__article h3 { font-size: 18px; }
	.gk-info__cta-actions { flex-direction: column; gap: 12px; }
}
