/*
 * About, Privacy and Refund & Returns patterns (inc/patterns.php).
 * Loaded on pages that use them and inside the block editor canvas.
 */

body.yozita-content-page {
	background: var(--yozita-color-background);
}
body.yozita-content-page .hero-section .page-title {
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.yz-content {
	--yz-card-pad: clamp(20px, 3.5vw, 48px);
	font-family: var(--yozita-font-family);
	color: var(--yozita-color-text);
	line-height: 1.7;
}
.yz-content :where(h1, h2, h3) {
	color: var(--yozita-color-text);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-wrap: balance;
}
.yz-content :where(h2) {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
}
.yz-content :where(h3) {
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0;
}
.yz-content :where(p) {
	margin-block: 0;
}
.yz-content > * + * {
	margin-top: clamp(2rem, 5vw, 4.5rem);
}
.yz-content .yz-eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	color: var(--yozita-color-brand-hover);
}
.yz-content .wp-block-buttons {
	gap: 12px;
}
.yz-content .wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	padding: 0 24px;
	border-radius: var(--yozita-radius);
	font-weight: 600;
}
.yz-content .is-style-outline .wp-block-button__link {
	border: 1.5px solid currentColor;
	background: transparent;
	color: var(--yozita-color-text);
}

/* Icons for value cards and return steps come from bundled Lucide files. */
/* ::before is the circle, ::after the red icon laid over it. */
.yz-content :is(.yz-value, .yz-step) {
	position: relative;
}
.yz-content :is(.yz-value, .yz-step)::before {
	content: "";
	display: block;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--yozita-color-surface);
}
.yz-content :is(.yz-value, .yz-step)::after {
	content: "";
	position: absolute;
	top: var(--yz-icon-top, 28px);
	left: var(--yz-icon-left, 28px);
	width: 52px;
	height: 52px;
	background: var(--yozita-color-brand);
	-webkit-mask: var(--yz-icon) center / 24px no-repeat;
	mask: var(--yz-icon) center / 24px no-repeat;
}
.yz-icon-leaf { --yz-icon: url("../icons/lucide/leaf.svg"); }
.yz-icon-package { --yz-icon: url("../icons/lucide/package.svg"); }
.yz-icon-shield-check { --yz-icon: url("../icons/lucide/shield-check.svg"); }
.yz-icon-file-text { --yz-icon: url("../icons/lucide/file-text.svg"); }
.yz-icon-rotate-ccw { --yz-icon: url("../icons/lucide/rotate-ccw.svg"); }

/* About ------------------------------------------------------------------ */
.yz-about .yz-about-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px);
	border-radius: 12px;
	background: var(--yozita-color-text);
	color: var(--yozita-color-surface);
}
.yz-about .yz-about-hero .yz-about-hero-image {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
	opacity: 0.4;
}
.yz-about .yz-about-hero .yz-about-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.yz-about .yz-about-hero :is(h1, p) {
	color: var(--yozita-color-surface);
	margin: 0;
}
.yz-about .yz-about-hero h1 {
	max-width: 16ch;
	font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}
.yz-about .yz-about-hero .yz-eyebrow {
	color: var(--yozita-color-surface);
}
.yz-about .yz-about-hero .yz-lead {
	max-width: 46ch;
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
	color: #f3f4f6;
}

.yz-content .yz-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.yz-content .yz-split-copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.yz-content .yz-split-copy p:not(.yz-eyebrow) {
	max-width: 60ch;
	color: var(--yozita-color-muted);
}
.yz-content .yz-split-image {
	margin: 0;
}
.yz-content .yz-split-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}
.yz-content .yz-split--card {
	gap: 0;
	overflow: hidden;
	border-radius: 12px;
	background: var(--yozita-color-surface);
}
.yz-content .yz-split--card .yz-split-image img {
	height: 100%;
	min-height: 300px;
	aspect-ratio: auto;
	border-radius: 0;
}
.yz-content .yz-split--card .yz-split-copy {
	padding: var(--yz-card-pad);
}

.yz-content .yz-band {
	padding: clamp(28px, 5vw, 56px);
	border-radius: 12px;
	background: var(--yozita-color-surface);
}
.yz-content .yz-band > h2 {
	margin: 0 0 8px;
}
.yz-content .yz-section-lead {
	margin-bottom: 32px;
	color: var(--yozita-color-muted);
}
.yz-content .yz-value-grid,
.yz-content .yz-step-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 24px;
}
.yz-content .yz-value {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 28px;
	border-radius: var(--yozita-radius);
	background: var(--yozita-color-background);
}
.yz-content :is(.yz-value, .yz-step) > * {
	margin: 0;
}
.yz-content .yz-value p {
	color: var(--yozita-color-muted);
	font-size: 0.9375rem;
}

