/**
 * Privacy Policy page — all styles for this page, complete in this one file.
 * Loaded only on /privacy-policy/. The site frame (base, header, menu, footer) is in assets/css/core/.
 *
 * Contents:
 *   1. Building blocks (buttons, cards, page hero, CTA …)
 *   2. Policy page layout
 *   3. Privacy Policy page layout
 */

/* ========================================================================
   1. Building blocks (buttons, cards, page hero, CTA …)
   ======================================================================== */

/* ==========================================================================
   Shared UI components
   Grids, breadcrumbs, page hero, program & post cards, filter tabs, team, CTA, cards, chips, pagination, WhatsApp button.
   ========================================================================== */

/* ---------- Grids ---------- */

.card-grid {
	display: grid;
	gap: clamp(18px, 2.4vw, 28px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

@media (min-width: 700px) {
	.card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
	.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	font-weight: 600;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs li + li::before {
	content: "/";
	opacity: 0.5;
}

.breadcrumbs a {
	color: #fff;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs [aria-current] {
	color: var(--lime);
}

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

.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(380px, 52vh, 560px);
	padding-block: clamp(110px, 12vw, 150px) clamp(48px, 6vw, 80px);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.page-hero--sm {
	min-height: clamp(320px, 42vh, 440px);
}

.page-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: heroZoom 18s var(--ease) both;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(15, 36, 29, 0.35) 0%, rgba(15, 36, 29, 0.25) 40%, rgba(15, 36, 29, 0.88) 100%),
		linear-gradient(90deg, rgba(15, 36, 29, 0.6) 0%, rgba(15, 36, 29, 0) 70%);
}

.page-hero__inner {
	max-width: 1320px;
}

.page-hero__title {
	max-width: 17ch;
	margin-bottom: 0.3em;
	color: #fff;
	animation: fadeUp 1s var(--ease) 0.1s both;
}

.page-hero__text {
	max-width: 60ch;
	margin-bottom: 26px;
	font-size: var(--fs-lg);
	color: rgba(255, 255, 255, 0.85);
	animation: fadeUp 1s var(--ease) 0.2s both;
}

.page-hero .btn-row {
	animation: fadeUp 1s var(--ease) 0.3s both;
}

@keyframes heroZoom {
	from { transform: scale(1.12); }
	to { transform: scale(1); }
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Program card ---------- */

.program-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.program-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.program-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.program-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.program-card:hover .program-card__media img {
	transform: scale(1.07);
}

.program-card__media::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(transparent, rgba(15, 36, 29, 0.55));
}

.program-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: var(--saffron);
	color: var(--ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.program-card__duration {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.program-card__duration .icon {
	width: 15px;
	height: 15px;
}

.program-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 22px;
}

.program-card__cat {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--moss);
}

.program-card__title {
	margin: 0 0 10px;
	font-size: 1.32rem;
	line-height: 1.2;
}

.program-card__title a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.5s var(--ease);
}

.program-card:hover .program-card__title a {
	background-size: 100% 1px;
}

.program-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.program-card {
	position: relative;
}

