.analytics-consent {
  position: fixed;
  z-index: 12010;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 920px;
  margin-inline: auto;
  padding: 18px;
  color: var(--text, #f5f1ff);
  background: var(--panel-solid, #151329);
  background: color-mix(in srgb, var(--panel-solid, #151329) 94%, transparent);
  border: 1px solid var(--border, rgba(228, 180, 96, 0.28));
  border-radius: 20px;
  box-shadow: 0 20px 64px rgba(3, 3, 12, 0.32);
  backdrop-filter: blur(18px);
}

.analytics-consent__copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.analytics-consent__copy p {
  max-width: 650px;
  margin: 0 0 6px;
  color: var(--muted, #b9b4c9);
  font-size: 14px;
  line-height: 1.5;
}

.analytics-consent__copy a,
.footer-link-button {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: flex;
  gap: 8px;
}

.analytics-consent__actions button {
  min-height: 44px;
  padding: 10px 14px;
  color: inherit;
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.analytics-consent__actions .analytics-consent__accept {
  color: #171125;
  background: var(--gold-soft, #c8a8ff);
  border-color: transparent;
}

.footer-link-button {
  display: block;
  min-height: 44px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Touch ergonomics for the existing landing without changing its composition. */
.landing-page .nav-inner > .brand,
.landing-page .nav-links a,
.landing-page .self-space-card > a,
.landing-page .arccp-tg,
.landing-page .legal-links a,
.landing-page .footer-grid a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  touch-action: manipulation;
}

.landing-page .nav-links a {
  min-width: 44px;
  justify-content: center;
}

.landing-page .footer-grid a {
  display: flex;
  width: fit-content;
}

.landing-page .mobile-menu,
.landing-page .theme-toggle {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.landing-page .mobile-menu {
  width: 44px;
  height: 44px;
}

.landing-page .nav-actions .btn-primary {
  min-height: 44px;
}

@media (max-width: 720px) {
  .landing-page .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .analytics-consent {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .analytics-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent,
  .analytics-consent * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
