/* Official Access Legal palette, applied through LibreChat's existing design tokens. */
:root {
  --access-legal-teal-dark: 0 82 93;
  --access-legal-citrus: 207 252 130;
  --access-legal-teal: 26 127 140;
  --access-legal-teal-light: 218 241 239;

  --accent-primary: 0 82 93 !important;
  --accent-primary-hover: 26 127 140 !important;
  --brand-purple: 0 82 93 !important;
  --link: 0 82 93 !important;
  --link-hover: 26 127 140 !important;
  --link-visited: 0 82 93 !important;
  --ring-primary: 0 82 93 !important;
  --surface-submit: 0 82 93 !important;
  --surface-submit-hover: 26 127 140 !important;
}

:root.dark {
  --accent-primary: 207 252 130 !important;
  --accent-primary-hover: 218 241 239 !important;
  --brand-purple: 207 252 130 !important;
  --link: 207 252 130 !important;
  --link-hover: 218 241 239 !important;
  --link-visited: 207 252 130 !important;
  --ring-primary: 207 252 130 !important;
  --surface-submit: 0 82 93 !important;
  --surface-submit-hover: 26 127 140 !important;
}

/*
 * Replace LibreChat's cached logo URL with versioned Access Legal wordmarks.
 * The distinct URLs also invalidate service-worker caches after a brand release.
 */
img[src$="assets/logo.svg"] {
  content: url("/assets/access-legal-wordmark.svg") !important;
}

:root.dark img[src$="assets/logo.svg"] {
  content: url("/assets/access-legal-wordmark-white.svg") !important;
}

/* An empty CUSTOM_FOOTER removes LibreChat attribution; hide its orphaned divider. */
.relative.w-full > [role="contentinfo"] > div:first-child {
  display: none;
}