.program-card__excerpt {
	flex: 1;
	margin-bottom: 18px;
	font-size: 0.93rem;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.program-card__foot {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.program-card__foot small {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.program-card__foot strong {
	font-size: 1.02rem;
	color: var(--ink);
}

.program-card__arrow {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--sand);
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}

.program-card:hover .program-card__arrow {
	background: var(--coral-deep);
	color: #fff;
	transform: rotate(-45deg);
}

.program-card mark.tbc {
	position: relative;
	z-index: 1;
}

.program-card.is-hidden {
	display: none;
}

/* ---------- Post card ---------- */

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.post-card:hover .post-card__media img {
	transform: scale(1.06);
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 26px;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
}

.post-card__title {
	font-size: 1.3rem;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card__excerpt {
	flex: 1;
	font-size: 0.93rem;
	color: var(--muted);
}

.post-card .link-arrow {
	position: relative;
	z-index: 1;
	align-self: flex-start;
}

.tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--pill);
	background: var(--sand);
	color: var(--moss);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

/* ---------- Filter tabs ---------- */

.filter-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 32px;
	padding-bottom: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
	display: none;
}

.filter-tabs--center {
	justify-content: flex-start;
}

@media (min-width: 1100px) {
	.filter-tabs--center {
		justify-content: center;
		flex-wrap: wrap;
	}
}

.filter-tab {
	flex: none;
	padding: 10px 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.filter-tab:hover {
	border-color: var(--ink);
}

.filter-tab.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ---------- Team ---------- */

.team-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

@media (min-width: 1100px) {
	.team-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.team-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.team-grid--2 {
	max-width: 1000px;
	margin-inline: auto;
}

@media (min-width: 760px) {
	.team-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.team-card {
	position: relative;
	border-radius: var(--radius-lg);
	background: var(--paper);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.team-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.team-card__photo {
	aspect-ratio: 1 / 1.05;
	overflow: hidden;
	background: var(--sand);
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 1.2s var(--ease);
}

.team-card:hover .team-card__photo img {
	transform: scale(1.06);
}

.team-card__body {
	padding: 18px 20px 22px;
}

.team-card__role {
	margin: 0 0 4px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--coral-deep);
}

.team-card__name {
	margin-bottom: 6px;
	font-size: 1.28rem;
}

.team-card__title {
	margin: 0;
	font-size: 0.86rem;
	color: var(--muted);
	line-height: 1.5;
}

.team-card__bio {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 0.95rem;
}

.team-card--bio {
	display: grid;
}

@media (min-width: 620px) {
	.team-card--bio {
		grid-template-columns: 0.8fr 1.2fr;
	}
	.team-card--bio .team-card__photo {
		aspect-ratio: auto;
		height: 100%;
		min-height: 320px;
	}
	.team-card--bio .team-card__body {
		padding: 28px;
		align-self: center;
	}
}

/* ---------- CTA banner ---------- */

.cta-banner {
	padding-block: 0 var(--section);
}

.section--sand + .cta-banner,
.related + .cta-banner {
	padding-top: 0;
	background: linear-gradient(var(--sand) 50%, var(--cream) 50%);
}

.cta-banner__card {
	position: relative;
	display: grid;
	min-height: 380px;
	padding: clamp(36px, 6vw, 80px);
	border-radius: var(--radius-lg);
	background: var(--ink);
	color: rgba(255, 255, 255, 0.85);
	overflow: hidden;
	isolation: isolate;
	align-items: center;
}

.cta-banner__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.cta-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 6s var(--ease);
}

.cta-banner__card:hover .cta-banner__media img {
	transform: scale(1.05);
}

.cta-banner__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(15, 36, 29, 0.95) 0%, rgba(15, 36, 29, 0.75) 50%, rgba(15, 36, 29, 0.25) 100%);
}

.cta-banner__content {
	max-width: 620px;
}

.cta-banner__title {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem);
	color: #fff;
}

.cta-banner__content > p:not(.eyebrow) {
	font-size: var(--fs-lg);
	margin-bottom: 28px;
}

/* ---------- Cards ---------- */

.icon-card,
.glass-card {
	padding: 30px 28px;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.icon-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.icon-card h3,
.glass-card h3 {
	font-size: 1.3rem;
}

.icon-card p,
.glass-card p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--muted);
}

.icon-card__icon,
.glass-card__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 22px;
	border-radius: 18px;
	background: var(--sand);
	color: var(--moss);
}

.icon-card__icon .icon,
.glass-card__icon .icon {
	width: 28px;
	height: 28px;
}

.glass-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--line-light);
	box-shadow: none;
}

.glass-card p {
	color: rgba(255, 255, 255, 0.7);
}

.glass-card__icon {
	background: rgba(159, 217, 79, 0.12);
	color: var(--lime);
}

.info-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: var(--sand);
}

.info-card > .icon {
	width: 28px;
	height: 28px;
	color: var(--moss);
}

.info-card p {
	flex: 1;
	min-width: 220px;
	margin: 0;
}

.policy-strip {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 32px;
	padding: 16px 20px;
	border: 1px dashed var(--line);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	color: var(--muted);
}

.policy-strip .icon {
	margin-top: 3px;
	color: var(--moss);
}

.policy-strip p {
	margin: 0;
}

.policy-strip a {
	color: var(--coral-deep);
	font-weight: 700;
}

.check-list {
	display: grid;
	gap: 12px;
}

.check-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.check-list .icon {
	width: 22px;
	height: 22px;
	padding: 3px;
	margin-top: 2px;
	border-radius: 50%;
	background: rgba(95, 143, 47, 0.14);
	color: var(--moss);
	stroke-width: 2.4;
}

.check-list--x .icon {
	background: rgba(196, 59, 51, 0.1);
	color: var(--coral-deep);
}