.yz-content .yz-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding: clamp(32px, 5vw, 56px);
	border-radius: 12px;
	background: var(--yozita-color-brand);
	color: var(--yozita-color-surface);
}
.yz-content .yz-cta :is(h2, p) {
	margin: 0;
	color: var(--yozita-color-surface);
}
.yz-content .yz-cta p {
	margin-top: 6px;
}
.yz-content .yz-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--yozita-color-surface);
	color: var(--yozita-color-text);
}
.yz-content .yz-cta .is-style-outline .wp-block-button__link {
	color: var(--yozita-color-surface);
}

/* Legal pages ------------------------------------------------------------ */
.yz-legal > * + * {
	margin-top: 24px;
}
.yz-legal .yz-legal-updated {
	font-size: 0.875rem;
	color: var(--yozita-color-muted);
}
.yz-legal .yz-steps > h2 {
	margin: 0 0 16px;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0;
}
.yz-legal .yz-step {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 24px;
	border-radius: var(--yozita-radius);
	background: var(--yozita-color-surface);
	--yz-icon-top: 24px;
	--yz-icon-left: 24px;
}
.yz-legal .yz-step::before {
	margin-bottom: 12px;
	background: var(--yozita-color-background);
}
.yz-legal .yz-step .yz-step-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yozita-color-muted);
}
.yz-legal .yz-step h3 {
	font-size: 1rem;
	line-height: 1.4;
}
.yz-legal .yz-step p:not(.yz-step-label) {
	font-size: 0.875rem;
	color: var(--yozita-color-muted);
	line-height: 1.6;
}

.yz-legal-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	align-items: flex-start;
}
.yz-legal-toc {
	position: sticky;
	top: calc(var(--admin-bar, 0px) + 96px);
	flex: 0 0 260px;
	padding: 20px;
	border-radius: var(--yozita-radius);
	background: var(--yozita-color-surface);
	box-sizing: border-box;
}
.yz-legal-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 32px;
	list-style: none;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yozita-color-muted);
	pointer-events: none;
}
.yz-legal-toc summary::-webkit-details-marker {
	display: none;
}
.yz-legal-toc summary svg {
	display: none;
	width: 18px;
	height: 18px;
}
.yz-legal-toc ol {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 10px 0 0;
	padding-left: 20px;
	font-size: 0.875rem;
}
.yz-legal-toc a {
	display: inline-block;
	padding: 4px 0;
	color: var(--yozita-color-text);
	text-decoration: none;
}
.yz-legal-toc a:hover {
	color: var(--yozita-color-brand-hover);
	text-decoration: underline;
}
.yz-legal .yz-legal-body {
	flex: 999 1 560px;
	min-width: 0;
	margin: 0;
	padding: var(--yz-card-pad);
	border-radius: var(--yozita-radius);
	background: var(--yozita-color-surface);
	box-sizing: border-box;
}
.yz-legal .yz-legal-body > * {
	max-width: 70ch;
}
.yz-legal .yz-legal-body h2 {
	margin: 32px 0 10px;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
	scroll-margin-top: 120px;
}
.yz-legal .yz-legal-body > h2:first-child {
	margin-top: 0;
}
.yz-legal .yz-legal-body :is(p, li) {
	color: #374151;
	font-size: 0.9375rem;
}
.yz-legal .yz-legal-body p + p {
	margin-top: 10px;
}
.yz-legal .yz-legal-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: var(--yz-card-pad);
	border-radius: var(--yozita-radius);
	background: var(--yozita-color-text);
	color: var(--yozita-color-surface);
}
.yz-legal .yz-legal-help :is(h2, p) {
	margin: 0;
	color: var(--yozita-color-surface);
}
.yz-legal .yz-legal-help h2 {
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0;
}
.yz-legal .yz-legal-help p {
	margin-top: 4px;
	color: #d1d5db;
	font-size: 0.875rem;
}
.yz-legal .yz-legal-help .is-style-outline .wp-block-button__link {
	color: var(--yozita-color-surface);
}

@media (max-width: 999px) {
	.yz-legal-toc {
		position: static;
		flex-basis: 100%;
		padding: 4px 16px;
	}
	.yz-legal-toc summary {
		min-height: 48px;
		pointer-events: auto;
		cursor: pointer;
		font-size: 0.9375rem;
		letter-spacing: 0;
		text-transform: none;
		color: var(--yozita-color-text);
	}
	.yz-legal-toc summary svg {
		display: block;
	}
	.yz-legal-toc details[open] summary svg {
		rotate: 180deg;
	}
	.yz-legal-toc ol {
		margin-bottom: 12px;
	}
}
