/* Юридичні сторінки SunTime */

body.suntime-legal-page {
	--stl-heading: #0f172a;
	--stl-text: rgba(99, 105, 123, 0.92);
	--stl-accent: #ef533f;
	--stl-accent-soft: rgba(239, 83, 63, 0.1);
	--stl-border: #ebe4dc;
	--stl-surface: #fff;
	--stl-surface-muted: #f7f3ed;
	--stl-radius: 14px;
	--stl-anchor-offset: calc(var(--st-header-offset, 88px) + 10px);
}

body.suntime-legal-page .page_title,
body.suntime-legal-page .sc_layouts_title,
body.suntime-legal-page .entry-header {
	display: none;
}

body.suntime-legal-page .page_content_wrap {
	padding-top: 100px !important;
}

body.suntime-legal-page .page_content_wrap > .content_wrap {
	padding-left: var(--st-layout-gutter, clamp(16px, 4vw, 60px)) !important;
	padding-right: var(--st-layout-gutter, clamp(16px, 4vw, 60px)) !important;
}

body.suntime-legal-page .entry-content > .suntime-legal {
	margin-top: 0;
}

html.suntime-legal-page-anchor,
body.suntime-legal-page {
	scroll-padding-top: var(--stl-anchor-offset);
}

.suntime-legal {
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	padding: clamp(12px, 2vw, 24px) 0 clamp(48px, 6vw, 72px);
	color: var(--stl-text);
	font-size: 15px;
	line-height: 1.65;
}

.suntime-legal > header {
	margin-bottom: 28px;
}

.suntime-legal h1 {
	margin: 0 0 12px;
	font-family: var(--theme-font-h1_font-family, "Onest", sans-serif);
	font-size: clamp(32px, 4.5vw, 48px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--stl-heading);
}

.suntime-legal > header > p {
	margin: 0;
	max-width: 52em;
	font-size: 16px;
	line-height: 1.6;
}

.suntime-legal > header nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.suntime-legal > header nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--stl-border);
	border-radius: 999px;
	background: var(--stl-surface);
	color: var(--stl-heading) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.suntime-legal > header nav a:hover {
	border-color: rgba(239, 83, 63, 0.35);
	background: var(--stl-accent-soft);
	color: var(--stl-accent) !important;
}

.suntime-legal section {
	scroll-margin-top: var(--stl-anchor-offset);
}

.suntime-legal section + section {
	margin-top: 18px;
}

.suntime-legal__panel {
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid var(--stl-border);
	border-radius: var(--stl-radius);
	background: var(--stl-surface);
	box-sizing: border-box;
}

.suntime-legal__panel h2 {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--stl-border);
	font-size: clamp(22px, 2.5vw, 28px);
	font-weight: 600;
	line-height: 1.25;
	color: var(--stl-heading);
}

.suntime-legal__panel h2:not(:first-child) {
	margin-top: 1.75em;
}

.suntime-legal__panel h3 {
	margin: 1.25em 0 0.5em;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--stl-heading);
}

.suntime-legal__intro {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-left: 3px solid var(--stl-accent);
	border-radius: 0 8px 8px 0;
	background: var(--stl-surface-muted);
	color: var(--stl-heading);
	line-height: 1.6;
}

.suntime-legal p {
	margin: 0 0 0.85em;
}

.suntime-legal p > strong:first-child {
	color: var(--stl-heading);
}

.suntime-legal ul,
.suntime-legal ol {
	margin: 0 0 1em;
	padding-left: 1.35em;
}

.suntime-legal ul.suntime-legal__list--labeled {
	list-style: none;
	padding-left: 0;
}

.suntime-legal ul.suntime-legal__list--labeled li {
	padding-left: 1.25em;
}

.suntime-legal li {
	margin-bottom: 0.4em;
}

.suntime-legal li > strong:first-child {
	color: var(--stl-heading);
}

.suntime-legal p:last-child,
.suntime-legal ul:last-child,
.suntime-legal ol:last-child {
	margin-bottom: 0;
}

.suntime-legal a {
	color: var(--stl-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.suntime-legal a:hover {
	color: #d94432;
}

/* Інфо-блоки: оплата, доставка, обмін */
.suntime-info {
	margin-bottom: 28px;
}

.suntime-info:last-child {
	margin-bottom: 0;
}

.suntime-info__lead {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--stl-heading);
}

.suntime-info__strip {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
	padding: 16px 18px;
	border: 1px solid var(--stl-border);
	border-radius: var(--stl-radius);
	background: var(--stl-surface-muted);
	color: var(--stl-heading);
}

.suntime-info__strip p {
	margin: 0;
}

.suntime-info__block {
	margin-bottom: 24px;
	padding: clamp(18px, 3vw, 24px);
	border: 1px solid var(--stl-border);
	border-radius: var(--stl-radius);
	background: var(--stl-surface);
}

.suntime-info__block:last-of-type {
	margin-bottom: 0;
}

.suntime-info__block h3 {
	margin: 0 0 16px;
	font-size: clamp(20px, 2.2vw, 24px);
	font-weight: 600;
	line-height: 1.25;
	color: var(--stl-heading);
}

.suntime-info__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.suntime-info__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--stl-border);
	border-radius: 12px;
	background: var(--stl-surface-muted);
}

.suntime-info__card h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--stl-heading);
}

.suntime-info__card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

.suntime-info__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--stl-accent-soft);
	color: var(--stl-accent);
}

.suntime-info__icon--inline {
	width: 40px;
	height: 40px;
}

.suntime-info__metric {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.suntime-info__metric-value {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--stl-heading);
}

.suntime-info__metric-note {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.suntime-info__footnote {
	margin: 16px 0 0;
	padding: 14px 16px;
	border-left: 3px solid var(--stl-accent);
	border-radius: 0 8px 8px 0;
	background: rgba(239, 83, 63, 0.06);
}

.suntime-info__footnote p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--stl-heading);
}

.suntime-info__checks {
	margin: 0 0 24px;
	padding-left: 1.35em;
}

.suntime-info__checks li {
	margin-bottom: 0.35em;
}

.suntime-info__block ul,
.suntime-info__block ol {
	margin: 0;
	padding-left: 1.35em;
}

.suntime-info__block li {
	margin-bottom: 0.45em;
}

.suntime-info__steps {
	counter-reset: step;
	list-style: none;
	padding-left: 0;
}

.suntime-info__steps li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 2.5em;
}

.suntime-info__steps li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0.1em;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.65em;
	height: 1.65em;
	border-radius: 50%;
	background: var(--stl-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.suntime-info__outro {
	margin: 24px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--stl-border);
	font-size: 15px;
	line-height: 1.6;
	color: var(--stl-heading);
}

.suntime-legal--terms > header + div > .suntime-info:first-of-type {
	margin-top: 8px;
}

@media (max-width: 767px) {
	.suntime-legal > header nav {
		flex-direction: column;
		align-items: stretch;
	}

	.suntime-legal > header nav a {
		width: 100%;
	}
}