.check-list--lg li {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
}

.help-card {
	padding: 26px;
	border-radius: var(--radius);
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
}

.help-card h2 {
	font-size: 1.45rem;
	color: #fff;
}

.help-card .btn {
	margin-top: 6px;
}

.help-card .btn--outline {
	--btn-fg: #fff;
}

.help-card__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

/* Booking card (program sidebar + blog aside) */
.book-card {
	padding: 26px;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.book-card__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius-sm);
	margin-bottom: 16px;
}

.book-card__title {
	font-size: 1.35rem;
}

/* ---------- Chips ---------- */

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.chip:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- Empty state / search ---------- */

.empty-state {
	max-width: 560px;
	margin: 0 auto;
	padding: 56px 24px;
	text-align: center;
}

.empty-state > .icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	color: var(--moss);
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 560px;
}

.search-bar {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

.search-form .field {
	flex: 1;
	min-height: 52px;
	padding: 12px 22px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
}

.search-form .btn {
	width: 52px;
	padding: 0;
}

/* ---------- Pagination ---------- */

.pagination {
	margin-top: 56px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 16px;
	border-radius: var(--pill);
	background: #1f8f4e;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 16px 40px -12px rgba(31, 143, 78, 0.7);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
	animation: floatIn 0.8s var(--ease) 1.2s both;
}

.whatsapp-float .icon {
	width: 28px;
	height: 28px;
}

.whatsapp-float:hover {
	transform: translateY(-4px);
}

.whatsapp-float::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: #1f8f4e;
	animation: pulse 2.8s var(--ease) infinite;
}

.whatsapp-float__label {
	display: none;
}

@media (min-width: 900px) {
	.whatsapp-float__label {
		display: inline;
	}
}

@keyframes pulse {
	0% { transform: scale(1); opacity: 0.6; }
	80%, 100% { transform: scale(1.35); opacity: 0; }
}

@keyframes floatIn {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */

.center-link {
	margin-top: 40px;
	text-align: center;
}

.hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Room prices (template-parts/components/room-prices.php, booking form) ---------- */

.room-prices,
.room-choice {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.room-tile {
	position: relative;
	display: grid;
	gap: 2px;
	padding: 14px 14px 12px;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
	transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}

label.room-tile {
	cursor: pointer;
}

label.room-tile:hover {
	border-color: rgba(15, 36, 29, 0.3);
	transform: translateY(-2px);
}

.room-tile input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Selected tile: dark with a tick. */
.room-tile:has(input:checked) {
	border-color: var(--ink);
	background: var(--ink);
	box-shadow: 0 14px 28px -16px rgba(15, 36, 29, 0.6);
}

.room-tile:has(input:checked) .room-tile__name,
.room-tile:has(input:checked) .room-tile__price {
	color: #fff;
}

.room-tile:has(input:checked) .room-tile__note {
	color: rgba(255, 255, 255, 0.65);
}

.room-tile:has(input:checked)::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 14px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--lime);
	border-bottom: 2px solid var(--lime);
	transform: rotate(-45deg);
}

.room-tile:has(input:focus-visible) {
	outline: 3px solid var(--saffron);
	outline-offset: 2px;
}

.room-tile__badge {
	position: absolute;
	top: -9px;
	right: 10px;
	padding: 2px 9px;
	border-radius: var(--pill);
	background: var(--lime);
	color: var(--ink);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.room-tile__name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--muted);
}

.room-tile__name .icon {
	width: 16px;
	height: 16px;
}

.room-tile__price {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
}

.room-tile__note {
	font-size: 0.72rem;
	color: var(--muted);
}

/* ---------- Teacher cards (v2): colour per card, quote on hover, full profile ---------- */

