/* Existing informational pages, using the shared Spark type and colour system. */
.legacy-content {
  padding-top: 58px;
  padding-bottom: 100px;
}
.legacy-photo {
  margin: 0 0 48px;
  overflow: hidden;
  background: #e8e8e2;
}
.legacy-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.legacy-story + .legacy-story {
  margin-top: 100px;
}
.legacy-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
  gap: 64px;
}
.legacy-story-grid h2 {
  margin: 14px 0 0;
  font-size: clamp(25px, 2.6vw, 38px);
  line-height: 1.55;
  letter-spacing: -0.04em;
}
.legacy-prose p {
  margin: 0 0 24px;
  line-height: 2.1;
}
.legacy-prose p:last-child {
  margin-bottom: 0;
}
.legacy-next {
  margin-top: 76px;
  padding-top: 32px;
  border-top: 1px solid #bcc3ca;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.legacy-next h2 {
  margin: 10px 0 0;
  font-size: 24px;
}
.legacy-contact-heading {
  margin-bottom: 48px;
}
.legacy-contact-heading h2 {
  margin: 18px 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.6;
}
.legacy-contact-heading > p:last-child {
  font-size: 15px;
}
.legacy-contact-list {
  border-top: 2px solid #2448c5;
}
.legacy-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 2fr);
  gap: 40px;
  padding: 42px 0;
  border-bottom: 2px solid #2448c5;
}
/* Contact labels have no icon column; keep the English subtitle directly below. */
body[data-page="contact"] .legacy-contact-row h2 {
  margin: 0;
  display: block;
  font-size: 22px;
}
.legacy-office-location {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
}
.legacy-contact-label {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--ink);
}
.legacy-mail + .legacy-mail {
  margin-top: 28px;
}
.legacy-email-address {
  font-size: clamp(17px, 1.9vw, 25px);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.legacy-email-address > span {
  font-size: 0.75em;
  font-weight: 500;
}
.legacy-phone .icon {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  vertical-align: middle;
}
.legacy-phone:hover {
  color: #2448c5;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.legacy-phone {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.025em;
}
.legacy-note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
}
.legacy-jump-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 68px;
  border-top: 1px solid #bcc3ca;
  border-bottom: 1px solid #bcc3ca;
}
.legacy-jump-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 24px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.legacy-jump-links a:hover {
  color: #2448c5;
  background: #e9edf9;
}
.legacy-jump-links .icon {
  flex: 0 0 18px;
}
.legacy-document-group {
  margin-top: 62px;
  scroll-margin-top: 110px;
}
.legacy-document-group .section-head {
  margin-bottom: 28px;
}
.legacy-document-list {
  border-top: 2px solid #2448c5;
}
.legacy-document {
  padding: 25px 0;
  border-bottom: 1px solid #bcc3ca;
}
.legacy-document-main {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.legacy-document-number {
  align-self: start;
  padding-top: 26px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.legacy-filetype {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.legacy-document-heading h3 {
  font-size: 18px;
  line-height: 1.65;
  margin: 7px 0 0;
}
.legacy-document-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.legacy-document-actions a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.legacy-document-actions a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.legacy-document-actions .icon {
  width: 16px;
  height: 16px;
}
.legacy-preview {
  margin: 16px 0 0 50px;
}
.legacy-preview summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  padding: 7px 0;
}
.legacy-preview summary::-webkit-details-marker {
  display: none;
}
.legacy-preview summary .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.legacy-preview[open] summary .icon {
  transform: rotate(180deg);
}
.legacy-preview-inner {
  padding: 14px 0 0;
}
.legacy-preview-inner .legacy-note {
  margin: 0 0 16px;
}
.legacy-preview iframe {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 360px;
  border: 1px solid #d3d7df;
  background: #f0f2f5;
}
@media (max-width: 900px) {
  .legacy-story-grid {
    gap: 32px;
  }
  .legacy-document-main {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .legacy-document-actions {
    grid-column: 2;
    justify-content: flex-start;
    gap: 12px;
  }
  .legacy-jump-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .legacy-content {
    padding-top: 34px;
    padding-bottom: 64px;
  }
  .legacy-photo {
    margin-bottom: 28px;
  }
  .legacy-photo img {
    aspect-ratio: 4 / 3;
  }
  .legacy-story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legacy-story + .legacy-story {
    margin-top: 62px;
  }
  .legacy-prose p {
    font-size: 15px;
    line-height: 2;
  }
  .legacy-next {
    margin-top: 46px;
  }
  .legacy-next h2 {
    font-size: 20px;
  }
  .legacy-contact-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }
  .legacy-jump-links {
    margin-bottom: 40px;
  }
  .legacy-jump-links a {
    padding: 19px 8px;
    font-size: 12px;
    gap: 5px;
  }
  .legacy-document-group {
    margin-top: 40px;
  }
  .legacy-document-heading h3 {
    font-size: 16px;
  }
  .legacy-document-main {
    gap: 10px;
  }
  .legacy-document-number {
    padding-top: 27px;
  }
  .legacy-document-actions {
    gap: 10px;
  }
  .legacy-document-actions a {
    font-size: 12px;
    padding: 10px 12px;
  }
  .legacy-preview {
    margin-left: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .legacy-preview summary .icon {
    transition: none;
  }
}
