/**
 * Terms & Conditions page (/oroi-kai-proipotheseis/) — FAQ shell + readability finish (0.7.150).
 * Loaded via prosforakias_is_terms_page() only.
 */

body.pfk-terms-page {
	--pfk-terms-max: 1240px;
	--pfk-terms-sticky-h: 56px;
	background: #fff;
	color: #101010;
}

html:has(body.pfk-terms-page) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(body.pfk-terms-page) {
		scroll-behavior: auto;
	}
}

main.site-main.pfk-terms-main {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	min-width: 0;
	font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.pfk-terms {
	background: #fff;
}

.pfk-terms__wrap {
	width: min(var(--pfk-terms-max), calc(100% - 48px));
	margin: 0 auto;
	box-sizing: border-box;
	min-width: 0;
}

.pfk-terms__hero {
	padding: 24px 0 18px;
}

.pfk-terms__hero-panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "main aside";
	align-items: center;
	column-gap: 16px;
	row-gap: 4px;
	padding: 18px 24px;
	border: 1px solid #e7e7e7;
	border-radius: 22px;
	background: #f7f8fa;
	overflow: hidden;
	box-sizing: border-box;
}

.pfk-terms__hero-panel::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #c4161c;
}

.pfk-terms__hero-main {
	grid-area: main;
	align-self: start;
	min-width: 0;
}

.pfk-terms__h1 {
	margin: 0;
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.08;
	letter-spacing: -.025em;
	font-weight: 750;
	color: #101010;
}

.pfk-terms__hero-main > p {
	max-width: 720px;
	margin: 8px 0 0;
	color: #4d4d4d;
	font-size: 16px;
	line-height: 1.6;
}

.pfk-terms__hero-aside {
	grid-area: aside;
	align-self: center;
	min-width: 210px;
	padding-left: 22px;
	border-left: 1px solid #dedede;
}

.pfk-terms__hero-aside span {
	display: block;
	margin-bottom: 4px;
	color: #777;
	font-size: 12px;
	font-weight: 700;
}

.pfk-terms__hero-aside strong {
	display: block;
	max-width: 200px;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 700;
}

/* Sticky chips — FAQ sticky/chip declarations 1:1 (unchanged) */
.pfk-terms__sticky {
	position: sticky;
	top: var(--pfk-archive-sticky-top, 72px);
	z-index: 40;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid #e7e7e7;
	border-bottom: 1px solid #e7e7e7;
}

.pfk-terms__sticky-inner {
	width: min(var(--pfk-terms-max), calc(100% - 48px));
	margin: 0 auto;
	display: flex;
	gap: 10px;
	padding: 12px 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

.pfk-terms__sticky-inner::-webkit-scrollbar {
	display: none;
}

.pfk-terms__chip {
	flex: 0 0 auto;
	text-decoration: none;
	border: 1px solid #dedede;
	background: #fff;
	color: #333;
	padding: 9px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
	white-space: nowrap;
}

.pfk-terms__chip:hover {
	border-color: #cfcfcf;
	background: #fafafa;
	color: #333;
}

.pfk-terms__chip:focus-visible {
	outline: 2px solid #101010;
	outline-offset: 2px;
}

.pfk-terms__chip.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

.pfk-terms__list {
	display: grid;
	gap: 10px;
	padding: 46px 0 54px;
}

.pfk-terms__section {
	scroll-margin-top: calc(var(--pfk-archive-sticky-top, 72px) + var(--pfk-terms-sticky-h, 56px) + 16px);
	border: 1px solid #e7e7e7;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
	min-width: 0;
}

.pfk-terms__section-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	box-sizing: border-box;
	background: #fafafa;
}

.pfk-terms__num {
	flex: 0 0 auto;
	color: #777;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.3;
}

.pfk-terms__section-head h2 {
	margin: 0;
	min-width: 0;
	font-size: 18.5px;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -.01em;
	color: #101010;
}

.pfk-terms__body {
	padding: 4px 20px 22px;
	font-size: 17px;
	line-height: 1.68;
	color: #383838;
}

.pfk-terms__body > p {
	margin: 0 0 15px;
}

.pfk-terms__body > p:last-child {
	margin-bottom: 0;
}

.pfk-terms__body strong {
	color: #111;
	font-weight: 700;
}

.pfk-terms__body a:not(.pfk-terms__action) {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Related CTAs — same geometry/type as Contact/FAQ support CTA, light-surface variant */
.pfk-terms__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.pfk-terms__action {
	box-sizing: border-box;
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	max-width: 100%;
	margin: 0;
	padding: 0 1.125rem;
	border: 1px solid #dedede;
	border-radius: .5625rem;
	background: #fff;
	color: #111318;
	font-size: .875rem;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.pfk-terms__action:hover {
	background: #f3f4f6;
	border-color: #d2d2d2;
	color: #111318;
}

.pfk-terms__action:focus-visible {
	outline: 2px solid #111318;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.pfk-terms__wrap,
	.pfk-terms__sticky-inner {
		width: calc(100% - 28px);
	}

	.pfk-terms__hero {
		padding: 18px 0 14px;
	}

	.pfk-terms__hero-panel {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"main"
			"aside";
		column-gap: 12px;
		row-gap: 8px;
		padding: 16px 16px 16px 18px;
		align-items: start;
	}

	.pfk-terms__hero-main {
		align-self: stretch;
	}

	.pfk-terms__h1 {
		font-size: clamp(28px, 8.2vw, 34px);
	}

	.pfk-terms__hero-aside {
		grid-column: auto;
		min-width: 0;
		margin-top: 4px;
		padding: 12px 0 0;
		border-left: 0;
		border-top: 1px solid #dedede;
	}

	.pfk-terms__hero-aside strong {
		max-width: none;
	}

	.pfk-terms__hero-main > p {
		font-size: 15.5px;
		margin-top: 6px;
	}

	.pfk-terms__list {
		padding: 36px 0 40px;
	}

	.pfk-terms__section-head {
		padding: 16px;
		gap: 10px;
	}

	.pfk-terms__section-head h2 {
		font-size: 18px;
		line-height: 1.35;
	}

	.pfk-terms__body {
		padding: 2px 16px 18px;
		font-size: 16.5px;
		line-height: 1.7;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pfk-terms__chip,
	.pfk-terms__action {
		transition: none;
	}
}