.team-card:nth-child(6n + 1) { --tc: #5f8f2f; --tc2: #9fd94f; }
.team-card:nth-child(6n + 2) { --tc: #c43b33; --tc2: #f0766d; }
.team-card:nth-child(6n + 3) { --tc: #2f7fc8; --tc2: #5aaef0; }
.team-card:nth-child(6n + 4) { --tc: #c98420; --tc2: #f0c060; }
.team-card:nth-child(6n + 5) { --tc: #7357c4; --tc2: #a48ce6; }
.team-card:nth-child(6n + 6) { --tc: #23897d; --tc2: #4fc3b5; }

.team-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease;
}

.team-card:hover {
	border-color: color-mix(in srgb, var(--tc) 45%, transparent);
	box-shadow: 0 30px 56px -32px var(--tc);
}

/* Colour bar that draws across the top of the text on hover. */
.team-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.team-card__body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--tc2), var(--tc));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}

.team-card:hover .team-card__body::before {
	transform: scaleX(1);
}

.team-card__photo {
	position: relative;
}

/* Monogram when there is no photo yet. */
.team-card__monogram {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 240px;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%),
		linear-gradient(150deg, var(--tc2), var(--tc));
	font-family: var(--serif);
	font-size: clamp(3.5rem, 6vw, 5rem);
	color: #fff;
	letter-spacing: 0.04em;
}

/* Quote slides up over the photo on hover. */
.team-card__quote {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	margin: 0;
	padding: 14px 16px 14px 40px;
	border-radius: 16px;
	background: rgba(15, 36, 29, 0.82);
	backdrop-filter: blur(6px);
	color: #fff;
	font-family: var(--serif);
	font-size: 0.98rem;
	font-style: italic;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.45s ease, transform 0.5s var(--ease);
}

.team-card__quote::before {
	content: "\201C";
	position: absolute;
	left: 12px;
	top: 2px;
	font-size: 2.4rem;
	color: var(--tc2);
}

.team-card:hover .team-card__quote,
.team-card:focus-within .team-card__quote {
	opacity: 1;
	transform: none;
}

.team-card__role {
	color: var(--tc);
}

.team-card__name {
	margin: 0;
	transition: color 0.3s ease;
}

.team-card:hover .team-card__name {
	color: var(--tc);
}

.team-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.team-card__tags li {
	padding: 4px 11px;
	border-radius: var(--pill);
	background: color-mix(in srgb, var(--tc2) 18%, var(--paper));
	font-size: 0.76rem;
	font-weight: 700;
	color: color-mix(in srgb, var(--tc) 80%, #000);
}

.team-card__bio {
	margin: 4px 0 0;
}

.team-card__creds {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 6px 12px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.team-card__creds li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--ink);
}

.team-card__creds .icon {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--tc);
}

/* Read full profile */
.team-card__more {
	margin-top: auto;
	padding-top: 6px;
}

.team-card__more summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--pill);
	border: 1.5px solid color-mix(in srgb, var(--tc) 40%, transparent);
	font-size: 0.84rem;
	font-weight: 800;
	color: var(--tc);
	cursor: pointer;
	list-style: none;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.team-card__more summary::-webkit-details-marker {
	display: none;
}

.team-card__more summary:hover {
	background: var(--tc);
	border-color: var(--tc);
	color: #fff;
}

.team-card__more summary .icon {
	width: 15px;
	height: 15px;
	transform: rotate(90deg);
	transition: transform 0.35s var(--ease);
}

.team-card__more[open] summary .icon {
	transform: rotate(-90deg);
}

.team-card__more [data-close],
.team-card__more[open] [data-open] {
	display: none;
}

.team-card__more[open] [data-close] {
	display: inline;
}

.team-card__profile {
	display: grid;
	gap: 12px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	animation: profile-in 0.45s var(--ease);
}

@keyframes profile-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.team-card__profile p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--muted);
}

.team-card__profile .team-card__label {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tc);
}

.team-card__skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -4px 0 0;
	padding: 0;
	list-style: none;
}

.team-card__skills li {
	padding: 4px 10px;
	border-radius: 8px;
	border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink);
}

.team-card__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.team-card__stats > div {
	padding: 10px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--tc2) 14%, var(--paper));
	text-align: center;
}

.team-card__stats dt {
	font-family: var(--serif);
	font-size: 1.35rem;
	color: var(--tc);
}

.team-card__stats dd {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted);
}

.team-card__fb {
	align-self: flex-start;
}

@media (hover: none) {
	.team-card__quote {
		display: none;
	}
}

/* Founder / management cards keep the photo beside the text. */
.team-card.team-card--bio {
	display: grid;
}

.team-card--bio .team-card__body {
	justify-content: center;
}

/* Social buttons on teacher cards (official brand colours on hover). */
.team-card__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.team-card__social .team-card__fb {
	margin-top: 0;
}

