/*
 * Legal pages (owner request 2026-11-02: new UI): Terms & Conditions, Privacy Policy,
 * Copyright Notice, Return Policy (template-parts/wx-legal.php). Same tokens, arcs and cards
 * as the Contact and FAQ pages.
 */

.wx-lg {
	--wx-dark: #131313;
	--wx-grey: #575757;
	--wx-cream: #fcf6ef;
	--wx-paper: #fcf6ef;
	--wx-edge: #ece4d8;
	--wx-pad: max(40px, calc((100% - 1400px) / 2));
	color: #404040;
	font-family: "Manrope", sans-serif;
}

.wx-lg h1,
.wx-lg h2,
.wx-lg p {
	margin: 0;
}

/* ---------- hero ---------- */

.wx-lg-hero {
	padding: 150px var(--wx-pad) 90px;
	border-bottom: 1px solid var(--wx-edge);
	background:
		radial-gradient(circle at 100% 0, transparent 389px, rgba(160, 145, 125, .2) 390px, transparent 391.5px, transparent 479px, rgba(160, 145, 125, .13) 480px, transparent 481.5px, transparent 579px, rgba(160, 145, 125, .08) 580px, transparent 581.5px),
		radial-gradient(55% 90% at 88% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 60%),
		linear-gradient(170deg, #fffbf6 0%, #f8f1e7 60%, #f1e8dc 100%);
}

.wx-lg-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	align-items: end;
	gap: 70px;
}

.wx-lg p.wx-lg-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	color: var(--wx-grey);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.wx-lg-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.wx-lg-hero h1 {
	color: var(--wx-dark);
	font-weight: 700;
	line-height: 1.1;
}

.wx-lg p.wx-lg-lead {
	max-width: 640px;
	margin-top: 20px;
	color: var(--wx-grey);
	font-size: 19px;
	line-height: 1.55;
}

/* effective date, sections and the support email as a quiet card */
.wx-lg-meta {
	padding: 10px 28px;
	border: 1px solid var(--wx-edge);
	border-radius: 24px;
	background: rgba(255, 255, 255, .86);
	box-shadow: 0 50px 90px -50px rgba(70, 50, 25, .35);
}

.wx-lg-meta p {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
}

.wx-lg-meta p + p {
	border-top: 1px solid #efe8de;
}

.wx-lg-meta span {
	color: #7d7a75;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.wx-lg-meta strong {
	color: var(--wx-dark);
	font-size: 17px;
	font-weight: 600;
	text-align: right;
}

.wx-lg-meta a {
	color: inherit !important;
	font-size: inherit !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- body: menu and article ---------- */

.wx-lg-body {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	align-items: start;
	gap: 80px;
	padding: 90px var(--wx-pad) 110px;
}

.wx-lg-aside {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 26px;
}

.wx-lg p.wx-lg-aside__label {
	margin-bottom: 12px;
	color: var(--wx-grey);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.wx-lg-toc ol,
.wx-lg-others ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wx-lg-toc ol {
	max-height: calc(100vh - 330px);
	overflow-y: auto;
	border-left: 1px solid var(--wx-edge);
	scrollbar-width: thin;
}

.wx-lg-toc a {
	display: flex;
	gap: 12px;
	margin-left: -1px;
	padding: 8px 0 8px 16px;
	border-left: 2px solid transparent;
	color: var(--wx-grey) !important;
	font-size: 14px !important;
	line-height: 1.4;
	text-decoration: none;
	transition: color .25s ease, border-color .25s ease;
}

.wx-lg-toc a span {
	flex: none;
	color: #a9a49d;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}

.wx-lg-toc a:hover,
.wx-lg-toc a.is-active {
	border-left-color: var(--wx-dark);
	color: var(--wx-dark) !important;
}

.wx-lg-toc a.is-active {
	font-weight: 600;
}

.wx-lg-others a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--wx-edge);
	color: var(--wx-dark) !important;
	font-size: 15px !important;
	font-weight: 500;
	text-decoration: none;
}

.wx-lg-others a::after {
	content: "→";
	color: var(--wx-grey);
	transition: transform .3s ease;
}

.wx-lg-others a:hover::after {
	transform: translateX(4px);
}

/* the article */
.wx-lg-article {
	max-width: 860px;
	color: #404040;
	font-size: 17px;
	line-height: 1.75;
}

.wx-lg-intro {
	padding: 30px 34px;
	border: 1px solid var(--wx-edge);
	border-radius: 24px;
	background: var(--wx-paper);
	color: var(--wx-dark);
	font-size: 18px;
}

.wx-lg-section {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 10px;
	padding: 44px 0;
	border-bottom: 1px solid var(--wx-edge);
	scroll-margin-top: 100px;
}

.wx-lg-section__num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wx-dark);
	color: var(--wx-cream);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.wx-lg .wx-lg-section h2 {
	margin: 4px 0 14px;
	color: var(--wx-dark);
	font-size: 26px !important;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.4px;
}

