/* WST-2.5.2: isolated footer, link-only directions and legal documents. */
.site-footer { position: relative; z-index: 2; padding: 64px 5.2% 28px; background: #e9e8df; color: #193f35; border-top: 1px solid #b8baa9; }
.footer-grid { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr 1fr; align-items: center; gap: 48px; max-width: 1440px; margin: auto; }
.footer-mark { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.footer-mark img { display: block; width: min(100%, 240px); height: auto; object-fit: contain; transform: scale(var(--footer-logo-scale, 1)); }
.footer-contact h2 { font: 30px/1.2 var(--display); letter-spacing: -.5px; margin: 0 0 24px; }
.footer-contact p { font-size: 13px; margin: 0 0 6px; }
.footer-contact address { font-style: normal; margin-bottom: 8px; line-height: 1.6; }
.site-footer a { text-underline-offset: 5px; }
.footer-contact > a, .footer-actions > a:not(.button), .footer-actions nav a, .footer-legal nav a { display: flex; align-items: center; min-height: 44px; width: fit-content; }
.footer-contact > a { overflow-wrap: anywhere; max-width: 100%; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-actions .button { gap: 16px; }
.footer-actions nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 16px; font-size: 14px; }
.footer-legal { max-width: 1440px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #b8baa9; font-size: 13px; line-height: 1.65; }
.footer-legal nav { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-bottom: 16px; font-size: 15px; }
.footer-legal p { margin: 8px 0; }
.footer-rights { max-width: 850px; }
.footer-credit a { display: inline-flex; align-items: center; min-height: 44px; font-weight: bold; text-decoration: underline; }
.footer-draft { color: #4a554c; font-size: 12px; }
.site-footer a:hover, .legal-page a:hover { text-decoration: underline; }
.site-footer a:focus-visible, .legal-page a:focus-visible { outline: 3px solid #164c3f; outline-offset: 5px; border-radius: 2px; }
.map-directions { height: 100%; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: #e6e7df; color: #254c3f; }
.map-directions > .icon { width: 42px; height: 42px; margin-bottom: 20px; }
.map-directions > p:first-of-type { font: 28px/1.2 var(--display); margin: 0 0 16px; }
.map-directions address { font-style: normal; line-height: 1.6; }
.map-directions-note { font-size: 13px; line-height: 1.6; max-width: 230px; }
.legal-page { min-width: 0; background: #f2eee6; color: #242d27; }
.legal-header, .legal-main, .legal-bottom { width: min(820px, calc(100% - 48px)); margin: auto; }
.legal-header { padding: 24px 0; border-bottom: 1px solid #b8baa9; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.legal-header img { width: 72px; height: auto; }
.legal-page a { color: #164c3f; text-decoration: underline; text-underline-offset: 4px; }
.legal-header a, .legal-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-main { padding: 40px 0 56px; font-size: 17px; line-height: 1.75; }
.legal-main h1 { font: 52px/1.08 var(--display); letter-spacing: -1px; margin: 18px 0 28px; }
.legal-main h2 { font: 29px/1.25 var(--display); letter-spacing: 0; margin: 40px 0 16px; }
.legal-main p { margin: 16px 0; }
.legal-main li { margin-bottom: 10px; }
.legal-status, .legal-pending { padding: 16px 20px; border-left: 3px solid #956542; background: #e9e3d7; }
.legal-status { font-size: 15px; }
.legal-pending { font-size: 15px; overflow-wrap: anywhere; }
.legal-bottom { border-top: 1px solid #b8baa9; padding: 20px 0 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-mark { grid-column: 1/-1; min-height: 200px; } .footer-mark img { width: 200px; } }
@media (max-width: 600px) { .site-footer { padding: 40px 24px 24px; } .footer-grid { grid-template-columns: minmax(0,1fr); gap: 28px; } .footer-mark { grid-column: auto; } .footer-contact h2 { font-size: 28px; } .footer-actions { align-items: stretch; } .footer-actions .button { justify-content: center; } .footer-legal { margin-top: 28px; } .footer-legal nav { flex-direction: column; gap: 0; } .legal-main h1 { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { .footer-mark img { transform: none; } }
/* Preserve the hook used by the existing chapter controller without a second footer. */
.footer[hidden] { display: none !important; }
