/* PatrolWave | legal pages and 404
   Loaded after main.css. Uses only its stable tokens and a few shared hooks
   (.container, .btn, .btn--solid, .sr-only, .skip, :focus-visible).
   Everything else is self-contained here, prefixed .lg-, so the pages
   read fully without JavaScript. */

.lg {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.lg main { flex: 1 0 auto; display: block; }
/* Zero-specificity reset so component margins below always win. */
:where(.lg) :where(h1, h2, h3, p, ul, ol) { margin: 0; }

/* Header */
.lg-head {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.lg-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.lg-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font: 500 15px/1 var(--f-body);
  letter-spacing: .01em;
}
.lg-brand img { display: block; width: auto; height: 15px; }

/* Document */
.lg-doc { padding: clamp(56px, 11vh, 128px) 0 clamp(72px, 12vh, 140px); }
.lg-doc__col { max-width: 68ch; }

.lg-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.034em;
  color: #fff;
  text-wrap: balance;
}
.lg-meta {
  margin-top: 20px;
  font: 500 11.5px/1.4 var(--f-mono);
  letter-spacing: .06em;
  color: var(--text-3);
}
.lg-lede {
  margin-top: 32px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -.012em;
  color: rgba(237, 237, 238, .82);
  text-wrap: pretty;
}

/* Table of contents */
.lg-toc {
  margin-top: clamp(40px, 7vh, 64px);
  padding: 22px 0 24px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}
.lg-toc__label {
  font: 500 12.5px/1.2 var(--f-body);
  letter-spacing: .02em;
  color: var(--text-3);
}
.lg-toc ol {
  margin-top: 14px;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.lg-toc li { counter-increment: toc; }
.lg-toc a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  padding: 6px 0;
  font: 400 15px/1.45 var(--f-body);
  color: var(--text-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.lg-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font: 500 11px/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--text-3);
}
.lg-toc a:hover { color: var(--text); }
@media (min-width: 760px) {
  .lg-toc ol { columns: 2; column-gap: 32px; }
  .lg-toc li { break-inside: avoid; }
}

/* Sections */
.lg-sec { margin-top: clamp(52px, 8vh, 76px); scroll-margin-top: 24px; }
.lg-sec:first-of-type { margin-top: clamp(48px, 7vh, 68px); }
.lg-h {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.022em;
  color: #fff;
}
.lg-h__i {
  font: 500 11px/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--text-3);
  transform: translateY(-.3em);
}
.lg-h__a {
  margin-left: .35em;
  color: var(--text-3);
  text-decoration: none;
  opacity: 0;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.lg-h:hover .lg-h__a, .lg-h__a:focus-visible { opacity: 1; }
.lg-h__a:hover { color: var(--text); }
@media (hover: none) { .lg-h__a { opacity: .6; } }

.lg-body { padding-left: 36px; }
.lg-body > * + * { margin-top: 1.1em; }
.lg-body p,
.lg-body li {
  font: 400 16px/1.7 var(--f-body);
  color: var(--text-2);
  text-wrap: pretty;
}
.lg-h + .lg-body { margin-top: 18px; }
.lg-body h3 {
  margin-top: 2em;
  font: 500 15px/1.5 var(--f-body);
  letter-spacing: .005em;
  color: var(--text);
}
.lg-body h3 + * { margin-top: .55em; }
.lg-body strong { font-weight: 500; color: var(--text); }
.lg-body ul {
  padding: 0;
  list-style: none;
}
.lg-body ul li {
  position: relative;
  padding-left: 22px;
}
.lg-body ul li + li { margin-top: .5em; }
.lg-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .85em;
  width: 8px;
  height: 1px;
  background: var(--line-2);
}
.lg-body a,
.lg-lede a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.lg-body a:hover,
.lg-lede a:hover { color: #fff; text-decoration-color: currentColor; }

.lg-note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left-color: var(--line-2);
  border-radius: 2px;
  background: rgba(255, 255, 255, .02);
}
.lg-body .lg-note p { color: var(--text); }

.lg-contact {
  margin-top: clamp(56px, 9vh, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.lg-contact p { font: 400 15px/1.6 var(--f-body); color: var(--text-2); }
.lg-contact a:not(.lg-top) { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.lg-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 13px/1.2 var(--f-body);
  letter-spacing: .02em;
  color: var(--text-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.lg-top:hover { color: var(--text); }

/* Footer: same hairline row and faint dot field as the main site, without the canvas */
.lg-foot {
  position: relative;
  padding: 72px 0 32px;
  overflow: hidden;
  background: var(--bg);
}
.lg-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .1) 0 .75px, transparent 1.1px);
  background-size: 14px 14px;
  background-position: 7px 7px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%);
  mask-image: linear-gradient(to bottom, transparent, #000 70%);
  pointer-events: none;
}
.lg-foot .container { position: relative; }
.lg-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.lg-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1.4 var(--f-body);
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: none;
}
.lg-foot__brand img { display: block; width: 18px; height: 18px; }
.lg-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lg-foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font: 400 13px/1.4 var(--f-body);
  letter-spacing: .01em;
  color: var(--text-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.lg-foot__links a:hover,
.lg-foot__links a[aria-current="page"] { color: var(--text); }
.lg-foot__micro {
  margin-top: 32px;
  font: 500 10.5px/1.4 var(--f-mono);
  letter-spacing: .06em;
  color: var(--text-3);
}

/* 404 */
.lg-404 {
  display: flex;
  align-items: center;
  padding: clamp(64px, 14vh, 160px) 0;
}
.lg-404__code {
  font: 500 11px/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--text-3);
}
.lg-404 .lg-title { margin-top: 20px; }
.lg-404__line {
  margin-top: 20px;
  max-width: 34ch;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--text-2);
}
.lg-404 .btn { margin-top: 36px; }
.lg-404 .btn svg { width: 10px; height: 10px; }

@media (max-width: 719px) {
  .lg-brand img { height: 13px; }
  .lg-h { grid-template-columns: 28px minmax(0, 1fr); }
  .lg-body { padding-left: 0; }
  .lg-toc a { grid-template-columns: 30px minmax(0, 1fr); padding: 8px 0; }
  .lg-body p, .lg-body li { font-size: 16px; line-height: 1.68; }
  .lg-foot { padding-top: 56px; }
  .lg-foot__row { flex-direction: column; align-items: flex-start; }
}

@media (pointer: coarse) {
  .lg-toc a, .lg-foot__links a { min-height: 44px; }
  .lg-h__a { position: relative; }
  .lg-h__a::after { content: ""; position: absolute; inset: -8px -16px; }
  .lg-toc a { align-items: center; }
  .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-toc a, .lg-h__a, .lg-body a, .lg-top, .lg-foot__links a { transition: none; }
}

@media print {
  .lg, .lg-foot { background: #fff; color: #000; }
  .lg-head, .lg-foot, .lg-toc, .lg-top, .lg-h__a, .skip { display: none; }
  .lg-title, .lg-h, .lg-body strong, .lg-body h3 { color: #000; }
  .lg-body p, .lg-body li, .lg-lede, .lg-meta, .lg-contact p { color: #222; }
  .lg-h, .lg-contact { border-color: #bbb; }
}
