/* JimGO Taxis: legal pages (accessibility, privacy). Slim title band, long-form reading column beside a sticky
   contents list, a short closing band. Surfaces square, buttons pill. */

/* ---------- opener: slim title band with the map's contour texture and a road line along its foot ---------- */
.lg-open { position: relative; height: max(430px, 46svh); max-height: 560px; padding-top: var(--head-h); overflow: clip; background: var(--tarmac); isolation: isolate; }
.lg-open::before { content: ''; position: absolute; left: -24vw; top: -30vh; width: 90vw; height: 150%; pointer-events: none; z-index: -1; background: repeating-radial-gradient(ellipse at 34% 56%, rgba(251, 229, 193, .05) 0 2px, transparent 2px 44px); animation: lg-rings 28s ease-in-out infinite alternate; }
@keyframes lg-rings { to { transform: translate(6vw, 4vh) scale(1.1); } }
.lg-map { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 62%; pointer-events: none; opacity: .75; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.lg-map .jg-map { width: 100%; height: 100%; will-change: transform; }
.lg-map .m-sea { fill: transparent; }
.lg-map .m-land { fill: rgba(35, 34, 31, .7); }
.lg-map .m-region { display: none; }
.lg-map .m-coastline { stroke: rgba(251, 229, 193, .42); stroke-width: 2; }
.lg-map .m-contour { stroke: rgba(251, 229, 193, .1); }
.lg-open-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; height: 100%; padding-bottom: 34px; }
.lg-open .h1 { font-size: clamp(2.4rem, 4.2vw, 4.2rem); margin-bottom: .3em; }
.lg-open .lede { margin-bottom: .9em; }
.lg-date { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--fog); font-size: .96rem; margin: 0; }
.lg-date span { display: inline-flex; align-items: center; gap: 8px; }
.lg-date span::before { content: ''; width: 18px; height: 3px; background: var(--amber); }
.lg-card { justify-self: end; width: min(100%, 400px); background: #FFFDF8; color: var(--ink); padding: 22px 26px 20px; border-top: 4px solid var(--amber); box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .85); transform: rotate(-1.5deg); will-change: transform; }
.lg-card p { margin: 0 0 10px; font: 780 1.35rem/1.1 var(--display); font-stretch: 86%; }
.lg-card ul { display: grid; gap: 4px; }
.lg-card li { display: flex; gap: 10px; align-items: baseline; font-size: 1rem; line-height: 1.4; color: #3D3830; }
.lg-card li::before { content: '\2713'; flex: none; font-weight: 700; color: #9A6A12; }
.lg-road { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }

/* ---------- body: sticky contents list beside the reading column ---------- */
.lg-body { position: relative; overflow: clip; padding-block: clamp(64px, 9vh, 110px) clamp(80px, 11vh, 130px); isolation: isolate; background: linear-gradient(180deg, var(--tarmac), #191816 60%, var(--tarmac)); }
.lg-body::before { content: ''; position: absolute; inset: -10% -20%; z-index: -1; pointer-events: none; background: repeating-radial-gradient(ellipse at 80% 30%, rgba(251, 229, 193, .045) 0 2px, transparent 2px 60px); animation: lg-drift 24s ease-in-out infinite alternate; }
.lg-body-map { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 64%; pointer-events: none; opacity: .38; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.lg-body-map .jg-map { width: 100%; height: 120%; margin-top: -10%; will-change: transform; }
.lg-body-map .m-sea { fill: transparent; }
.lg-body-map .m-land { fill: rgba(35, 34, 31, .5); }
.lg-body-map .m-region { display: none; }
.lg-body-map .m-coastline { stroke: rgba(251, 229, 193, .3); }
.lg-body-map .m-contour { stroke: rgba(251, 229, 193, .09); }
.toc-progress { display: block; height: 3px; margin: 16px 24px 0; background: rgba(251, 229, 193, .12); overflow: hidden; }
.toc-progress i { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }
.no-js .toc-progress, .reveal-all .toc-progress { display: none; }
@keyframes lg-drift { to { transform: translate(-6vw, 5vh) scale(1.06); } }
.lg-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(40px, 5.6vw, 88px); align-items: start; }
.lg-toc { position: sticky; top: 112px; padding: 24px 0 18px; border-top: 3px solid var(--amber); background: linear-gradient(180deg, rgba(41, 40, 37, .9), rgba(41, 40, 37, .55)); }
.toc-h { margin: 0 24px 8px; font: 700 1.15rem/1.2 var(--display); font-stretch: 92%; color: var(--cream); }
.lg-toc ol { position: relative; list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 24px; color: var(--fog); text-decoration: none; font-size: 1rem; line-height: 1.3; transition: color .3s, padding-left .4s var(--ease); }
.lg-toc ol a::before { content: counter(toc); flex: none; width: 1.4em; font: 800 .95rem/1 var(--display); font-stretch: 80%; color: rgba(232, 169, 65, .7); }
.lg-toc a:hover { color: var(--cream); padding-left: 30px; }
.lg-toc a.is-on { color: var(--cream); }
.lg-toc ol a.is-on::before { color: var(--amber); }
.toc-bar { position: absolute; left: 0; top: 0; width: 4px; height: 44px; background: var(--amber); transform-origin: 50% 0; opacity: 0; pointer-events: none; }
.toc-call { display: flex; align-items: center; gap: 10px; margin: 14px 24px 0; padding-top: 14px; border-top: 1px solid rgba(251, 229, 193, .1); color: var(--cream); text-decoration: none; font-weight: 600; min-height: 44px; }
.toc-call .ic { color: var(--amber); }
.toc-call:hover { color: var(--amber); }

.lg-article { min-width: 0; }
.lg-block { --draw: 1; position: relative; padding: 4px 0 4px clamp(26px, 3.2vw, 48px); margin-bottom: clamp(48px, 7vh, 72px); scroll-margin-top: 110px; font-size: 1.1rem; line-height: 1.72; }
.lg-block:last-child { margin-bottom: 0; }
.lg-block::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 2px; background: rgba(251, 229, 193, .1); }
.lg-block::after { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 2px; background: var(--amber); transform-origin: 50% 0; transform: scaleY(var(--draw)); }
.lg-block h2 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.08; margin-bottom: .55em; }
.lg-block p { color: var(--text); }
.lg-block p:last-child, .lg-block ul:last-child { margin-bottom: 0; }
.lg-block a:not(.btn) { position: relative; z-index: 1; color: var(--amber); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(232, 169, 65, .45); padding-block: 12px; transition: text-decoration-color .3s; }
.lg-block a:not(.btn):hover { text-decoration-color: var(--amber); }
.lg-list { display: grid; gap: 14px; margin: 0 0 1em; }
.lg-list li { position: relative; padding-left: 30px; color: var(--text); }
.lg-list li::before { content: ''; position: absolute; left: 0; top: .82em; width: 16px; height: 3px; background: var(--amber); }
.lg-list b { color: var(--cream); font-weight: 600; }
.lg-plain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0 0 1em; border-top: 1px solid rgba(251, 229, 193, .12); }
.lg-plain li { padding: 11px 0 11px 30px; position: relative; border-bottom: 1px solid rgba(251, 229, 193, .12); color: var(--text); }
.lg-plain li::before { content: ''; position: absolute; left: 0; top: 1.4em; width: 16px; height: 3px; background: var(--amber); }
.lg-note { padding: 16px 20px; background: rgba(232, 169, 65, .08); border-left: 3px solid var(--amber); color: var(--text); }

/* ---------- closing band: a short call to action and onward links ---------- */
.lg-end { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(80px, 12vh, 140px); }
.lg-end-bg { position: absolute; inset: -10% 0; z-index: -2; }
.lg-end-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.lg-end::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 17, 16, .95) 0%, rgba(18, 17, 16, .86) 46%, rgba(18, 17, 16, .84) 100%); }
.lg-end .sec-road { z-index: 1; }
.lg-end-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.lg-end .h2 { margin-bottom: .35em; }
.lg-end .lede { margin-bottom: 1.4em; }
.lg-next { border-top: 1px solid rgba(251, 229, 193, .16); }
.lg-next li { border-bottom: 1px solid rgba(251, 229, 193, .16); }
.lg-next a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 4px; color: var(--cream); text-decoration: none; font: 740 clamp(1.25rem, 1.7vw, 1.6rem)/1.15 var(--display); font-stretch: 90%; transition: color .3s, padding-left .45s var(--ease); }
.lg-next-t { display: block; }
.lg-next-t span { display: block; font: 400 .95rem/1.4 var(--body); color: var(--fog); margin-top: 2px; }
.lg-next a .ic { color: var(--amber); width: 26px; height: 26px; transition: transform .4s var(--ease); }
.lg-next a:hover { color: var(--amber); padding-left: 14px; }
.lg-next a:hover .ic { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
  .lg-open::before, .lg-body::before { animation: none; }
  .toc-progress { display: none; }
}

@media (max-width: 1080px) {
  .lg-grid { grid-template-columns: 1fr; }
  .lg-toc { position: relative; top: 0; }
  .lg-toc ol { display: grid; grid-template-columns: 1fr 1fr; }
  .toc-bar { display: none; }
  .lg-end-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lg-open { height: auto; max-height: none; padding-bottom: 0; }
  .lg-open-in { grid-template-columns: 1fr; gap: 26px; padding-block: 30px 46px; }
  .lg-map { width: 100%; opacity: .45; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 60%); }
  .lg-open .h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .lg-open .lede { font-size: 1rem; }
  .lg-card { justify-self: start; padding: 18px 20px 16px; }
  .lg-toc ol { grid-template-columns: 1fr; }
  .lg-block { font-size: 1.04rem; padding-left: 22px; }
  .lg-body-map { width: 100%; opacity: .35; }
  .lg-plain { grid-template-columns: 1fr; }
  .lg-end .btn-row .btn { flex: 1 1 100%; }
}