.team-card__ig {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 8px;
	border-radius: var(--pill);
	background: rgba(214, 36, 159, 0.1);
	font-size: 0.8rem;
	font-weight: 800;
	color: #c13584;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}

.team-card__ig .icon {
	width: 16px;
	height: 16px;
}

.team-card__ig:hover,
.team-card__ig:focus-visible {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- Choose your room ---------- */

.home-rooms {
	background:
		radial-gradient(45% 50% at 0% 0%, rgba(159, 217, 79, 0.14), transparent 70%),
		radial-gradient(45% 50% at 100% 100%, rgba(227, 161, 63, 0.14), transparent 70%),
		var(--cream);
}

.room-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 30px);
}

.room-card--lime    { --rc: #5f8f2f; --rc2: #9fd94f; }
.room-card--saffron { --rc: #b8741a; --rc2: #f0c060; }

.room-cards .room-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s ease, border-color 0.4s ease;
}

.room-cards .room-card:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--rc) 40%, transparent);
	box-shadow: 0 34px 60px -34px var(--rc);
}

/* Photos */
.room-card__media {
	position: relative;
	padding: 12px 12px 0;
}

.room-card__main {
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	background: var(--sand);
}

.room-card__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease), opacity 0.18s ease;
}

.room-card__main img.is-swapping {
	opacity: 0;
}

.room-card:hover .room-card__main img {
	transform: scale(1.05);
}

.room-card__badge {
	position: absolute;
	top: 26px;
	left: 26px;
	padding: 6px 14px;
	border-radius: var(--pill);
	background: var(--rc);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	box-shadow: 0 10px 20px -10px var(--rc);
}

.room-card__badge--alt {
	background: var(--ink);
	color: var(--rc2);
}

.room-card__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.room-card__thumb {
	padding: 0;
	aspect-ratio: 4 / 3;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: var(--sand);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.room-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.room-card__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.room-card__thumb.is-active {
	opacity: 1;
	border-color: var(--rc);
}

/* Text */
.room-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
	padding: 20px clamp(18px, 2.4vw, 28px) 26px;
}

.room-card__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.room-card__name {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem);
}

.room-card__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--rc2) 22%, var(--paper));
	color: var(--rc);
	transition: background 0.35s ease, color 0.35s ease, transform 0.45s var(--ease);
}

.room-card__icon .icon {
	width: 22px;
	height: 22px;
}

.room-card:hover .room-card__icon {
	background: var(--rc);
	color: #fff;
	transform: rotate(-8deg);
}

.room-card__price {
	text-align: right;
}

.room-card__price small {
	display: block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.room-card__price strong {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
	font-weight: 500;
	line-height: 1.1;
	color: var(--rc);
	white-space: nowrap;
}

.room-card__lead {
	margin: 0;
	color: var(--muted);
}

.room-card__feats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-card__feats li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink);
}

.room-card__feats .icon {
	flex: none;
	width: 20px;
	height: 20px;
	padding: 3px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--rc2) 35%, var(--paper));
	color: var(--rc);
	stroke-width: 3;
}

.room-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding: 14px 22px;
	border-radius: var(--pill);
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.room-card__btn .icon {
	width: 17px;
	height: 17px;
	transition: transform 0.35s var(--ease);
}

.room-card:hover .room-card__btn {
	background: linear-gradient(120deg, var(--rc2), var(--rc));
	box-shadow: 0 14px 28px -14px var(--rc);
}

.room-card__btn:hover .icon {
	transform: translateX(4px);
}

/* Included with every room */
.room-included {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	margin-top: 26px;
	padding: 16px 22px;
	border-radius: var(--pill);
	background: var(--paper);
	border: 1px dashed rgba(95, 143, 47, 0.45);
}

.room-included__title {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--moss);
}

.room-included ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-included li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink);
}

.room-included li span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(159, 217, 79, 0.2);
	color: var(--moss);
}

.room-included li .icon {
	width: 16px;
	height: 16px;
}

/* Facilities strip */
.room-facilities {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.room-facility {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	overflow: hidden;
}

.room-facility img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.room-facility::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(transparent, rgba(15, 36, 29, 0.8));
}

.room-facility figcaption {
	position: absolute;
	left: 14px;
	bottom: 12px;
	z-index: 1;
	font-weight: 800;
	font-size: 0.9rem;
	color: #fff;
	transition: transform 0.4s var(--ease);
}

.room-facility:hover img {
	transform: scale(1.08);
}

.room-facility:hover figcaption {
	transform: translateY(-4px);
}

/* Program pages: section spacing */
.program-rooms .section-head {
	margin-bottom: 26px;
}

