/* Every page's footer (L12): the company, and one button that opens every
   policy, Safety and Report a concern. One button is Ferdi's decision (2
   November 2026), taking the risk that Washington and Connecticut ask for
   links of their own on the home page. On a phone the button is the landing
   page's ⋯ (Ferdi, 2026-10-25); wider, it says what it opens. The landing
   page's colours and type (site.css), and its menu card. Each page gives the
   footer its width. */

.site-footer {
  --footer-text: #eae0e6;
  --footer-text-2: #d1c5ce;
  --footer-text-3: #998d99;
  --footer-stroke: rgba(248, 216, 252, 0.12);
  --footer-stroke-subtle: rgba(248, 216, 252, 0.06);
  --footer-card: #161316;
  --footer-accent: #eca4fd;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--footer-stroke-subtle);
  color: var(--footer-text-3);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.site-footer :focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 3px;
}

.site-footer-company {
  white-space: nowrap;
}

.site-footer-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--footer-text-2);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site-footer-more:hover {
  color: var(--footer-text);
}

.site-footer-chevron {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.site-footer-more[aria-expanded="true"] .site-footer-chevron {
  transform: rotate(180deg);
}

.site-footer-dots {
  display: none;
  fill: currentColor;
}

/* The menu: a card just above the button (footer.js places it), or at the
   foot of the window on the right without script. Closed, it isn't there:
   :is() lets a browser without popovers still read .is-open. */
.site-footer-links {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-links:is(:popover-open, .is-open) {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: max-content;
  min-width: 240px;
  max-width: calc(100vw - 32px);
  height: auto;
  margin: 0;
  padding: 6px;
  overflow: visible;
  border: 1px solid var(--footer-stroke);
  border-radius: 18px;
  background: var(--footer-card);
  color: var(--footer-text-2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  font-size: 15px;
  line-height: 1.3;
}

.site-footer-links li {
  margin: 0;
}

.site-footer-links a,
.site-footer-links button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--footer-text-2);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-footer-links a:hover,
.site-footer-links button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--footer-text);
}

.site-footer-links :focus-visible {
  outline-offset: -2px;
}

/* A phone: one line, the company and a ⋯ whose name is the label's. */
@media (max-width: 699px) {
  .site-footer {
    flex-wrap: nowrap;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    font-size: 13px;
  }

  .site-footer-more {
    justify-content: center;
    width: 40px;
    height: 32px;
    margin-right: -8px;
    padding: 0;
  }

  .site-footer-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .site-footer-chevron {
    display: none;
  }

  .site-footer-dots {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-chevron {
    transition: none;
  }
}
