/* Legal footer + consent — works with block or column body layouts */

html:has(.navup-site-footer) {
  overflow-x: hidden;
}

body:has(.navup-site-footer) {
  overflow-x: hidden;
  width: 100%;
}

/* If consent/footer were injected as direct body children beside a flex row */
body:has(> .navup-site-footer) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

body:has(> .navup-site-footer) > .container,
body:has(> .navup-site-footer) > .page,
body:has(> .navup-site-footer) > #app,
body:has(> .navup-site-footer) > main {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body:has(> .navup-site-footer) > .navup-consent-block,
body:has(> .navup-site-footer) > .navup-site-footer {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.site-footer,
.navup-site-footer {
  margin-top: 2.5rem;
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #7a7068;
  border-top: 1px solid rgba(31, 26, 20, 0.08);
  line-height: 1.6;
}

.site-footer a,
.navup-site-footer a {
  color: inherit;
  text-decoration: underline;
}

.navup-consent-block {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  background: rgba(42, 74, 110, 0.06);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 100%;
}

.navup-consent-block label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  cursor: pointer;
}

.navup-consent-block input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  body:has(> .navup-site-footer) > .navup-consent-block,
  body:has(> .navup-site-footer) > .navup-site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navup-site-footer {
    font-size: 0.75rem;
  }
}