@media (max-width: 899px) {
	.room-cards {
		grid-template-columns: 1fr;
	}

	.room-facilities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.room-included {
		border-radius: var(--radius-lg);
	}
}

@media (max-width: 479px) {
	.room-card__feats {
		grid-template-columns: 1fr;
	}

	.room-card__top {
		flex-direction: column;
		align-items: flex-start;
	}

	.room-card__price {
		text-align: left;
	}
}

/* Price per course inside each room card (main menu pages). */
.room-card__list {
	padding: 14px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--rc2) 12%, var(--cream));
	border: 1px solid color-mix(in srgb, var(--rc) 20%, transparent);
}

.room-card__list-head {
	margin: 0 0 8px;
	padding: 0 4px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rc);
}

.room-card__list ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-card__list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--paper);
	border: 1px solid transparent;
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.room-card__list a:hover {
	transform: translateX(4px);
	border-color: color-mix(in srgb, var(--rc) 45%, transparent);
	box-shadow: 0 12px 24px -18px var(--rc);
}

.room-card__list-name {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.3;
}

.room-card__list-name small {
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--muted);
}

.room-card__list strong {
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--rc);
}

.room-card__list-go {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--rc2) 25%, var(--paper));
	color: var(--rc);
	transition: background 0.3s ease, color 0.3s ease;
}

.room-card__list-go .icon {
	width: 14px;
	height: 14px;
}

.room-card__list a:hover .room-card__list-go {
	background: var(--rc);
	color: #fff;
}

/* ========================================================================
   2. Policy page layout
   ======================================================================== */

/* ==========================================================================
   Policy page layout (shared)
   Used by: Refund Policy, Terms & Conditions, Privacy Policy.
   Each policy sets its own --legal-accent in pages/{refund|terms|privacy}/*.css.
   ========================================================================== */

.legal-layout {
	--legal-accent: var(--coral-deep);
	--legal-soft: rgba(196, 59, 51, 0.08);
	display: grid;
	gap: 40px;
}

@media (min-width: 1000px) {
	.legal-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 72px;
		align-items: start;
	}
	.legal-aside {
		position: sticky;
		top: calc(var(--sticky-offset, 100px) + 24px);
		max-height: calc(100vh - var(--sticky-offset, 100px) - 40px);
		overflow-y: auto;
		scrollbar-width: thin;
	}
}

/* ---------- Content ---------- */

.legal-content h2 {
	font-size: 1.5rem;
	scroll-margin-top: calc(var(--sticky-offset, 100px) + 24px);
}

.legal-content h2::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-bottom: 12px;
	border-radius: 3px;
	background: var(--legal-accent);
}

.legal-content h2:first-child {
	margin-top: 0;
}

.legal-aside {
	display: grid;
	gap: 18px;
	align-content: start;
}

.legal-aside h2 {
	margin-bottom: 12px;
	font-family: var(--sans);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- At a glance ---------- */

.legal-summary {
	padding: 22px;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	border-top: 4px solid var(--legal-accent);
}

.legal-summary ul {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.legal-summary li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--muted);
}

.legal-summary strong {
	display: block;
	font-size: 0.95rem;
	color: var(--ink);
}

.legal-summary__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--legal-soft);
	color: var(--legal-accent);
}

.legal-summary__icon .icon {
	width: 18px;
	height: 18px;
}

/* ---------- On this page (built by components/toc.js) ---------- */

