/* =========================================================
   Albira — infó oldalak mobilon (álló + fekvő), app-szerű.
   Oldalak: Biztonság, Kapcsolat, ÁSZF, Adatvédelem.
   Csak telefon/tablet (max 1024px); az asztali nézethez nem nyúl
   (azokat a security.css / theme.css adja).
   Betöltés: functions.php kmae_enqueue_info_mobile().
   ========================================================= */

@media (max-width: 1024px) {
	body.kmae-security-page,
	body:has(.kmae-legal) {
		--im-blue: #00c7f7;
		--im-blue-strong: #008fbd;
		--im-blue-rgb: 0, 199, 247;
		--im-orange: #ff6e25;
		--im-orange-strong: #e95e13;
		--im-orange-rgb: 255, 110, 37;
		--im-ink: #202936;
		--im-copy: #465463;
		--im-muted: #667383;
		--im-gutter: 14px;
		-webkit-tap-highlight-color: transparent;
	}

	/* ---- Oldal-héj: teljes szélesség, saját gutter, alul hely az app-menünek ---- */
	body.kmae-security-page .kmae-page,
	body:has(.kmae-legal) .kmae-page {
		box-sizing: border-box;
		width: 100%;
		margin: 0;
		padding: calc(var(--kmae-header-h, 52px) + 14px) var(--im-gutter) calc(40px + env(safe-area-inset-bottom, 0px));
		background: transparent;
	}

	body.kmae-app.kmae-security-page .kmae-page,
	body.kmae-app:has(.kmae-legal) .kmae-page {
		padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
	}

	body.kmae-security-page .kmae-page > .kmae-container,
	body:has(.kmae-legal) .kmae-page > .kmae-container {
		width: 100%;
		max-width: 720px;
		margin: 0 auto;
		padding: 0;
	}

	body.kmae-security-page .kmae-page__article,
	body.kmae-security-page .kmae-page__content,
	body:has(.kmae-legal) .kmae-page__article,
	body:has(.kmae-legal) .kmae-page__content {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	/* Az oldal saját címe a tartalomban van; a WP-cím elrejtve. */
	body.kmae-security-page .kmae-page__article > .kmae-page__title,
	body:has(.kmae-legal) .kmae-page__article > .kmae-page__title {
		display: none;
	}

	/* =====================================================
	   Biztonság
	   ===================================================== */
	.kmae-sec-page {
		display: flex;
		flex-direction: column;
		gap: 18px;
		width: 100%;
	}

	/* A the_content() (wpautop) <br>-t és üres <p>-t szúr a sablonba;
	   ezek rács-cellát foglalnának, és szétcsúsztatnák a kártyákat. */
	body.kmae-security-page .kmae-sec-page br,
	body.kmae-security-page .kmae-sec-page p:empty {
		display: none;
	}

	/* Vendég fejléc: méret = landing (52px). A landing.css 72px + 32px
	   gutter felülírja a header-auth-t — itt vissza a tömör sávra. */
	body.kmae-security-page.kmae-marketing {
		--kmae-header-h: 52px;
	}

	body.kmae-security-page.kmae-marketing .kmae-header,
	body.kmae-security-page.kmae-marketing .kmae-header.is-scrolled {
		height: var(--kmae-header-h);
	}

	body.kmae-security-page.kmae-marketing .kmae-header__inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 8px;
		height: 100%;
		padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
	}

	body.kmae-security-page.kmae-marketing .kmae-header__actions--desktop {
		grid-column: 2;
		justify-self: end;
		gap: 8px;
	}

	.kmae-sec-page__intro {
		text-align: center;
	}

	.kmae-sec-page__eyebrow,
	.kmae-sec-block__eyebrow {
		margin: 0 0 8px;
		font-size: 10px;
		font-weight: 850;
		line-height: 1.4;
		letter-spacing: 0.15em;
		color: var(--im-blue-strong);
	}

	.kmae-sec-page__title {
		margin: 0;
		font-family: "Outfit", "Space Grotesk", system-ui, sans-serif;
		font-size: clamp(24px, 7vw, 34px);
		font-weight: 850;
		line-height: 1.12;
		letter-spacing: -0.035em;
		color: var(--im-ink);
	}

	.kmae-sec-page__title span {
		display: block;
		background: linear-gradient(100deg, #008fbd 0%, #00c7f7 45%, #ff6e25 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}

	.kmae-sec-page__lead {
		margin: 12px auto 0;
		max-width: 560px;
		font-size: 14px;
		font-weight: 560;
		line-height: 1.65;
		color: var(--im-copy);
	}

	/* Szakasz-ugrók: tördelve, középre — mindhárom látszik. */
	.kmae-sec-page__jump {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
		margin: 14px 0 0;
		padding: 2px 0 6px;
	}

	.kmae-sec-page__jump::-webkit-scrollbar {
		display: none;
	}

	.kmae-sec-page__jump a {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		padding: 0 16px;
		box-sizing: border-box;
		border: 1px solid rgba(var(--im-blue-rgb), 0.55);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.9);
		box-shadow: 0 4px 12px rgba(38, 68, 90, 0.1), inset 0 1px 0 #fff;
		font-size: 13px;
		font-weight: 780;
		white-space: nowrap;
		text-decoration: none;
		color: var(--im-blue-strong);
		scroll-snap-align: start;
	}

	.kmae-sec-block {
		scroll-margin-top: calc(var(--kmae-header-h, 52px) + 10px);
		padding: 18px 14px 14px;
		box-sizing: border-box;
		border: 1px solid rgba(var(--im-blue-rgb), 0.5);
		border-radius: 22px;
		background:
			radial-gradient(circle at 6% 0%, rgba(var(--im-blue-rgb), 0.16), transparent 46%),
			linear-gradient(145deg, rgba(240, 251, 255, 0.95), rgba(255, 255, 255, 0.88));
		box-shadow: 0 12px 30px rgba(38, 68, 90, 0.13), inset 0 1px 0 #fff;
	}

	.kmae-sec-block__header {
		margin: 0 0 14px;
		padding: 0 4px;
	}

	.kmae-sec-block__title {
		margin: 0;
		font-family: "Outfit", "Space Grotesk", system-ui, sans-serif;
		font-size: 21px;
		font-weight: 800;
		line-height: 1.2;
		letter-spacing: -0.025em;
		color: var(--im-ink);
	}

	.kmae-sec-block__subtitle {
		margin: 6px 0 0;
		font-size: 13.5px;
		font-weight: 560;
		line-height: 1.55;
		color: var(--im-copy);
	}

	.kmae-sec-cards,
	.kmae-sec-tips {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	/* Kártya: ikon bal oldalt, cím + szöveg mellette (app-lista érzet). */
	.kmae-sec-card {
		position: relative;
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 2px;
		align-items: start;
		margin: 0;
		padding: 14px 14px 14px 12px;
		box-sizing: border-box;
		border: 1px solid rgba(var(--im-blue-rgb), 0.3);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.82);
		box-shadow: inset 0 1px 0 #fff;
	}

	.kmae-sec-card__icon,
	.kmae-sec-tips__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 14px;
		background: linear-gradient(145deg, rgba(var(--im-blue-rgb), 0.2), rgba(var(--im-blue-rgb), 0.08));
		color: var(--im-blue-strong);
	}

	.kmae-sec-card__icon {
		grid-row: 1 / span 2;
	}

	.kmae-sec-card__icon svg,
	.kmae-sec-tips__icon svg {
		width: 24px;
		height: 24px;
	}

	.kmae-sec-cards--reports .kmae-sec-card:nth-child(2) .kmae-sec-card__icon {
		background: linear-gradient(145deg, rgba(var(--im-orange-rgb), 0.22), rgba(var(--im-orange-rgb), 0.08));
		color: var(--im-orange-strong);
	}

	.kmae-sec-card__label {
		align-self: end;
		font-size: 15px;
		font-weight: 800;
		line-height: 1.3;
		color: var(--im-ink);
	}

	.kmae-sec-card__text {
		grid-column: 2;
		margin: 0;
		font-size: 13.5px;
		font-weight: 540;
		line-height: 1.6;
		color: var(--im-copy);
	}

	/* Tippek: számozott lépés-lista, bal oldali számmal. */
	.kmae-sec-tips__item {
		display: grid;
		grid-template-columns: 30px 44px minmax(0, 1fr);
		column-gap: 10px;
		align-items: start;
		margin: 0;
		padding: 13px 12px;
		box-sizing: border-box;
		border: 1px solid rgba(var(--im-orange-rgb), 0.3);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.82);
		box-shadow: inset 0 1px 0 #fff;
	}

	.kmae-sec-tips__num {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
		margin-top: 7px;
		border-radius: 50%;
		background: linear-gradient(135deg, #ffad41, #ff6e25);
		font-size: 13px;
		font-weight: 850;
		color: #fff;
	}

	.kmae-sec-tips__icon {
		background: linear-gradient(145deg, rgba(var(--im-orange-rgb), 0.2), rgba(var(--im-orange-rgb), 0.07));
		color: var(--im-orange-strong);
	}

	.kmae-sec-tips__label {
		display: block;
		margin: 0 0 3px;
		font-size: 15px;
		font-weight: 800;
		line-height: 1.3;
		color: var(--im-ink);
	}

	.kmae-sec-tips__text {
		display: block;
		margin: 0;
		font-size: 13.5px;
		font-weight: 540;
		line-height: 1.6;
		color: var(--im-copy);
	}

	.kmae-sec-footer {
		padding: 16px 14px;
		box-sizing: border-box;
		border: 1px solid rgba(var(--im-orange-rgb), 0.5);
		border-radius: 22px;
		background:
			radial-gradient(circle at 100% 0%, rgba(var(--im-orange-rgb), 0.18), transparent 46%),
			linear-gradient(145deg, rgba(255, 239, 226, 0.95), rgba(255, 255, 255, 0.86));
		box-shadow: 0 12px 30px rgba(38, 68, 90, 0.12), inset 0 1px 0 #fff;
	}

	.kmae-sec-footer__links {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.kmae-sec-footer__link {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 0 16px;
		box-sizing: border-box;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.9);
		border: 1px solid rgba(var(--im-orange-rgb), 0.4);
		font-size: 14px;
		font-weight: 800;
		text-align: center;
		text-decoration: none;
		color: var(--im-orange-strong);
	}

	.kmae-sec-footer__note {
		margin: 12px 0 0;
		font-size: 12.5px;
		font-weight: 560;
		line-height: 1.55;
		text-align: center;
		color: var(--im-copy);
	}

	/* Adatvédelem: a saját privacy-mobile.css adja a héjat; itt csak fallback. */
	body.kmae-privacy-page .kmae-page {
		padding-top: calc(var(--kmae-header-h, 52px) + 14px);
	}

	/* =====================================================
	   ÁSZF + Adatvédelem (.kmae-legal)
	   ===================================================== */
	.kmae-legal {
		max-width: none;
		margin: 0;
		padding: 0;
		font-size: 14.5px;
		line-height: 1.65;
		color: var(--im-copy);
	}

	.kmae-legal__head,
	.kmae-legal__toc,
	.kmae-legal > section {
		margin: 0 0 12px;
		padding: 18px 16px;
		border: 1px solid rgba(var(--im-blue-rgb), 0.4);
		border-radius: 20px;
		background: rgba(255, 255, 255, 0.9);
		box-shadow: 0 10px 26px rgba(38, 68, 90, 0.11), inset 0 1px 0 #fff;
	}

	.kmae-legal__head {
		padding-top: 22px;
		text-align: center;
	}

	.kmae-legal__head::before {
		right: 22px;
		left: 22px;
	}

	.kmae-legal__head h1 {
		font-family: "Outfit", "Space Grotesk", system-ui, sans-serif;
		font-size: clamp(21px, 6vw, 28px);
		letter-spacing: -0.03em;
	}

	/* Tartalomjegyzék: egy oszlop, nagy érintési felületű sorok. */
	.kmae-legal__toc ol {
		columns: 1;
		margin: 0;
		padding: 0;
		list-style: none;
		counter-reset: im-toc;
	}

	.kmae-legal__toc li {
		margin: 0;
		counter-increment: im-toc;
		border-bottom: 1px solid rgba(var(--im-blue-rgb), 0.18);
		font-size: 14px;
	}

	.kmae-legal__toc li:last-child {
		border-bottom: 0;
	}

	.kmae-legal__toc li::before {
		content: counter(im-toc) ".";
		display: inline-block;
		min-width: 1.8em;
		font-weight: 800;
		color: var(--im-blue-strong);
	}

	.kmae-legal__toc a {
		display: inline-block;
		padding: 10px 0;
		font-weight: 700;
		color: var(--im-ink);
	}

	.kmae-legal h2 {
		scroll-margin-top: calc(var(--kmae-header-h, 52px) + 12px);
		font-size: 17px;
	}

	.kmae-legal__facts div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.kmae-legal__table-wrap {
		-webkit-overflow-scrolling: touch;
	}

	.kmae-legal__table {
		min-width: 560px;
	}

	/* =====================================================
	   Fekvő telefon: a kártyák két oszlopba rendeződnek
	   ===================================================== */
	@media (orientation: landscape) {
		body.kmae-security-page .kmae-page,
		body:has(.kmae-legal) .kmae-page {
			padding-top: calc(var(--kmae-header-h, 52px) + 10px);
		}

		body.kmae-privacy-page .kmae-page {
			padding-top: calc(var(--kmae-header-h, 52px) + 14px);
		}

		body.kmae-security-page .kmae-page > .kmae-container {
			max-width: 980px;
		}

		.kmae-sec-cards--system,
		.kmae-sec-cards--reports {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		.kmae-sec-footer__links {
			display: grid;
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		.kmae-legal__toc ol {
			columns: 2;
			column-gap: 24px;
		}

		.kmae-legal__facts div {
			grid-template-columns: 170px minmax(0, 1fr);
		}
	}
}

/* =========================================================
   ÁSZF oldal — telefon (álló + fekvő). Csak body.kmae-terms-page
   (functions.php kmae_body_classes, is_page('feltetelek')).
   Álló: tapadó, vízszintesen görgethető fejezet-sáv.
   Fekvő: bal oldali tapadó tartalomjegyzék + jobb oldali szöveg.
   ========================================================= */
@media (max-width: 1024px) {
	/* ---- Fejléc: ugyanaz a 52px üvegsáv, mint a landingen. ---- */
	body.kmae-terms-page.kmae-marketing {
		--kmae-header-h: 52px;
	}

	body.kmae-terms-page.kmae-marketing .kmae-header {
		height: var(--kmae-header-h);
	}

	body.kmae-terms-page.kmae-marketing .kmae-header__inner {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 8px;
		height: 100%;
		padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
	}

	body.kmae-terms-page.kmae-marketing .kmae-header__actions--desktop {
		grid-column: 2;
		justify-self: end;
		gap: 8px;
	}

	body.kmae-terms-page .kmae-page {
		padding-top: calc(var(--kmae-header-h, 52px) + 14px);
	}

	body.kmae-terms-page.kmae-app .kmae-page {
		padding-top: 14px;
	}

	/* ---- Szöveg ---- */
	body.kmae-terms-page .kmae-legal {
		font-size: 15px;
		line-height: 1.7;
		color: #3a4a5c;
	}

	/* ---- Címkártya: tömör, középen ---- */
	body.kmae-terms-page .kmae-legal__head {
		padding: 20px 18px 18px;
		border-radius: 22px;
		background:
			radial-gradient(70% 120% at 0 0, rgba(0, 199, 247, 0.16), transparent 62%),
			radial-gradient(60% 120% at 100% 0, rgba(255, 110, 37, 0.12), transparent 62%),
			rgba(255, 255, 255, 0.94);
	}

	body.kmae-terms-page .kmae-legal__eyebrow {
		margin-bottom: 8px;
		font-size: 11px;
	}

	body.kmae-terms-page .kmae-legal__head h1 {
		margin: 0 0 12px;
		color: #0b3a66;
		font-size: clamp(20px, 5.6vw, 25px);
		line-height: 1.2;
		text-wrap: balance;
	}

	body.kmae-terms-page .kmae-legal__meta {
		display: inline-block;
		padding: 6px 12px;
		border: 1px solid rgba(0, 199, 247, 0.35);
		border-radius: 999px;
		background: rgba(0, 199, 247, 0.08);
		color: #2c5878;
		font-size: 12px;
		line-height: 1.45;
	}

	/* ---- Tartalomjegyzék (álló): tapad a fix fejléc alatt ---- */
	body.kmae-terms-page .kmae-legal__toc {
		position: sticky;
		top: 0;
		z-index: 5;
		margin: 0 calc(-1 * var(--im-gutter, 14px)) 12px;
		padding: 8px 0;
		border: 0;
		border-bottom: 1px solid rgba(0, 199, 247, 0.28);
		border-radius: 0;
		background: rgba(246, 251, 255, 0.94);
		box-shadow: 0 8px 18px rgba(38, 68, 90, 0.08);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
	}

	body.kmae-terms-page.kmae-marketing .kmae-legal__toc {
		top: var(--kmae-header-h, 52px);
	}

	body.kmae-terms-page .kmae-legal__toc-title {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	body.kmae-terms-page .kmae-legal__toc ol {
		display: flex;
		gap: 8px;
		margin: 0;
		padding: 0 var(--im-gutter, 14px);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--im-gutter, 14px);
		scrollbar-width: none;
		columns: auto;
		list-style: none;
		counter-reset: terms-toc;
		-webkit-overflow-scrolling: touch;
	}

	body.kmae-terms-page .kmae-legal__toc ol::-webkit-scrollbar {
		display: none;
	}

	body.kmae-terms-page .kmae-legal__toc li {
		flex: 0 0 auto;
		margin: 0;
		border: 0;
		counter-increment: terms-toc;
		scroll-snap-align: start;
		font-size: 13px;
	}

	body.kmae-terms-page .kmae-legal__toc li::before {
		content: none;
	}

	body.kmae-terms-page .kmae-legal__toc a {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		min-height: 36px;
		padding: 0 14px 0 5px;
		border: 1px solid rgba(0, 199, 247, 0.38);
		border-radius: 999px;
		background: #fff;
		color: #0b3a66;
		font-weight: 700;
		line-height: 1;
		white-space: nowrap;
		text-decoration: none;
		box-shadow: 0 3px 8px rgba(38, 68, 90, 0.07);
	}

	body.kmae-terms-page .kmae-legal__toc a::before {
		content: counter(terms-toc);
		display: inline-grid;
		place-items: center;
		min-width: 26px;
		height: 26px;
		padding: 0 4px;
		box-sizing: border-box;
		border-radius: 999px;
		background: linear-gradient(135deg, #00c7f7, #008fbd);
		color: #fff;
		font-size: 12px;
		font-weight: 800;
	}

	body.kmae-terms-page .kmae-legal__toc a:active {
		border-color: #ff6e25;
		background: #fff4ec;
	}

	/* ---- Fejezetek ---- */
	body.kmae-terms-page .kmae-legal > section {
		padding: 18px 16px;
		border-radius: 20px;
		background: rgba(255, 255, 255, 0.94);
	}

	/* A tapadó sáv (~53px) ne takarja el az ugrás célját. */
	body.kmae-terms-page .kmae-legal h2 {
		scroll-margin-top: 66px;
		display: flex;
		align-items: flex-start;
		gap: 10px;
		margin: 0 0 12px;
		color: #0b3a66;
		font-size: 17px;
		line-height: 1.3;
	}

	body.kmae-terms-page .kmae-legal__num {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
		min-width: 28px;
		height: 28px;
		margin-top: -3px;
		padding: 0 4px;
		box-sizing: border-box;
		border-radius: 10px;
		background: linear-gradient(135deg, #00c7f7, #008fbd);
		color: #fff;
		font-size: 0;
		box-shadow: 0 4px 10px rgba(0, 143, 189, 0.25);
	}

	/* A sorszám ponttal jön a sablonból („1.”); a pont nélküli számot a counter adja. */
	body.kmae-terms-page .kmae-legal {
		counter-reset: terms-h;
	}

	body.kmae-terms-page .kmae-legal h2 {
		counter-increment: terms-h;
	}

	body.kmae-terms-page .kmae-legal__num::before {
		content: counter(terms-h);
		font-size: 13px;
		font-weight: 800;
	}

	body.kmae-terms-page .kmae-legal p {
		margin-bottom: 12px;
	}

	body.kmae-terms-page .kmae-legal > section ul {
		margin: 0 0 12px;
		padding: 0;
		list-style: none;
	}

	body.kmae-terms-page .kmae-legal > section li {
		position: relative;
		margin: 0 0 9px;
		padding-left: 18px;
	}

	body.kmae-terms-page .kmae-legal > section li::before {
		content: "";
		position: absolute;
		top: 0.66em;
		left: 2px;
		width: 7px;
		height: 7px;
		border-radius: 50%;
		background: #ff6e25;
		box-shadow: 0 0 0 3px rgba(255, 110, 37, 0.15);
	}

	body.kmae-terms-page .kmae-legal strong {
		color: #0b3a66;
	}

	body.kmae-terms-page .kmae-legal > section a {
		color: #008fbd;
		font-weight: 700;
		text-decoration: underline;
		text-decoration-color: rgba(0, 143, 189, 0.35);
		text-underline-offset: 3px;
	}

	/* Üzemeltető adatai: címke fölül, érték alatta */
	body.kmae-terms-page .kmae-legal__facts {
		gap: 0;
		margin: 0 0 12px;
		border: 1px solid rgba(0, 199, 247, 0.22);
		border-radius: 14px;
		background: rgba(240, 249, 255, 0.7);
	}

	body.kmae-terms-page .kmae-legal__facts div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
		padding: 10px 14px;
		border-bottom: 1px solid rgba(0, 199, 247, 0.16);
	}

	body.kmae-terms-page .kmae-legal__facts div:last-child {
		border-bottom: 0;
	}

	body.kmae-terms-page .kmae-legal__facts dt {
		color: #5f7488;
		font-size: 11.5px;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	body.kmae-terms-page .kmae-legal__facts dd {
		color: #0b3a66;
		font-weight: 700;
		overflow-wrap: anywhere;
	}

	/* =====================================================
	   ÁSZF fekvő telefon: bal oldali tartalomjegyzék + szöveg
	   ===================================================== */
	@media (orientation: landscape) {
		body.kmae-terms-page .kmae-page {
			padding-top: calc(var(--kmae-header-h, 52px) + 12px);
		}

		body.kmae-terms-page.kmae-app .kmae-page {
			padding-top: 12px;
		}

		body.kmae-terms-page .kmae-page > .kmae-container {
			max-width: 1000px;
		}

		body.kmae-terms-page .kmae-legal {
			display: grid;
			grid-template-columns: minmax(200px, 30%) minmax(0, 1fr);
			column-gap: 14px;
			align-items: start;
		}

		body.kmae-terms-page .kmae-legal__admin,
		body.kmae-terms-page .kmae-legal__head {
			grid-column: 1 / -1;
		}

		body.kmae-terms-page .kmae-legal__head {
			padding: 14px 18px;
		}

		body.kmae-terms-page .kmae-legal__head h1 {
			margin-bottom: 8px;
			font-size: 21px;
		}

		body.kmae-terms-page .kmae-legal > section {
			grid-column: 2;
		}

		/* A sáv a bal oszlopban végig tapad; saját görgetéssel, ha hosszabb a képernyőnél. */
		body.kmae-terms-page .kmae-legal__toc {
			grid-column: 1;
			grid-row: span 60;
			position: sticky;
			top: calc(var(--kmae-header-h, 52px) + 8px);
			max-height: calc(100vh - var(--kmae-header-h, 52px) - 16px);
			max-height: calc(100dvh - var(--kmae-header-h, 52px) - 16px);
			margin: 0;
			padding: 12px 8px 12px 12px;
			overflow-y: auto;
			overscroll-behavior: contain;
			border: 1px solid rgba(0, 199, 247, 0.38);
			border-radius: 18px;
			background: rgba(255, 255, 255, 0.92);
			scrollbar-width: thin;
		}

		body.kmae-terms-page .kmae-legal__toc-title {
			position: static;
			width: auto;
			height: auto;
			overflow: visible;
			clip: auto;
			margin: 0 0 6px 4px;
			color: #0b3a66;
			font-size: 12px;
			letter-spacing: 0.08em;
			text-transform: uppercase;
		}

		body.kmae-terms-page .kmae-legal__toc ol {
			display: grid;
			gap: 2px;
			padding: 0;
			overflow: visible;
		}

		body.kmae-terms-page .kmae-legal__toc a {
			display: flex;
			gap: 8px;
			min-height: 34px;
			padding: 4px 6px 4px 3px;
			border: 0;
			border-radius: 10px;
			background: transparent;
			box-shadow: none;
			font-size: 12.5px;
			line-height: 1.25;
			white-space: normal;
		}

		body.kmae-terms-page .kmae-legal__toc a::before {
			flex: 0 0 auto;
			min-width: 24px;
			height: 24px;
			font-size: 11px;
		}

		body.kmae-terms-page .kmae-legal h2 {
			scroll-margin-top: 12px;
		}

		body.kmae-terms-page .kmae-legal__facts {
			display: grid;
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		body.kmae-terms-page .kmae-legal__facts div:nth-last-child(2):nth-child(odd) {
			border-bottom: 1px solid rgba(0, 199, 247, 0.16);
		}

		body.kmae-terms-page .kmae-legal__facts div:last-child:nth-child(odd) {
			grid-column: 1 / -1;
		}
	}
}
