/* ==========================================================================
   Legal pages (privacy-policy.php, terms-condition.php via file/common/legal-page.php)
   1. Title band: breadcrumb, document switch, title, lead, facts row
   2. Body: sticky "On this page" list | numbered, ruled sections
   3. Questions band (plum)
   + print styles. No cards. Tokens (--pg-*) come from custom/css/nav.css.
   ========================================================================== */

.pg-lg { font-family: var(--pg-font); color: var(--pg-ink); }
.pg-lg :where(h1, h2, h3, h4) { font-family: var(--pg-font); }
:where(.pg-lg) :is(p, ul, ol, li, h1, h2, h3, h4) { margin: 0; }
:where(.pg-lg) :is(.pg-lg__crumbs, .pg-lg__meta, .pg-lg__toc, .pg-lg__ask-links) :is(ul, ol) { padding: 0; list-style: none; }
.pg-lg__meta, .pg-lg__ask-links { padding: 0; list-style: none; }
.pg-lg .pg-i { width: 18px; height: 18px; }

/* 1. Title band ============================================================ */
.pg-lg__hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(36px, 5vw, 72px) var(--pg-gutter) clamp(40px, 5vw, 64px);
	background: linear-gradient(180deg, #fdf6fa 0%, #f7f4fd 100%);
	border-bottom: 1px solid var(--pg-line);
}
.pg-lg__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.pg-lg__glow--a { width: 460px; height: 460px; left: -180px; top: -240px; background: rgba(230, 8, 127, .13); }
.pg-lg__glow--b { width: 520px; height: 520px; right: -160px; bottom: -300px; background: rgba(122, 104, 214, .18); }
.pg-lg__hero-in { max-width: 1240px; margin: 0 auto; }

.pg-lg__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.pg-lg__crumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--pg-muted); font-size: 14px; }
.pg-lg__crumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(59, 50, 132, .3); }
.pg-lg__crumbs a { color: var(--pg-plum); font-weight: 500; }
.pg-lg__crumbs a:hover { color: var(--pg-pink); }

/* Switch between the two legal documents: an underlined tab row, not pills */
.pg-lg__docs { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 22px; border-bottom: 1px solid rgba(59, 50, 132, .12); }
.pg-lg__docs a {
	position: relative; padding: 0 0 12px; color: var(--pg-muted);
	font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	transition: color .2s var(--pg-ease);
}
.pg-lg__docs a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
	background: var(--pg-pink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--pg-ease);
}
.pg-lg__docs a:hover { color: var(--pg-plum); }
.pg-lg__docs a[aria-current="page"] { color: var(--pg-pink); }
.pg-lg__docs a[aria-current="page"]::after { transform: none; }

.pg-lg__title {
	max-width: 820px; margin: 0 0 16px !important; color: var(--pg-plum);
	font: 600 clamp(38px, 4.6vw, 64px)/1.04 var(--pg-font); letter-spacing: -.022em;
}
.pg-lg .pg-lg__title span {
	display: block; margin-top: 10px; color: var(--pg-pink);
	font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25;
}
.pg-lg__lead { max-width: 680px; margin-bottom: 28px !important; color: var(--pg-muted); font-size: 18px; line-height: 1.65; }

.pg-lg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 0; }
.pg-lg__meta li {
	display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; color: var(--pg-ink); font-size: 14.5px;
	border-left: 1px solid rgba(59, 50, 132, .14);
}
.pg-lg__meta li:first-child { padding-left: 0; border-left: 0; }
.pg-lg__meta .pg-i { color: var(--pg-pink); }
.pg-lg__print {
	display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--pg-plum); font: 500 14.5px var(--pg-font);
	text-decoration: underline; text-decoration-color: rgba(59, 50, 132, .25); text-underline-offset: 4px;
	transition: color .2s, text-decoration-color .2s;
}
.pg-lg__print:hover { color: var(--pg-pink); text-decoration-color: currentColor; }
.pg-lg__print .pg-i { color: inherit; }

/* 2. Body ================================================================== */
.pg-lg__body {
	display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px);
	max-width: 1240px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--pg-gutter) clamp(56px, 6vw, 96px);
	box-sizing: content-box;
}
.pg-lg__body:not(:has(.pg-lg__aside)) { grid-template-columns: minmax(0, 1fr); }