.legal-toc {
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.legal-toc[hidden] {
	display: none;
}

.legal-toc ol {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.legal-toc a {
	display: flex;
	gap: 10px;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 0.86rem;
	line-height: 1.4;
	color: var(--muted);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.legal-toc a::before {
	counter-increment: toc;
	content: counter(toc, decimal-leading-zero);
	flex: none;
	font-weight: 800;
	color: var(--legal-accent);
	opacity: 0.6;
}

.legal-toc a:hover,
.legal-toc a.is-active {
	background: var(--legal-soft);
	color: var(--ink);
}

.legal-toc a.is-active::before {
	opacity: 1;
}

/* ---------- Other policies ---------- */

.legal-nav {
	padding: 20px 22px;
	border-radius: var(--radius);
	background: var(--sand);
}

.legal-nav ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.legal-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current] {
	background: var(--paper);
	color: var(--legal-accent);
}

/* ========================================================================
   3. Privacy Policy page layout
   ======================================================================== */

/* ==========================================================================
   Privacy Policy page
   Layout: section 2 above · Calm blue: your data.
   ========================================================================== */

.page-template-template-privacy .legal-layout {
	--legal-accent: #2b6a8c;
	--legal-soft: rgba(43, 106, 140, 0.09);
}

/* Short sections: present them as cards. */
@media (min-width: 700px) {
	.page-template-template-privacy .legal-content h2 {
		margin-top: 1.4em;
		padding-top: 1.1em;
		border-top: 1px solid var(--line);
	}
	.page-template-template-privacy .legal-content h2::before {
		display: none;
	}
}

/* ========================================================================
   Policy page v2 — at-a-glance strip, numbered section cards, tabs, CTA
   ======================================================================== */

body {
	--l2: #2b6a8c;
	--l2-soft: #e4eff6;
	--l2-deep: #163a4f;
}

/* At a glance (overlaps the hero) */
.legal2-glance {
	position: relative;
	z-index: 2;
	margin-top: -48px;
}

.legal2-glance__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.legal2-glance__list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
	border-radius: 20px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 4px solid var(--l2);
	box-shadow: 0 24px 44px -32px rgba(15, 36, 29, 0.55);
	transition: transform 0.4s var(--ease);
}

.legal2-glance__list li:hover {
	transform: translateY(-4px);
}

.legal2-glance__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--l2-soft);
	color: var(--l2);
}

.legal2-glance__icon .icon {
	width: 21px;
	height: 21px;
}

.legal2-glance__list strong {
	display: block;
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--ink);
}

.legal2-glance__list small {
	display: block;
	margin-top: 3px;
	font-size: 0.86rem;
	line-height: 1.45;
	color: var(--muted);
}

/* Layout */
.legal2 {
	padding-top: clamp(40px, 5vw, 64px);
}

.legal2__layout {
	--legal-accent: var(--l2);
	--legal-soft: var(--l2-soft);
	align-items: start;
}

.legal2__content {
	max-width: none;
}

.legal2-intro {
	margin-bottom: 22px;
	padding: 18px 22px;
	border-radius: 18px;
	background: var(--l2-soft);
	font-family: var(--serif);
	font-size: 1.15rem;
	color: var(--ink);
}

.legal2-intro p {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* Numbered section cards */
.legal2-block {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	margin: 0 0 16px;
	padding: 22px 24px;
	border-radius: 22px;
	background: var(--paper);
	border: 1px solid var(--line);
	transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
	scroll-margin-top: 140px;
}

.legal2-block:hover {
	border-color: color-mix(in srgb, var(--l2) 35%, transparent);
	box-shadow: 0 26px 50px -38px var(--l2);
	transform: translateY(-2px);
}

.legal2-block__num {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--l2);
	font-family: var(--serif);
	font-size: 1.2rem;
	color: #fff;
}

.legal2 .legal-content .legal2-block h2 {
	margin: 8px 0 10px;
	padding: 0;
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
	line-height: 1.25;
	color: var(--ink);
	scroll-margin-top: 140px;
}

.legal2 .legal-content .legal2-block h2::before {
	display: none;
}

.legal2 .legal-content .legal2-block p {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	line-height: 1.75;
	color: var(--muted);
}

.legal2 .legal-content .legal2-block p:last-child {
	margin-bottom: 0;
}

.legal2 .legal-content .legal2-block ul {
	margin: 6px 0 0;
}

.legal2-updated {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 24px 0 0;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--muted);
}

.legal2-updated .icon {
	width: 16px;
	height: 16px;
	color: var(--l2);
}

/* Aside: policy tabs, contents, help */
.legal2__aside {
	display: grid;
	gap: 16px;
}

.legal2-tabs {
	display: grid;
	gap: 6px;
	padding: 8px;
	border-radius: 20px;
	background: var(--paper);
	border: 1px solid var(--line);
}

.legal2-tabs__tab {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 14px;
	font-weight: 800;
	color: var(--ink);
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;
}

.legal2-tabs__tab .icon {
	width: 18px;
	height: 18px;
	color: var(--muted);
}

.legal2-tabs__tab:hover {
	background: var(--cream);
}

.legal2-tabs__tab[aria-current="page"] {
	background: var(--l2);
	color: #fff;
}

.legal2-tabs__tab[aria-current="page"] .icon {
	color: #fff;
}

.legal2-toc {
	padding: 18px 18px 14px;
	border-radius: 20px;
	background: var(--paper);
	border: 1px solid var(--line);
}

