/* Footer disclosure only. Native details provides its keyboard/open semantics. */
:is(.atelier-footer, .gateway-footer) .footer-privacy {
  position: relative;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  color: #ede9df;
  font-family: var(--abika-typeface, 'Manrope', Arial, sans-serif);
}
body.atelier .footer-bottom > .footer-privacy {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy-trigger {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #c9c49b70;
  border-radius: 8px;
  background: #ede9df05;
  color: #ede9df;
  font: 500 12px/1.5 var(--abika-typeface, 'Manrope', Arial, sans-serif);
  letter-spacing: .01em;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy-trigger::-webkit-details-marker { display: none; }
:is(.atelier-footer, .gateway-footer) .footer-privacy-trigger::marker { content: ''; }
:is(.atelier-footer, .gateway-footer) .footer-privacy-chevron {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #c9c49b;
  transform: rotate(180deg);
  transition: none;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy[open] { z-index: 4; }
:is(.atelier-footer, .gateway-footer) .footer-privacy[open] > .footer-privacy-trigger {
  border-color: #c9c49b;
  background: #ede9df0c;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy[open] > .footer-privacy-trigger .footer-privacy-chevron { transform: none; }
:is(.atelier-footer, .gateway-footer) .footer-privacy-trigger:focus-visible {
  outline: 2px solid #c9c49b;
  outline-offset: 4px;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy-panel {
  position: absolute;
  z-index: 1;
  bottom: calc(100% + 10px);
  left: 50%;
  width: min(328px, calc(100vw - 48px));
  max-height: min(360px, calc(100svh - 100px));
  box-sizing: border-box;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-50%);
  border: 1px solid #b9a17a99;
  border-radius: 10px;
  background: #f1eee5;
  color: #18372e;
  color-scheme: light;
  box-shadow: 0 12px 36px #0003;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy:not([open]) > .footer-privacy-panel { display: none; }
:is(.atelier-footer, .gateway-footer) .footer-privacy[open] > .footer-privacy-panel { display: block; }
.gateway-footer .footer-privacy-panel { left: auto; right: 0; transform: none; }

/* Reset the old inline/footer-grid nav inside this new compact surface. */
:is(.atelier-footer, .gateway-footer) .footer-privacy .footer-privacy-panel > nav.footer-legal {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  grid-column: auto;
  grid-row: auto;
  justify-self: stretch;
  align-self: stretch;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #18372e;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy .footer-privacy-panel > nav.footer-legal :is(a, button) {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #18372e;
  font-family: var(--abika-typeface, 'Manrope', Arial, sans-serif);
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  cursor: pointer;
  transition: none;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy .footer-privacy-panel > nav.footer-legal :is(a, button):hover {
  background: #e3e8dd;
  color: #18372e;
}
:is(.atelier-footer, .gateway-footer) .footer-privacy .footer-privacy-panel > nav.footer-legal :is(a, button):focus-visible {
  outline: 2px solid #365f4a;
  outline-offset: -2px;
  background: #e3e8dd;
}
@media (max-width: 1180px) {
  body.atelier .footer-bottom > .footer-privacy {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
  .atelier-footer .footer-privacy-panel { left: 0; right: auto; transform: none; }
}
@media (max-width: 1000px) {
  .gateway-footer .footer-privacy { align-self: flex-start; }
  .gateway-footer .footer-privacy-panel { left: 0; right: auto; transform: none; }
}
