/**
 * Footer and acceptance bar. Scoped so linking this file does not restyle a host site.
 */
.nbulai-footer {
  --nf-bg: #f5f5f7;
  --nf-fg: #1d1d1f;
  --nf-muted: #6e6e73;
  --nf-faint: #86868b;
  --nf-line: rgba(0, 0, 0, 0.08);
  --nf-link: #424245;
  --nf-link-hover: #0066cc;
  --nf-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;

  box-sizing: border-box;
  width: 100%;
  margin-top: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--nf-bg);
  color: var(--nf-fg);
  border-top: 1px solid var(--nf-line);
  font-family: var(--nf-font);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.nbulai-footer *,
.nbulai-footer *::before,
.nbulai-footer *::after,
.nbulai-accept *,
.nbulai-accept *::before,
.nbulai-accept *::after {
  box-sizing: border-box;
}

.nbulai-footer--dark {
  --nf-bg: #0a0a0b;
  --nf-fg: rgba(255, 255, 255, 0.92);
  --nf-muted: rgba(255, 255, 255, 0.58);
  --nf-faint: rgba(255, 255, 255, 0.4);
  --nf-line: rgba(255, 255, 255, 0.12);
  --nf-link: rgba(255, 255, 255, 0.78);
  --nf-link-hover: #fff;
}

.nbulai-footer__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
}

.nbulai-footer__brand {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.nbulai-footer__studio,
.nbulai-footer__desc,
.nbulai-footer__ownership,
.nbulai-footer__copy,
.nbulai-footer__product {
  margin: 0.35rem 0 0;
  color: var(--nf-muted);
}

.nbulai-footer__desc,
.nbulai-footer__ownership {
  max-width: 36rem;
}

.nbulai-footer__ownership,
.nbulai-footer__marks,
.nbulai-footer__product {
  color: var(--nf-faint);
  font-size: 0.75rem;
}

.nbulai-footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  text-align: right;
}

.nbulai-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbulai-footer__nav a {
  color: var(--nf-link);
  text-decoration: none;
}

.nbulai-footer__nav a:hover,
.nbulai-footer__nav a:focus-visible,
.nbulai-footer__nav a[aria-current="page"] {
  color: var(--nf-link-hover);
}

.nbulai-footer__nav a:focus-visible {
  outline: 2px solid var(--nf-link-hover);
  outline-offset: 3px;
  border-radius: 3px;
}

.nbulai-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--nf-line);
}

.nbulai-footer__marks {
  margin: 0;
  letter-spacing: 0.04em;
}

.nbulai-accept {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: rgba(251, 251, 253, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: #1d1d1f;
}

.nbulai-accept--dark {
  background: rgba(18, 18, 20, 0.9);
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.nbulai-accept__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.nbulai-accept__copy {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #424245;
}

.nbulai-accept--dark .nbulai-accept__copy {
  color: rgba(255, 255, 255, 0.78);
}

.nbulai-accept__copy a {
  color: #0066cc;
  text-decoration: none;
}

.nbulai-accept--dark .nbulai-accept__copy a {
  color: #7ab4ff;
}

.nbulai-accept__copy a:hover {
  text-decoration: underline;
}

.nbulai-accept__btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 980px;
  padding: 0.55rem 1.15rem;
  background: #0071e3;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  cursor: pointer;
}

.nbulai-accept__btn:hover {
  background: #0077ed;
}

.nbulai-accept__btn:focus-visible,
.nbulai-accept__copy a:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.nbulai-accept-spacer {
  width: 100%;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .nbulai-footer__inner,
  .nbulai-accept__inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nbulai-footer__aside {
    align-items: flex-start;
    text-align: left;
  }

  .nbulai-footer__nav {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .nbulai-accept__btn {
    min-height: 2.75rem;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nbulai-accept__btn {
    transition: none;
  }
}

@media print {
  .nbulai-accept,
  .nbulai-accept-spacer {
    display: none !important;
  }
}