/* Contents list: sticky under the header, the current section marked by a pink rule */
.pg-lg__aside { position: sticky; top: calc(var(--pg-bar-h) + 28px); align-self: start; max-height: calc(100vh - var(--pg-bar-h) - 56px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pg-lg__toc summary {
	display: flex; align-items: center; gap: 10px; margin-bottom: 14px; list-style: none; cursor: default;
	color: var(--pg-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.pg-lg__toc summary::-webkit-details-marker { display: none; }
.pg-lg__toc summary .pg-i { width: 16px; height: 16px; color: var(--pg-pink); }
.pg-lg__toc summary .pg-i:last-child { display: none; }
.pg-lg__toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--pg-line); }
.pg-lg__toc a {
	position: relative; display: flex; gap: 12px; padding: 8px 0 8px 18px; color: var(--pg-muted);
	font-size: 14.5px; line-height: 1.4; transition: color .2s var(--pg-ease);
}
.pg-lg__toc a::before {
	content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
	background: var(--pg-pink); transform: scaleY(0); transition: transform .3s var(--pg-ease);
}
.pg-lg__toc a b { flex: none; min-width: 20px; color: rgba(59, 50, 132, .4); font-size: 12px; font-weight: 600; line-height: 1.75; font-variant-numeric: tabular-nums; transition: color .2s; }
.pg-lg__toc a:hover { color: var(--pg-plum); }
.pg-lg__toc a[aria-current="true"] { color: var(--pg-plum); font-weight: 500; }
.pg-lg__toc a[aria-current="true"]::before { transform: none; }
.pg-lg__toc a[aria-current="true"] b { color: var(--pg-pink); }
.pg-lg__aside-help { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid var(--pg-line); color: var(--pg-muted); font-size: 14px; line-height: 1.6; }
.pg-lg__aside-help a { display: block; color: var(--pg-plum); font-weight: 500; overflow-wrap: anywhere; }
.pg-lg__aside-help a:hover { color: var(--pg-pink); }

/* The document */
.pg-lg__doc { max-width: 760px; }
.pg-lg__intro { padding-bottom: 36px; }
.pg-lg__intro > p:first-child { color: var(--pg-plum); font-size: 20px; line-height: 1.6; }

.pg-lg__sec { padding: 36px 0; border-top: 1px solid var(--pg-line); scroll-margin-top: calc(var(--pg-bar-h) + 20px); }
.pg-lg__intro + .pg-lg__sec, .pg-lg__doc > .pg-lg__sec:first-child { border-top-color: rgba(59, 50, 132, .16); }
.pg-lg__h { display: flex; align-items: baseline; gap: 16px; margin: 0 0 16px !important; color: var(--pg-plum); font-size: clamp(22px, 2.1vw, 27px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.pg-lg__h b { flex: none; color: var(--pg-pink); font-size: 14px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; transform: translateY(-2px); }

/* Editor text */
.pg-lg__prose { font-size: 17px; line-height: 1.75; color: #3d395e; }
.pg-lg__prose > * + * { margin-top: 14px; }
.pg-lg__prose p { margin: 0; }
.pg-lg__prose * + p { margin-top: 14px; }
.pg-lg__prose strong, .pg-lg__prose b { color: var(--pg-ink); font-weight: 600; }
.pg-lg__prose a {
	color: var(--pg-plum); font-weight: 500;
	text-decoration: underline; text-decoration-color: rgba(230, 8, 127, .4); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
	transition: color .2s, text-decoration-color .2s;
}
.pg-lg__prose a:hover { color: var(--pg-pink); text-decoration-color: currentColor; }
.pg-lg__prose ul, .pg-lg__prose ol { margin: 14px 0 0; padding: 0; list-style: none; }
.pg-lg__prose li { position: relative; padding-left: 26px; }
.pg-lg__prose li + li { margin-top: 10px; }
.pg-lg__prose ul > li::before {
	content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%;
	background: var(--pg-pink); box-shadow: 0 0 0 4px rgba(230, 8, 127, .1);
}
.pg-lg__prose ol { counter-reset: lg; }
.pg-lg__prose ol > li { counter-increment: lg; }
.pg-lg__prose ol > li::before { content: counter(lg) "."; position: absolute; left: 0; color: var(--pg-pink); font-weight: 600; }
.pg-lg__prose li ul { margin-top: 10px; }
.pg-lg__prose li li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pg-pink); }
.pg-lg__prose :is(h3, h4, h5) { margin-top: 24px; color: var(--pg-plum); font-size: 18px; font-weight: 600; }

.pg-lg__empty { padding: 28px 0; color: var(--pg-muted); font-size: 17px; }
.pg-lg__empty a { color: var(--pg-plum); font-weight: 600; }

/* Read next */
.pg-lg__next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px !important; padding-top: 28px; border-top: 1px solid rgba(59, 50, 132, .16); }
.pg-lg__next > span { color: var(--pg-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pg-lg__next a { display: inline-flex; align-items: center; gap: 10px; color: var(--pg-plum); font-size: 19px; }
.pg-lg__next a b { font-weight: 600; }
.pg-lg__next a .pg-i:first-child { color: var(--pg-pink); }
.pg-lg__next a .pg-i:last-child { transition: transform .3s var(--pg-ease); }
.pg-lg__next a:hover { color: var(--pg-pink); }
.pg-lg__next a:hover .pg-i:last-child { transform: translateX(4px); }

/* 3. Questions band ======================================================== */
.pg-lg__ask { padding: clamp(48px, 6vw, 84px) var(--pg-gutter); background: var(--pg-plum); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.pg-lg__ask::before {
	content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%;
	background: rgba(230, 8, 127, .35); filter: blur(100px);
}
.pg-lg__ask-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; max-width: 1240px; margin: 0 auto; }
.pg-lg__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px !important; color: #ff9fd0; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pg-lg__kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.pg-lg__ask h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.pg-lg__ask h2 span { display: block; color: rgba(255, 255, 255, .72); font-weight: 400; }
.pg-lg__ask-text { margin-top: 16px !important; color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.65; }
.pg-lg__ask-links { margin: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.pg-lg__ask-links a {
	display: flex; align-items: center; gap: 16px; padding: 18px 4px; color: #fff; font-size: 18px; font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, .16); transition: color .2s, padding .3s var(--pg-ease);
}
.pg-lg__ask-links a .pg-i { width: 22px; height: 22px; color: #ff9fd0; }
.pg-lg__ask-links a span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pg-lg__ask-links small { color: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.pg-lg__ask-links a:hover { color: #ff9fd0; padding-left: 12px; }

/* Tablet and phone ========================================================= */
@media (max-width: 991.98px) {
	.pg-lg__body { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 28px; }
	.pg-lg__aside { position: static; max-height: none; overflow: visible; }
	.pg-lg__toc { border-top: 1px solid var(--pg-line); border-bottom: 1px solid var(--pg-line); }
	.pg-lg__toc summary { margin: 0; padding: 16px 0; cursor: pointer; color: var(--pg-plum); font-size: 13px; }
	.pg-lg__toc summary .pg-i:last-child { display: block; margin-left: auto; color: var(--pg-plum); transition: transform .3s var(--pg-ease); }
	.pg-lg__toc[open] summary .pg-i:last-child { transform: rotate(180deg); }
	.pg-lg__toc ol { margin-bottom: 18px; }
	.pg-lg__aside-help { display: none; }
	.pg-lg__doc { max-width: none; }
	.pg-lg__ask-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
	.pg-lg__hero { padding-top: 24px; }
	.pg-lg__crumbs ol { margin-bottom: 20px; }
	.pg-lg__docs { gap: 20px; margin-bottom: 18px; }
	.pg-lg__docs a { font-size: 12px; letter-spacing: .1em; }
	.pg-lg__title { font-size: 36px; }
	.pg-lg .pg-lg__title span { font-size: 19px; }
	.pg-lg__lead { font-size: 16.5px; margin-bottom: 22px !important; }
	.pg-lg__meta { gap: 10px 18px; }
	.pg-lg__meta li { padding: 0; border-left: 0; font-size: 13.5px; }
	.pg-lg__meta li:last-child { flex-basis: 100%; }
	.pg-lg__intro { padding-bottom: 24px; }
	.pg-lg__intro > p:first-child { font-size: 18px; }
	.pg-lg__sec { padding: 28px 0; }
	.pg-lg__h { gap: 12px; }
	.pg-lg__prose { font-size: 16px; line-height: 1.7; }
	.pg-lg__next a { font-size: 17px; }
	.pg-lg__ask-links a { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.pg-lg *, .pg-lg *::before, .pg-lg *::after { transition: none !important; }
}

/* Print: just the document ================================================= */
@media print {
	body > *:not(#wrapper), #wrapper > *:not(main), .pg-lg__glow, .pg-lg__docs, .pg-lg__crumbs, .pg-lg__meta li:last-child,
	.pg-lg__aside, .pg-lg__next, .pg-lg__ask, #gotoTop, .pg-sprite, .pg-tabbar, dialog { display: none !important; }
	.pg-lg__hero { padding: 0 0 16px; background: none; border-bottom: 2px solid #000; }
	.pg-lg__title, .pg-lg__h { color: #000; }
	.pg-lg .pg-lg__title span, .pg-lg__h b { color: #444; }
	.pg-lg__body { display: block; padding: 16px 0 0; max-width: none; }
	.pg-lg__doc { max-width: none; }
	.pg-lg__prose { color: #000; font-size: 11.5pt; line-height: 1.55; }
	.pg-lg__prose a { color: #000; text-decoration: underline; }
	.pg-lg__sec { padding: 14px 0; break-inside: avoid-page; }
	.pg-lg__h { break-after: avoid; }
}
