.ns-legal-site {
	--ns-primary: #3B1E54;
	--ns-secondary: #F4B6A6;
	--ns-soft-background: #FDF1ED;
	--ns-text: #111111;
	--ns-background: #FFFFFF;
	--ns-font-heading: 'Outfit', sans-serif;
	--ns-font-body: 'Plus Jakarta Sans', sans-serif;
	color: var(--ns-text);
	background: var(--ns-background);
}

.ns-legal-main {
	min-height: 55vh;
}

/* Keep the compact legal header isolated from the global navigation styles. */
.ns-legal-site .ns-header--legal {
	position: relative;
	z-index: 10;
	border-bottom: 1px solid rgba(59, 30, 84, 0.1);
	background: var(--ns-background);
}

.ns-legal-site .ns-header-inner--legal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
	padding-block: 0;
}

.ns-legal-site .ns-header--legal .ns-wordmark {
	gap: 0.625rem;
	font-size: 1.4rem;
}

.ns-legal-site .ns-header--legal .ns-brand-logo {
	width: 46px;
	height: 46px;
	flex-basis: 46px;
}

.ns-legal-primary-nav {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
}

.ns-legal-home-link {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding-inline: 0.25rem;
	border-radius: 0.35rem;
	color: var(--ns-primary) !important;
	font-family: var(--ns-font-body);
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
}

.ns-legal-home-link:hover {
	text-decoration: underline;
	text-decoration-color: var(--ns-secondary);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.ns-legal-home-link:focus-visible {
	outline: 3px solid var(--ns-secondary);
	outline-offset: 2px;
}

.ns-legal-hero {
	position: relative;
	padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.75rem, 5vw, 4.5rem);
	background: radial-gradient(ellipse at 85% 0%, rgba(244, 182, 166, 0.28), transparent 44%), var(--ns-soft-background);
}

.ns-legal-hero-inner,
.ns-legal-content {
	width: min(100% - 2.5rem, 850px);
	margin-inline: auto;
}

.ns-legal-hero .ns-eyebrow {
	margin: 0 0 0.9rem;
	color: var(--ns-primary);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.11em;
}

.ns-legal-hero h1 {
	max-width: 18ch;
	margin: 0;
	color: var(--ns-primary);
	font-family: var(--ns-font-heading);
	font-size: clamp(2.35rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.ns-legal-intro {
	max-width: 68ch;
	margin: 1.25rem 0 0;
	font-size: clamp(1rem, 1.7vw, 1.14rem);
	line-height: 1.75;
}

.ns-legal-updated {
	margin: 1.2rem 0 0;
	color: #4d4651;
	font-size: 0.9rem;
}

.ns-legal-updated span {
	display: inline-block;
	margin-right: 0.25em;
	font-weight: 700;
}

.ns-legal-draft-notice {
	display: inline-block;
	margin: 1.25rem 0 0;
	padding: 0.55rem 0.8rem;
	border: 1px solid rgba(59, 30, 84, 0.22);
	border-radius: 0.55rem;
	background: rgba(255, 255, 255, 0.72);
	color: var(--ns-primary);
	font-size: 0.85rem;
	font-weight: 700;
}

.ns-legal-document {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.25rem, 7vw, 5.5rem);
}

.ns-legal-content {
	font-family: var(--ns-font-body);
	font-size: 17px;
	line-height: 1.75;
	word-break: normal;
	overflow-wrap: anywhere;
}

.ns-legal-content > p,
.ns-legal-content > ul,
.ns-legal-content > ol,
.ns-legal-content > .wp-block-group,
.ns-legal-content > nav {
	max-width: 76ch;
}

.ns-legal-content p {
	margin: 0 0 1.05rem;
}

.ns-legal-content h2 {
	margin: 2.65rem 0 0.85rem;
	padding-top: 0.25rem;
	color: var(--ns-primary);
	font-family: var(--ns-font-heading);
	font-size: clamp(1.45rem, 2.6vw, 1.85rem);
	font-weight: 650;
	line-height: 1.22;
	letter-spacing: -0.02em;
}

.ns-legal-content h3 {
	margin: 1.6rem 0 0.55rem;
	color: var(--ns-primary);
	font-family: var(--ns-font-heading);
	font-size: 1.2rem;
	font-weight: 650;
	line-height: 1.35;
}

.ns-legal-content ul,
.ns-legal-content ol {
	margin: 0 0 1.35rem;
	padding-inline-start: 1.45rem;
}

.ns-legal-content li {
	margin: 0.3rem 0;
	padding-inline-start: 0.15rem;
}

.ns-legal-content li::marker {
	color: var(--ns-primary);
	font-weight: 700;
}

.ns-legal-content a {
	color: #482763;
	font-weight: 650;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.ns-legal-content a:hover,
.ns-legal-content a:focus-visible {
	color: #28133b;
	text-decoration-thickness: 2px;
}

.ns-legal-toc {
	margin: 0 0 2.5rem;
	padding: 1.25rem 1.4rem 0.4rem;
	border: 1px solid rgba(59, 30, 84, 0.14);
	border-radius: 0.85rem;
	background: #fffaf8;
}

.ns-legal-toc h2 {
	margin: 0 0 0.7rem;
	font-size: 1.2rem;
}

.ns-legal-toc ul {
	columns: 2;
	column-gap: 2rem;
	margin-bottom: 0.6rem;
	font-size: 0.94rem;
}

.ns-legal-editor-note {
	margin: 0 0 2rem !important;
	padding: 1rem 1.15rem;
	border-left: 4px solid var(--ns-secondary);
	border-radius: 0 0.6rem 0.6rem 0;
	background: #fff7f4;
	color: #2a2030;
	font-size: 0.94rem;
}

@media (max-width: 782px) {
	.ns-legal-content {
		font-size: 16px;
	}

	.ns-legal-toc ul {
		columns: 1;
	}
}

@media (max-width: 480px) {
	.ns-legal-site .ns-header-inner--legal {
		min-height: 68px;
		gap: 0.75rem;
	}

	.ns-legal-site .ns-header--legal .ns-wordmark {
		gap: 0.45rem;
		font-size: 1.2rem;
	}

	.ns-legal-site .ns-header--legal .ns-brand-logo {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.ns-legal-hero-inner,
	.ns-legal-content {
		width: min(100% - 2rem, 850px);
	}

	.ns-legal-content h2 {
		margin-top: 2.2rem;
	}

	.ns-legal-content ul,
	.ns-legal-content ol {
		padding-inline-start: 1.25rem;
	}
}
