/* Site footer and the About / Legal modals, shared by every page (rendered by site-footer.js). */
.wb-footer {
  --wf-bg: #0c3d38;
  --wf-bg2: #156860;
  --wf-text: #E6F2F0;
  --wf-muted: #A9C8C3;
  --wf-gold: #D4AF37;
  margin-top: 48px;
  background: linear-gradient(160deg, var(--wf-bg2) 0%, var(--wf-bg) 70%);
  color: var(--wf-text);
  font-family: system-ui, sans-serif;
  border-top: 3px solid var(--wf-gold);
}
.wb-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 44px 28px 32px; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 40px; align-items: start;
}
.wb-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wb-footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; width: fit-content; }
.wb-footer-logo img { width: 36px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.wb-footer-logo span { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.3px; line-height: 1; color: #fff; }
.wb-footer-logo b { color: var(--wf-gold); font-weight: 800; }
.wb-footer-tagline { margin: 0; color: var(--wf-muted); font-size: .95rem; line-height: 1.5; max-width: 320px; }
/* ABOUT / LEGAL / SUPPORT: three equal tracks whose headings share one top baseline */
.wb-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.wb-footer-col { min-width: 0; }
.wb-footer-col h2 {
  margin: 0 0 14px; font-size: .78rem; font-weight: 800; line-height: 1.2; letter-spacing: 1.4px; text-transform: uppercase; color: var(--wf-gold);
}
.wb-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wb-footer-col li { margin: 0; padding: 0; line-height: 1.4; }
/* Buttons and anchors render as identical plain text links: no box, border, outline or shadow */
.wb-footer-link {
  display: inline; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none; font: inherit; font-size: .93rem; line-height: 1.4; text-align: left;
  color: var(--wf-text); text-decoration: none; cursor: pointer; transition: color .2s; overflow-wrap: anywhere;
}
.wb-footer-link:hover { color: var(--wf-gold); }
.wb-footer-link:focus-visible { outline: 2px solid var(--wf-gold); outline-offset: 3px; border-radius: 3px; }
.wb-footer-link.wb-no-ring:focus-visible { outline: none; }
.wb-footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 16px 28px 22px; box-sizing: border-box; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; font-size: .84rem; line-height: 1.5; color: var(--wf-muted);
}
.wb-footer-bottom a { color: var(--wf-gold); text-decoration: none; }
.wb-footer-bottom a:hover { text-decoration: underline; }

/* Tablet and phone: brand on top, the three columns below it, everything centred on one axis */
@media (max-width: 860px) {
  .wb-footer-inner { grid-template-columns: 1fr; padding: 36px 20px 26px; gap: 28px; justify-items: center; text-align: center; }
  .wb-footer-brand { align-items: center; }
  .wb-footer-links { width: 100%; max-width: 620px; gap: 20px; }
  .wb-footer-col ul { align-items: center; }
  .wb-footer-link { text-align: center; }
  .wb-footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .wb-footer-links { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .wb-footer-bottom { padding: 14px 20px 20px; flex-direction: column; }
}

/* Full-screen map: a slim one-row footer so the map keeps the viewport */
.wb-footer.is-compact { margin-top: 0; border-top-width: 2px; flex: 0 0 auto; }
.wb-footer.is-compact .wb-footer-inner { display: none; }
.wb-footer.is-compact .wb-footer-bottom { border-top: 0; padding: 8px 20px; align-items: center; flex-direction: row; font-size: .78rem; }
.wb-footer-compact-links { display: none; flex-wrap: wrap; gap: 4px 14px; }
.wb-footer.is-compact .wb-footer-compact-links { display: flex; }
.wb-footer.is-compact .wb-footer-link { font-size: .78rem; color: var(--wf-muted); }
.wb-footer.is-compact .wb-footer-link:hover { color: var(--wf-gold); }
@media (max-width: 640px) {
  .wb-footer.is-compact .wb-footer-bottom { justify-content: center; text-align: center; padding: 6px 12px; }
  .wb-footer.is-compact .wb-footer-built { display: none; }
}

/* Modal */
.wb-legal {
  width: min(680px, calc(100vw - 24px)); max-height: min(86vh, 860px); padding: 0; border: 0; border-radius: 18px;
  background: var(--card, #fff); color: var(--text, #1C2D2B); box-shadow: 0 24px 70px rgba(0,0,0,.35);
  font-family: system-ui, sans-serif; overflow: hidden;
}
.wb-legal[open] { display: flex; flex-direction: column; animation: wb-legal-in .22s cubic-bezier(.2,.8,.2,1); }
.wb-legal::backdrop { background: rgba(8, 30, 28, .6); backdrop-filter: blur(3px); }
@keyframes wb-legal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wb-legal[open] { animation: none; } }
.wb-legal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 18px;
  background: linear-gradient(160deg, #156860, #0c3d38); color: #fff; border-bottom: 3px solid #D4AF37;
}
.wb-legal-kicker { margin: 0 0 4px; font-size: .72rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #D4AF37; }
.wb-legal-head h2 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.wb-legal-updated { margin: 6px 0 0; font-size: .8rem; color: #A9C8C3; }
.wb-legal-close {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.wb-legal-close:hover { background: rgba(255,255,255,.2); }
.wb-legal-close:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }
.wb-legal-body { padding: 22px 26px 8px; overflow-y: auto; line-height: 1.65; font-size: .96rem; }
.wb-legal-body h3 { margin: 20px 0 6px; font-size: 1.02rem; color: var(--teal, #1A9B8E); }
.wb-legal-body h3:first-child { margin-top: 0; }
.wb-legal-body p, .wb-legal-body ul { margin: 0 0 12px; }
.wb-legal-body ul { padding-left: 20px; }
.wb-legal-body li { margin-bottom: 6px; }
.wb-legal-body a { color: var(--teal, #1A9B8E); font-weight: 600; }
.wb-legal-body strong { color: var(--text, #1C2D2B); }
.wb-legal-note {
  padding: 12px 14px; border-radius: 10px; background: rgba(212,175,55,.12); border-left: 4px solid #D4AF37; font-size: .92rem;
}
.wb-legal-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 26px 18px; border-top: 1px solid var(--border, #B2DFDB);
}
.wb-legal-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-legal-tab {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border, #B2DFDB); background: transparent;
  color: var(--muted, #5A7572); font: inherit; font-size: .8rem; cursor: pointer; transition: all .2s;
}
.wb-legal-tab:hover { border-color: var(--teal, #1A9B8E); color: var(--teal, #1A9B8E); }
.wb-legal-tab[aria-current="true"] { background: var(--teal, #1A9B8E); border-color: var(--teal, #1A9B8E); color: #fff; }
.wb-legal-done {
  padding: 9px 20px; border-radius: 999px; border: 0; background: #D4AF37; color: #1C2D2B; font: inherit; font-weight: 700; cursor: pointer;
}
.wb-legal-done:hover { background: #E5C14A; }
@media (max-width: 520px) {
  .wb-legal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .wb-legal-head, .wb-legal-body, .wb-legal-foot { padding-left: 18px; padding-right: 18px; }
}
html.wb-legal-lock { overflow: hidden; }
