/* The Thursday Times: the policies (page-templates/legal.php). Builds on about.css. */

.lg-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 10001; height: 3px; background: var(--tt-orange); transform: scaleX(var(--lg-p, 0)); transform-origin: 0 50%; pointer-events: none; }

/* ---------------------------------------------------------------------- hero */
.lg-hero { padding-block: clamp(72px, 10vw, 144px) clamp(48px, 6vw, 80px); }
.lg-hero__in { display: flex; flex-direction: column; align-items: flex-start; gap: var(--tt-space-5); }
.lg-title { margin: 0; max-width: 12em; font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 7vw, 108px); line-height: 0.96; letter-spacing: -0.035em; animation: ab-rise 0.7s var(--ab-ease) 0.1s both; }
.lg-meta { display: flex; flex-wrap: wrap; gap: var(--tt-space-2) var(--tt-space-5); margin: 0; font-family: var(--font-ui); font-size: 17px; line-height: 24px; color: var(--tt-text-secondary); animation: ab-rise 0.7s var(--ab-ease) 0.25s both; }
.lg-family { display: flex; flex-wrap: wrap; gap: var(--tt-space-2); margin-top: var(--tt-space-4); animation: ab-rise 0.7s var(--ab-ease) 0.4s both; }
.lg-family__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--tt-space-4); border: 1.5px solid var(--tt-paper); color: var(--tt-paper); font-family: var(--font-ui); font-size: 16px; font-weight: 700; text-decoration: none; transition: background var(--tt-move-fast, 300ms) var(--ab-ease), color var(--tt-move-fast, 300ms) var(--ab-ease); }
.lg-family__link:hover { background: #1c1c1c; }
.lg-family__link[aria-current="page"] { background: var(--tt-paper); color: var(--tt-ink); }

/* ---------------------------------------------------------------------- body */
.lg-body-wrap { padding-top: clamp(48px, 6vw, 88px); }
.lg-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.lg-grid--solo { grid-template-columns: minmax(0, 1fr); }
.lg-toc { position: sticky; top: calc(var(--tt-header-h, 72px) + var(--tt-space-5)); max-height: calc(100vh - 120px); overflow: auto; }
.lg-toc__box { position: relative; }
.lg-toc__head { list-style: none; cursor: pointer; padding-bottom: var(--tt-space-3); border-bottom: var(--tt-rule-section-width, 3px) solid var(--tt-text); font-family: var(--font-nav); font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: 0.16em; text-transform: uppercase; }
.lg-toc__head::-webkit-details-marker { display: none; }
.lg-toc__list { list-style: none; margin: 0; padding: 0; }
.lg-toc__list a { position: relative; display: flex; gap: var(--tt-space-3); padding: 10px 0 10px 22px; border-bottom: 1px solid var(--tt-border); font-family: var(--font-ui); font-size: 16px; line-height: 22px; color: var(--tt-text-secondary); text-decoration: none; transition: color var(--tt-move-fast, 300ms) var(--ab-ease); }
.lg-toc__list a:hover, .lg-toc__list a.is-here { color: var(--tt-text); }
.lg-toc__list a.is-here { font-weight: 700; }
.lg-toc__n { flex: none; min-width: 1.6em; font-variant-numeric: tabular-nums; }
/* the colon's square, travelling straight down the list to the section being read */
.lg-toc__mark { position: absolute; left: 0; top: 0; width: 10px; height: 10px; background: var(--tt-orange); opacity: 0; translate: 0 var(--lg-y, 0); transition: translate 0.5s var(--ab-ease), opacity 0.3s var(--ab-ease); }
.lg-toc__mark.is-on { opacity: 1; }

.lg-body { max-width: 42em; font-family: var(--font-text); font-size: 19px; line-height: 31px; }
.lg-body > :first-child { margin-top: 0; }
.lg-body p { margin: 0 0 var(--tt-space-5); }
.lg-body .lg-h { scroll-margin-top: calc(var(--tt-header-h, 72px) + var(--tt-space-6)); font-family: var(--font-display); font-weight: 900; letter-spacing: -0.025em; }
.lg-body .lg-h--h2 { display: flex; gap: var(--tt-space-3); margin: var(--tt-space-8) 0 var(--tt-space-4); padding-top: var(--tt-space-4); border-top: var(--tt-rule-section-width, 3px) solid var(--tt-text); font-size: clamp(27px, 2.6vw, 36px); line-height: 1.08; }
.lg-body > .lg-h--h2:first-child { margin-top: 0; }
.lg-body .lg-h--h3 { margin: var(--tt-space-7) 0 var(--tt-space-3); font-size: 22px; line-height: 27px; letter-spacing: -0.015em; }
.lg-body .lg-h__n { color: var(--tt-text-secondary); font-variant-numeric: tabular-nums; }
.lg-body ul, .lg-body ol { margin: 0 0 var(--tt-space-5); padding-left: 1.3em; }
.lg-body li { margin-bottom: var(--tt-space-2); }
.lg-body li::marker { color: var(--tt-text-secondary); }
.lg-body a { color: var(--tt-text); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--tt-orange); overflow-wrap: anywhere; }
.lg-body em, .lg-body i { font-style: normal; font-weight: 600; }
.lg-body strong { font-weight: 700; }
.lg-body hr { margin: var(--tt-space-7) 0; border: 0; border-top: 1px solid var(--tt-border); }
.lg-body table { width: 100%; margin: 0 0 var(--tt-space-6); border-collapse: collapse; font-family: var(--font-ui); font-size: 16px; line-height: 23px; }
.lg-body th, .lg-body td { padding: 12px 12px 12px 0; border-top: 1px solid var(--tt-border); text-align: left; vertical-align: top; }
.lg-body th { font-weight: 700; border-top: var(--tt-rule-section-width, 3px) solid var(--tt-text); }
.lg-body figure, .lg-body .wp-block-table { margin: 0 0 var(--tt-space-6); overflow-x: auto; }

@media (max-width: 1023px) {
	.lg-grid { grid-template-columns: minmax(0, 1fr); }
	.lg-toc { position: static; max-height: none; }
	.lg-toc__mark { display: none; }
	.lg-toc__list a { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .lg-progress { display: none; } }
