/* Shared container. Name and ai are isolated to prevent gradient clipping artifacts. */
.legalcontext-common-wordmark {
  display: inline-flex !important;
  align-items: flex-start;
  width: max-content;
  color: inherit;
  font-family: "Arial Rounded MT Bold", "Avenir Next Rounded", "Nunito Sans",
    "Trebuchet MS", Inter, system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  background: none !important;
  -webkit-text-fill-color: initial;
  text-rendering: geometricPrecision;
}

.legalcontext-common-wordmark::after {
  content: none !important;
  display: none !important;
}

.legalcontext-wordmark-name {
  display: inline-block;
  color: #2563a6;
  line-height: inherit;
  padding: 0.02em 0 0.06em;
  background: linear-gradient(105deg, #2563a6 8%, #277f9d 48%, #14a58f 92%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legalcontext-wordmark-ai {
  display: inline-block;
  margin-left: 0.13em;
  color: #8b5cf6;
  font-family: inherit;
  font-size: 0.56em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  transform: translateY(-0.08em);
  background: linear-gradient(135deg, #22d3ee 5%, #8b5cf6 52%, #f472b6 95%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 0.16em rgba(139, 92, 246, 0.35));
}

.dark .legalcontext-wordmark-name {
  background: linear-gradient(105deg, #93c5fd 8%, #67c7d1 48%, #5eead4 92%);
  background-clip: text;
  -webkit-background-clip: text;
}

html.legalcontext-auth-page div:has(> img[src="/images/legal-context-logo.png"])::after {
  content: none !important;
  display: none !important;
}

.legalcontext-auth-wordmark {
  font-size: clamp(2rem, 4vw, 2.25rem);
  line-height: 1.18;
  padding: 0.08em 0 0.14em;
  white-space: nowrap;
}

.message-render .agent-turn > h2.legalcontext-answer-wordmark {
  align-self: flex-start;
  font-size: 1.08rem !important;
  line-height: 1.35 !important;
  white-space: nowrap;
}

[role="contentinfo"].legalcontext-unified-footer {
  --legalcontext-footer-text-size: 0.75rem;
  --legalcontext-footer-brand-size: 0.86rem;
  font-size: var(--legalcontext-footer-text-size) !important;
  line-height: 1.25rem !important;
}

[role="contentinfo"].legalcontext-unified-footer > .legalcontext-footer-wordmark {
  flex: 0 0 auto;
  align-items: flex-start;
  font-size: var(--legalcontext-footer-brand-size) !important;
  line-height: 1.15 !important;
  white-space: nowrap;
}

.legalcontext-footer-wordmark .legalcontext-wordmark-ai {
  font-size: 0.6em;
}

[role="contentinfo"].legalcontext-unified-footer > .legalcontext-footer-descriptor,
[role="contentinfo"].legalcontext-unified-footer > a {
  flex: 0 0 auto;
  color: inherit !important;
  font-family: inherit !important;
  font-size: var(--legalcontext-footer-text-size) !important;
  font-weight: 500 !important;
  line-height: 1.25rem !important;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .message-render .agent-turn > h2.legalcontext-answer-wordmark {
    font-size: 1.02rem !important;
  }
}
