.site-footer.pact-footer {
  min-height: 0;
  padding-block: 28px 18px;
}

.pact-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 35px;
  padding-bottom: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 65px);
}

.footer-brand > p {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.75;
  color: #bbb;
}

.footer-brand > p > span { display: block; }
.footer-brand__location { color: #aaa; }

.pact-footer .footer-primary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 2.4vw, 38px);
  width: auto;
}

.pact-footer .footer-primary > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 44px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.pact-footer .footer-primary > a:hover {
  border-bottom-color: #ffffff66;
}

.pact-footer .footer-primary .arrow {
  width: 14px;
  height: 14px;
}

.pact-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 35px;
  padding: 15px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.pact-footer .footer-bottom > span {
  flex-shrink: 0;
}

.pact-footer .footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 25px;
  width: auto;
  margin: 0;
}

.pact-footer .footer-legal > a,
.pact-footer .footer-legal > button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 0;
  font-size: 10px;
  color: #aaa;
  line-height: 1.5;
  white-space: nowrap;
}

.pact-footer .footer-legal > a:hover,
.pact-footer .footer-legal > button:hover {
  color: #fff;
}

.pact-footer .footer-legal .back-top {
  margin: 0;
  gap: 8px;
}

.cookie-settings-trigger {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.cookie-settings {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 28px;
  border: 1px solid #444;
  border-radius: 0;
  background: #101010;
  color: #fff;
  font-family: "Manrope Variable", Arial, sans-serif;
  overflow-y: auto;
}
.cookie-settings::backdrop { background: rgb(0 0 0 / .75); }
.cookie-settings h2, .policy-page .cookie-settings h2 {
  margin: 0 24px 16px 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 500;
}
.cookie-settings p { margin: 0; color: #bbb; font-size: 14px; line-height: 1.6; }
.cookie-settings .cookie-settings__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #bbb;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
.cookie-settings p.cookie-settings__note { margin-top: 16px; font-size: 13px; }
.cookie-settings__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-settings__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cookie-settings__actions button {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #555;
  background: #262626;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.cookie-settings__actions button:hover { background: #3a3a3a; }
.cookie-settings__categories { margin: 20px 0 0; font-size: 13px; line-height: 1.6; }
.cookie-settings__categories > div { margin-top: 12px; }
.cookie-settings__categories dt { color: #fff; font-weight: 600; }
.cookie-settings__categories dd { margin: 3px 0 0; color: #bbb; }
.cookie-settings__close:hover { color: #fff; }
.cookie-settings :is(button, a):focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

@media (max-width: 767px) {
  .site-footer.pact-footer {
    padding-block: 28px 18px;
  }

  .pact-footer .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 24px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: start;
    gap: 15px;
  }

  .footer-brand > p {
    font-size: 10px;
    max-width: 170px;
  }

  .pact-footer .footer-primary {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    width: auto;
  }

  .pact-footer .footer-primary > a {
    font-size: 14px;
    min-height: 44px;
    justify-content: space-between;
    gap: 10px;
  }

  .pact-footer .footer-primary .arrow {
    width: 16px;
    height: 16px;
  }

  .pact-footer .footer-bottom {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .pact-footer .footer-legal {
    justify-content: flex-start;
    gap: 0 20px;
  }

  .pact-footer .footer-legal > a,
  .pact-footer .footer-legal > button {
    min-height: 32px;
    font-size: 9px;
  }

  .cookie-settings__necessary {
    grid-template-columns: 1fr;
  }
}