.legal2-toc a.is-active {
	color: var(--l2);
}

.legal2-help {
	padding: 22px;
	border-radius: 22px;
	background:
		radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--l2) 30%, transparent), transparent 70%),
		#14332a;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
}

.legal2-help__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.legal2-help__icon .icon {
	width: 21px;
	height: 21px;
}

.legal2-help h2 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	color: #fff;
}

.legal2-help p {
	margin: 0 0 14px;
	font-size: 0.9rem;
	line-height: 1.55;
}

.legal2-help .btn {
	gap: 8px;
}

.legal2-help__mail {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 0.82rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.legal2-help__mail .icon {
	flex: none;
	width: 15px;
	height: 15px;
}

.legal2-help__mail:hover {
	color: #fff;
}

/* Still have questions */
.legal2-cta {
	padding-bottom: clamp(40px, 5vw, 72px);
}

.legal2-cta__box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: clamp(24px, 3.4vw, 44px);
	border-radius: 28px;
	background:
		radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--l2) 40%, transparent), transparent 70%),
		linear-gradient(135deg, #1d4536, #0f2a20);
	color: rgba(255, 255, 255, 0.8);
}

.legal2-cta__eyebrow {
	margin: 0 0 6px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b8e07a;
}

.legal2-cta__box h2 {
	margin: 0 0 6px;
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
	color: #fff;
}

.legal2-cta__box p {
	margin: 0;
	max-width: 560px;
}

.legal2-cta__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 1023px) {
	.legal2-glance__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.legal2-glance {
		margin-top: -32px;
	}

	.legal2-glance__list {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.legal2-block {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 18px;
	}

	.legal2-block__num {
		width: 40px;
		height: 40px;
	}
}

/* Lists inside section cards: clean items with a coloured dot (not the old tinted box). */
.legal2 .legal-content .legal2-block ul,
.legal2 .legal-content .legal2-block ol {
	display: grid;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	list-style: none;
}

.legal2 .legal-content .legal2-block li {
	position: relative;
	margin: 0;
	padding: 0 0 0 26px;
	line-height: 1.7;
	color: var(--muted);
}

.legal2 .legal-content .legal2-block li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 4px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--l2);
	box-shadow: 0 0 0 4px var(--l2-soft);
}

/* Sidebar: show everything (no inner scroll), so the help card is never cut off. */
@media (min-width: 1024px) {
	.legal2 .legal2__aside {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.legal2 .legal2-toc {
		position: sticky;
		top: calc(var(--sticky-offset, 100px) + 20px);
	}
}

.legal2 .legal2-help h2 {
	margin: 0 0 6px;
	font-family: var(--serif);
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}

/* Headings inside section cards: no old divider lines. */
.legal2 .legal-content .legal2-block h2 {
	border: 0;
	padding-top: 0;
}

/* ---------- Page hero: stronger contrast so the title and text are easy to read ---------- */

.page-hero::after {
	background:
		linear-gradient(180deg, rgba(10, 24, 19, 0.45) 0%, rgba(10, 24, 19, 0.4) 40%, rgba(10, 24, 19, 0.92) 100%),
		linear-gradient(90deg, rgba(10, 24, 19, 0.82) 0%, rgba(10, 24, 19, 0.45) 50%, rgba(10, 24, 19, 0.1) 85%);
}

.page-hero .breadcrumbs,
.page-hero .eyebrow,
.page-hero__title,
.page-hero__text {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.page-hero__text {
	color: rgba(255, 255, 255, 0.92);
}

/* ---------- Closing banner: compact height ---------- */

.cta-banner__card {
	min-height: 0;
	padding: clamp(26px, 3.4vw, 46px) clamp(24px, 4.6vw, 64px);
	border: 1px solid rgba(159, 217, 79, 0.18);
	box-shadow: 0 30px 60px -40px rgba(11, 26, 20, 0.7);
}

.cta-banner__card::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: linear-gradient(180deg, #9fd94f, #e3a13f);
}

.cta-banner__content {
	max-width: 760px;
}

.cta-banner__content .eyebrow {
	margin-bottom: 8px;
}

.cta-banner__title {
	margin-bottom: 10px;
	font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem);
	line-height: 1.12;
}

.cta-banner__content > p:not(.eyebrow) {
	max-width: 62ch;
	margin-bottom: 18px;
	font-size: 1rem;
	line-height: 1.6;
}
