/* Shared site footer: legal links on one side, language switch on the other.
   The divider and solid background run the full width of the page. */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100vmax;
  right: -100vmax;
  border-top: 1px solid var(--line, #c4a982);
}

/* The backdrop is a box-shadow so it adds no scrollable overflow; the
   clip-path stops it from spreading above the divider. */
html {
  overflow-x: clip;
}

.site-footer {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.25rem;
  position: relative;
  z-index: 1;
  background: var(--paper, #f5ede0);
  box-shadow: 0 0 0 100vmax var(--paper, #f5ede0);
  clip-path: inset(0 -100vmax -100vmax);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font: 0.875rem/1.4 'DM Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
}

.site-footer .footer-note {
  flex-basis: 100%;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font: inherit;
}

.site-footer .footer-links {
  display: flex;
  justify-content: flex-start;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-footer .footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer .footer-links a[aria-current='page'] {
  color: var(--ink);
}

.site-footer .language {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 1px solid var(--card-border, #c4a982);
  border-radius: 999px;
}

.site-footer .language button {
  min-width: 2.25rem;
  min-height: 1.75rem;
  margin: 0;
  padding: 0.125rem 0.5rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font: 700 0.75rem 'DM Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  transform: none;
}

.site-footer .language button[aria-pressed='true'] {
  color: var(--paper);
  background: var(--ink);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 2px;
  border-radius: 999px;
}

.legal-fallback {
  margin: 1rem 0 0;
  color: var(--muted);
  font: 0.9375rem/1.5 'DM Sans', system-ui, -apple-system, sans-serif;
}
