/* pages-legal: page-specific styles owned by B6. All classes prefixed .lg-
   Pages: /contact/, /privacy/, /accessibility/, /terms/, /code-of-conduct/, /404.html.
   Builds on the .pe- contact/privacy styles in pages-people.css (read-only) and components.css. */

/* ---- CON-01 routes: three blocks under the hero lead ---- */
.lg-routes {
  list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule-strong);
}
@media (min-width: 768px) { .lg-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; } }
.lg-route {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px var(--s-4);
  align-content: start; padding: var(--s-5) 0; border-bottom: 1px solid var(--rule-strong);
}
@media (min-width: 768px) {
  .lg-route { padding: var(--s-5) var(--s-5) var(--s-6); border-top: 2px solid var(--prussian); border-bottom: 0; }
  .lg-route + .lg-route { border-left: 1px solid var(--rule-strong); }
  .lg-route:first-child { padding-left: 0; }
}
.lg-route__title { grid-column: 1; font-size: var(--fs-h4); font-weight: var(--fw-regular); line-height: var(--lh-snug); }
.lg-route__link { color: inherit; text-decoration: none; }
.lg-route__link::after { content: ""; position: absolute; inset: 0; } /* stretched link */
.lg-route__link:focus-visible { outline: none; }
.lg-route:has(.lg-route__link:focus-visible) { outline: var(--focus-ring); outline-offset: 2px; }
.lg-route__text { grid-column: 1; font-size: var(--fs-small); color: var(--ink-2); max-width: 36ch; }
.lg-route__arrow { grid-column: 2; grid-row: 1; align-self: center; }
.lg-route:hover .lg-route__title { text-decoration: underline; text-decoration-color: var(--aqua); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.lg-route:hover .lg-route__arrow { transform: translateX(6px); }
.lg-routes__note { margin-top: var(--s-5); }

/* ---- CON-02 form: anchor offset under the sticky header; enquiry type choices ---- */
.lg-contact, .lg-contact [id], .lg-contact .pe-contact__form { scroll-margin-top: calc(var(--header-h-compact) + var(--stripe-h) + 24px); }
.lg-type legend { margin-bottom: var(--s-3); }
.lg-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.lg-choices__sep { color: var(--ink-3); }
.lg-choice {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--rule-strong); background: var(--white); cursor: pointer;
  font-family: var(--font-ui); font-size: .9375rem; color: var(--ink);
  transition: border-color var(--dur-fast) ease-in-out, background-color var(--dur-fast) ease-in-out;
}
.lg-choice:hover { border-color: var(--prussian); }
.lg-choice:has(input:checked) { border-color: var(--prussian); background: rgba(228, 253, 252, .7); }
.lg-choice:has(input:focus-visible) { outline: var(--focus-ring); outline-offset: 2px; }
.lg-choice input {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--white); display: grid; place-items: center; cursor: pointer;
}
.lg-choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--prussian); transform: scale(0); transition: transform .12s; }
.lg-choice input:checked { border-color: var(--prussian); }
.lg-choice input:checked::after { transform: scale(1); }
.lg-choice input:focus-visible { outline: none; }
.field.is-invalid .lg-choice { border-color: #B33A26; }
@media (max-width: 480px) { .lg-choices__sep { display: none; } .lg-choices { gap: 8px; } }

/* ---- CON-03 offices ---- */
.lg-offices__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule-strong); }
.lg-office { display: grid; gap: 6px; padding-block: var(--s-4); border-top: 1px solid var(--rule-strong); }
.lg-office__name { font-size: 1.125rem; font-weight: var(--fw-regular); line-height: var(--lh-snug); }
.lg-office__addr { font-style: normal; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }
.lg-office__contact { font-size: var(--fs-small); color: var(--ink-2); overflow-wrap: anywhere; }
.lg-office__contact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .2em; }
.lg-office__contact a:hover { text-decoration-color: var(--aqua); }
.lg-office--ph .ph { justify-self: start; }

/* ---- PRV-02 analytics: Accept / Reject ---- */
.lg-notice__src { font-size: var(--fs-small); color: var(--ink-2); }
.lg-prefs__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.lg-prefs__actions { --cluster-gap: 12px; }
.lg-choice-btn[aria-pressed="true"]::before {
  content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}

/* ---- Legal pages (/accessibility/, /terms/, /code-of-conduct/) ---- */
.lg-legal__body { max-width: 68ch; }
.lg-legal__body .ph { display: inline-block; }
.lg-legal__ph { min-height: 220px; }
.lg-legal__ph p { max-width: 48ch; font-size: var(--fs-body); }
.lg-legal__download { --cluster-gap: 16px 20px; margin-top: var(--s-6); align-items: center; }
.lg-legalnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); }
.lg-legalnav li { flex: 1 1 200px; }
.lg-legalnav a {
  display: flex; align-items: center; min-height: 56px; padding: var(--s-3) var(--s-4) var(--s-3) 0;
  font-family: var(--font-ui); font-size: .9375rem; color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.lg-legalnav a:hover { color: var(--ink); }
.lg-legalnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 2px 0 var(--prussian); }

/* ---- 404 ---- */
.lg-404 { min-height: 60vh; display: flex; align-items: center; }
.lg-404__links { margin-top: clamp(40px, 5vw, 64px); padding-top: var(--s-5); border-top: 1px solid var(--rule-dark); }
.lg-404__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3vw, 40px); }
.lg-404__links .link-arrow { color: var(--on-dark); }

/* ---- Contact hero on the client gradient g4 (components.css §6): route cards switch to on-dark rules ---- */
@media (min-width: 768px) {
  .page-hero--g4 .lg-route { border-top-color: rgba(255, 255, 255, .85); }
}
