.site-header { justify-content: space-between; }
.header-contact { font-size: 14px; color: #42604d; text-decoration: underline; text-underline-offset: 4px; padding-block: 12px; white-space: nowrap; }
.site-footer { padding: 36px 20px 28px; border-top: 1px solid #e8eee8; text-align: center; background: #fff; color: #5c6b60; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-bottom: 15px; }
.site-footer a, .text-return { text-decoration: underline; text-underline-offset: 4px; }
.site-footer small { font-size: 12px; }
.access-reason { cursor: pointer; }
.access-requests { grid-area: requests; min-width: 0; max-width: 540px; margin-top: 36px; font-size: 16px; line-height: 1.85; }
.access-requests h2 { margin: 0 0 18px; font-size: 22px; font-weight: 600; line-height: 1.6; }
.access-requests h3 { margin: 28px 0 14px; font-size: 20px; font-weight: 600; }
.access-requests p { margin: 0 0 16px; }
.access-action { align-self: start; }
.access-apply:disabled { opacity: 1; cursor: default; }
.free-page { max-width: 860px; margin: 0 auto; padding: 52px 28px 64px; font-size: 17px; line-height: 1.95; }
.free-page h1 { margin: 0 0 24px; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.5; font-weight: 600; }
.free-lead { color: #16815e; font-size: 20px; font-weight: 600; }
.free-page p { margin: 0 0 20px; }
.free-page section { margin-top: 38px; }
.free-page h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.6; font-weight: 600; }
.funding-status { padding-top: 24px; color: #647067; font-size: 14px; }
.text-return { color: #16815e; font-size: 14px; }
.legal-modal { width: min(920px, calc(100% - 24px)); height: min(88dvh, 920px); padding: 0; border: 1px solid #d7e3d8; border-radius: 10px; background: #fff; color: #202622; }
.legal-modal::backdrop { background: rgb(23 42 30 / 45%); }
.legal-modal[open] { display: flex; flex-direction: column; }
.legal-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e8eee8; }
.legal-modal h2 { margin: 0; font-size: 20px; font-weight: 600; }
.legal-close { padding: 8px 12px; min-height: 44px; background: #fff; color: #356849; border: 1px solid #c6d7c9; border-radius: 6px; white-space: nowrap; }
.legal-fallback { margin: 0; padding: 10px 20px; font-size: 12px; color: #5b685f; line-height: 1.7; }
.legal-direct { color: #16815e; text-decoration: underline; text-underline-offset: 3px; }
.legal-frame-slot { flex: 1; min-height: 0; }
.legal-frame-slot iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (min-width: 761px) {
  .access-layout { grid-template-areas: "visual heading" "visual description" "visual facts" "visual requests" "visual action"; grid-template-rows: auto auto auto auto 1fr; }
}
@media (max-width: 760px) {
  .site-header { height: 68px; padding-inline: 18px; gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 12px; letter-spacing: 0; }
  .header-contact { font-size: 12px; }
  .access-layout { grid-template-areas: "heading" "description" "visual" "facts" "note" "requests" "action"; }
  .access-requests { margin-top: 26px; font-size: 15px; }
  .access-requests h2 { font-size: 20px; }
  .access-requests h3 { font-size: 19px; }
  .free-page { padding: 30px 20px 40px; font-size: 16px; line-height: 1.9; }
  .free-page h2 { font-size: 21px; }
  .free-lead { font-size: 18px; }
  .legal-modal > header { padding: 10px 12px; gap: 8px; }
  .legal-modal h2 { font-size: 17px; }
  .legal-fallback { padding-inline: 12px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 12px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 11px; }
  .header-contact { font-size: 11px; }
}

.contact-modal { box-sizing:border-box; width:min(440px,calc(100vw - 32px)); padding:30px 24px 18px; border:0; border-radius:16px; color:#26352e; background:#fff; box-shadow:0 16px 60px #18332830; }
.contact-modal::backdrop { background:#182d2855; }
.contact-modal h2 { margin:0 32px 18px 0; font-size:22px; }
.contact-modal p { font-size:15px; line-height:1.8; margin:0 0 18px; }
.contact-close { position:absolute; right:12px; top:10px; width:44px; height:44px; border:0; background:transparent; font-size:26px; color:inherit; cursor:pointer; }
.contact-address { color:#00875b; font-size:17px; overflow-wrap:anywhere; }
.contact-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.contact-actions button,.contact-actions a { font:inherit; font-size:14px; line-height:1.4; padding:12px 16px; border:1px solid #00875b; border-radius:8px; background:#fff; color:#00875b; text-decoration:none; cursor:pointer; }
.contact-actions a { background:#00875b; color:#fff; }
.contact-modal .contact-result { margin:12px 0 0; min-height:24px; font-size:13px; }
.contact-modal :focus-visible { outline:2px solid #00875b; outline-offset:3px; }
/* Keep the page width stable while either modal locks background scrolling. */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }

/* Give the embedded app its supported text width, without a second scrollbar. */
.legal-modal { box-sizing: border-box; max-width: calc(100vw - 24px); overflow: hidden; }
.legal-frame-slot { min-width: 0; }
.legal-frame-slot iframe { display: block; }
@media (max-width: 360px) {
  .legal-modal { width: calc(100vw - 4px); max-width: calc(100vw - 4px); }
}