.wx-lg-section p + p,
.wx-lg-section ul + p,
.wx-lg-section p + ul,
.wx-lg-section h4 {
	margin-top: 14px;
}

.wx-lg-section h4 {
	margin-bottom: 0;
	color: var(--wx-dark);
	font-size: 17px;
	font-weight: 600;
}

.wx-lg-section strong {
	color: var(--wx-dark);
	font-weight: 600;
}

/* list items with a small arrow, like the blog articles */
.wx-lg-section ul {
	display: grid;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.wx-lg-section li {
	position: relative;
	padding-left: 30px;
}

.wx-lg-section li::before {
	content: "";
	position: absolute;
	top: .55em;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wx-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4.5 9.5 8 6 11.5' fill='none' stroke='%23131313' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	box-shadow: inset 0 0 0 1px var(--wx-edge);
}

.wx-lg-article a {
	color: var(--wx-dark) !important;
	font-size: inherit !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* questions card */
.wx-lg-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 50px;
	padding: 34px 36px;
	border-radius: 24px;
	background: var(--wx-dark);
	color: #bdbab4;
}

.wx-lg .wx-lg-help h2 {
	color: var(--wx-cream);
	font-size: 26px !important;
	font-weight: 600;
	line-height: 1.25;
}

.wx-lg-help p {
	margin-top: 6px;
	font-size: 16px;
}

.wx-lg p.wx-lg-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.wx-lg-article .wx-lg-btn {
	display: inline-flex;
	padding: 13px 24px;
	border: 1px solid var(--wx-cream);
	border-radius: 40px;
	background: var(--wx-cream);
	color: var(--wx-dark) !important;
	font-size: 16px !important;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease;
}

.wx-lg-article .wx-lg-btn--ghost {
	background: transparent;
	color: var(--wx-cream) !important;
}

.wx-lg-article .wx-lg-btn:hover {
	background: transparent;
	color: var(--wx-cream) !important;
}

.wx-lg-article .wx-lg-btn--ghost:hover {
	background: var(--wx-cream);
	color: var(--wx-dark) !important;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.wx-lg-hero__inner,
	.wx-lg-body {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.wx-lg-aside {
		position: static;
	}

	.wx-lg-toc ol {
		max-height: none;
		columns: 2;
		column-gap: 24px;
	}

	.wx-lg-toc li {
		break-inside: avoid;
	}
}

@media (max-width: 767px) {
	.wx-lg-hero {
		padding: 110px 20px 50px;
	}

	.wx-lg p.wx-lg-lead {
		font-size: 16px;
	}

	.wx-lg-body {
		padding: 50px 20px 70px;
	}

	.wx-lg-toc ol {
		columns: 1;
	}

	.wx-lg-article {
		font-size: 16px;
	}

	.wx-lg-intro {
		padding: 22px 20px;
		font-size: 16px;
	}

	.wx-lg-section {
		grid-template-columns: 1fr;
		padding: 32px 0;
	}

	.wx-lg .wx-lg-section h2,
	.wx-lg .wx-lg-help h2 {
		font-size: 22px !important;
	}

	.wx-lg-help {
		padding: 26px 22px;
	}
}
