/* DOCA — premium AI tool surface (liquid-glass dark) */

:root {
  --doca-bg-deep: #030712;
  --doca-glass-bg: rgba(15, 23, 42, 0.55);
  --doca-glass-border: rgba(255, 255, 255, 0.08);
  --doca-primary-from: #0ea5e9;
  --doca-primary-to: #8b5cf6;
  --doca-cta-from: #0284c7;
  --doca-cta-via: #6366f1;
  --doca-cta-to: #f97316;
}

body.doca-surface {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--doca-bg-deep);
  touch-action: manipulation;
  min-height: 100%;
  min-height: 100dvh;
}

html {
  min-height: 100%;
  min-height: 100dvh;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(15, 23, 42, 0.85);
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 9999px;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.88) 0%, rgba(99, 102, 241, 0.82) 100%);
  border-radius: 9999px;
  border: 2px solid rgba(15, 23, 42, 0.55);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.98) 0%, rgba(129, 140, 248, 0.92) 100%);
}

.doca-locale-select {
  min-height: 40px;
  min-width: 92px;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: left;
  text-align-last: left;
  line-height: 1.2;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #e2e8f0;
  background-color: rgba(2, 6, 23, 0.78);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 1rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  color-scheme: dark;
}

.doca-locale-select:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background-color: rgba(2, 6, 23, 0.92);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.22);
}

.doca-locale-select:focus,
.doca-locale-select:focus-visible {
  outline: none;
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: none;
}

.doca-locale-select:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}

.doca-locale-select option {
  color: #e2e8f0;
  background-color: #020617;
  text-align: left;
  font-weight: 600;
}

.doca-locale-select option:checked {
  color: #f8fafc;
  background-color: #0ea5e9;
}

.doca-topbar {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 55px -25px rgba(2, 132, 199, 0.4);
}

.doca-topbar-title {
  letter-spacing: 0.02em;
}

.doca-topbar-mark {
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.doca-topbar-subtitle {
  letter-spacing: 0.01em;
}

.doca-pill {
  min-height: 28px;
  align-items: center;
}

.doca-title {
  position: relative;
  display: inline-block;
  letter-spacing: -0.03em;
  background: linear-gradient(
    115deg,
    #f0f9ff 0%,
    #7dd3fc 18%,
    #38bdf8 32%,
    #a78bfa 52%,
    #e879f9 68%,
    #bae6fd 85%,
    #f0f9ff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.45)) drop-shadow(0 0 56px rgba(139, 92, 246, 0.22))
    drop-shadow(0 2px 12px rgba(14, 165, 233, 0.35));
  animation: doca-title-shimmer 10s ease-in-out infinite;
}

@keyframes doca-title-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.doca-ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.doca-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.doca-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: doca-float 18s ease-in-out infinite;
}

.doca-orb--a {
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  top: -8%;
  left: -10%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, transparent 65%);
}

.doca-orb--b {
  width: min(380px, 85vw);
  height: min(380px, 85vw);
  top: 35%;
  right: -15%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, transparent 65%);
  animation-delay: -6s;
}

.doca-orb--c {
  width: min(320px, 75vw);
  height: min(320px, 75vw);
  bottom: -5%;
  left: 25%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes doca-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, 3%) scale(1.04);
  }
  66% {
    transform: translate(-2%, 1%) scale(0.98);
  }
}

.doca-glass {
  background: var(--doca-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px -20px rgba(0, 0, 0, 0.55);
}

.doca-composer {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 32px 100px -24px rgba(15, 23, 42, 0.9),
    0 0 80px -30px rgba(56, 189, 248, 0.15);
}

.doca-composer-pill {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 32px 95px -26px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(125, 211, 252, 0.1);
}

.doca-drop-hint {
  min-width: 0;
}

.doca-legal-consent--embed {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.doca-legal-consent__label {
  min-width: 0;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .doca-composer-pill {
    border-radius: 2rem;
  }
}

.doca-composer-field {
  min-height: 3.25rem;
  max-height: 40vh;
  line-height: 1.5;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 165, 233, 0.7) rgba(15, 23, 42, 0.35);
}

.doca-composer-field::placeholder {
  opacity: 0.85;
}

.doca-composer-field::-webkit-scrollbar {
  width: 10px;
}

.doca-composer-field::-webkit-scrollbar-track {
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.35);
}

.doca-composer-field::-webkit-scrollbar-thumb {
  border: 2px solid rgba(15, 23, 42, 0.35);
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.95) 0%, rgba(99, 102, 241, 0.95) 100%);
}

.doca-composer-field::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(14, 165, 233, 1) 0%, rgba(79, 70, 229, 1) 100%);
}

.doca-hero-card,
.doca-trust-card {
  position: relative;
  overflow: hidden;
}

.doca-hero-card::before,
.doca-trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0) 55%);
}

.doca-hero-card > *,
.doca-trust-card > * {
  position: relative;
  z-index: 1;
}

.doca-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.42rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #cbd5e1;
}

.doca-metric {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
  padding: 0.8rem 0.85rem;
}

.doca-metric-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #7dd3fc;
}

.doca-metric-value {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: #e2e8f0;
}

.doca-file-pill {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Fixed to body: avoids clipping by .doca-composer-pill { overflow: hidden } */
#doca-file-tooltip-host {
  position: fixed;
  z-index: 200;
  display: none;
  min-width: 0;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.98);
  color: #f1f5f9;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 30px -8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

#doca-file-tooltip-host.doca-file-tooltip-host--visible {
  display: block;
}

.doca-file-pill-name {
  min-width: 0;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
  padding: 0;
  background: transparent;
  font: inherit;
  font-weight: 500;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  text-decoration-color: rgba(148, 163, 184, 0.45);
}

.doca-file-pill-name--static {
  display: inline-block;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  cursor: default;
  text-decoration: none;
}

.doca-file-pill-name:hover {
  color: #e2e8f0;
  text-decoration-color: rgba(125, 211, 252, 0.55);
}

.doca-file-pill-name:focus {
  outline: none;
}

.doca-file-pill-name:focus-visible {
  outline: none;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.doca-file-pill-name--expanded {
  max-width: min(100%, 20rem);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
  cursor: pointer;
  text-decoration: none;
}

.doca-file-pill-popover {
  margin: 0;
  padding: 0.65rem 0.85rem;
  max-width: min(calc(100vw - 2rem), 26rem);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.98);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 18px 45px -12px rgba(0, 0, 0, 0.65);
}

.doca-file-pill-popover::backdrop {
  background: rgba(2, 6, 23, 0.45);
}

.doca-file-pill-size {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
}

.doca-file-pill-remove {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.doca-file-pill-remove:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.doca-file-pill-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px rgba(248, 113, 113, 0.5);
}

.doca-plus-btn:hover {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.doca-plus-btn:focus,
.doca-plus-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.doca-plus-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}

.doca-send-btn {
  background: linear-gradient(
    135deg,
    var(--doca-cta-from) 0%,
    var(--doca-cta-via) 55%,
    var(--doca-cta-to) 100%
  );
  background-size: 180% 180%;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.doca-send-btn:hover:not(:disabled) {
  background-position: 90% 50%;
  box-shadow:
    0 14px 35px -6px rgba(56, 189, 248, 0.38),
    0 0 0 1px rgba(125, 211, 252, 0.25);
}

.doca-send-btn:focus,
.doca-send-btn:focus-visible {
  outline: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.doca-send-btn:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.55);
  outline-offset: 3px;
}

.doca-send-btn:disabled {
  box-shadow: none;
}

.doca-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doca-input:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.doca-select {
  min-height: 48px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.doca-btn-primary {
  background: linear-gradient(
    135deg,
    var(--doca-cta-from) 0%,
    var(--doca-cta-via) 50%,
    var(--doca-cta-to) 100%
  );
  background-size: 200% 200%;
  transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.doca-btn-primary:hover:not(:disabled) {
  background-position: 100% 50%;
}

.doca-btn-download {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.doca-btn-download:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.doca-auth-open-btn {
  background: linear-gradient(120deg, var(--doca-cta-from), var(--doca-cta-via), var(--doca-cta-to));
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  min-height: 40px;
  padding: 0.375rem 0.75rem;
}

.doca-auth-open-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.doca-auth-user-chip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doca-user-menu-item:hover,
.doca-user-menu-item:focus-visible {
  background: rgba(14, 165, 233, 0.18);
  outline: none;
}

.doca-user-menu-panel {
  position: fixed;
  z-index: 400;
}

.doca-account-input {
  min-height: 44px;
}

.doca-account-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.doca-account-back-btn {
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.doca-account-back-btn:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.18);
  transform: translateY(-1px);
}

.doca-account-back-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}

.doca-auth-tab[aria-pressed="true"] {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.22);
  color: #e0f2fe;
}

.doca-auth-tab {
  min-height: 40px;
  padding: 0.375rem 0.875rem;
}

#auth-modal .doca-legal-modal__panel {
  max-width: 860px;
}

.doca-auth-submit-btn {
  width: auto;
  min-width: 180px;
  min-height: 40px;
  align-self: flex-start;
  padding: 0.5rem 1rem;
}

.doca-progress-bar {
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.doca-progress-bar.is-error {
  background: linear-gradient(to right, #ef4444, #ea580c) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  outline: none;
  transform: translateY(0);
  box-shadow: 0 0 0 2px #0ea5e9, 0 0 0 4px #0f172a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#status-panel {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 26px 70px -30px rgba(30, 41, 59, 0.9);
}

.doca-toast-root {
  pointer-events: none;
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 100;
  display: flex;
  max-width: min(28rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.doca-toast {
  pointer-events: none;
  border-radius: 0.9rem;
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: rgba(30, 27, 17, 0.94);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 18px 40px -12px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fde68a;
  text-align: center;
}

.doca-toast--error {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(50, 20, 20, 0.92);
  color: #fecaca;
}

.doca-footer {
  position: relative;
  isolation: isolate;
  letter-spacing: 0.01em;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  /* Slightly deeper band so footer reads as its own section */
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(2, 6, 23, 0.96) 55%,
    var(--doca-bg-deep) 100%
  );
}

/* Hairline between main content and footer — matches content width (footer is inside main max-w-6xl) */
.doca-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.22) 14%,
    rgba(14, 165, 233, 0.5) 38%,
    rgba(139, 92, 246, 0.45) 62%,
    rgba(56, 189, 248, 0.22) 86%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.09);
}

.doca-footer__intro {
  line-height: 1.45;
}

.doca-footer-brand-suffix {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.doca-footer__list--links a {
  text-underline-offset: 3px;
}

/* Legal pages (/legal/*.html) */
.legal-doc {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1rem 4rem;
}

.legal-doc h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.legal-doc .legal-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.legal-doc h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
}

.legal-doc ul {
  margin: 0.5rem 0 1rem 1.1rem;
  list-style: disc;
}

.legal-doc strong {
  color: #cbd5e1;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
}

.legal-nav a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-nav a:hover {
  color: #7dd3fc;
}

.legal-lang {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  color: #64748b;
}

/* Embedded in app modal (?embed=1): hide standalone nav */
.legal-embed .legal-nav {
  display: none;
}

.legal-embed .legal-doc {
  padding-top: 1.75rem;
}

.doca-legal-modal {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(52rem, calc(100vw - 2rem));
  width: 100%;
  background: transparent;
  color: #e2e8f0;
}

.doca-legal-modal::backdrop {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.doca-legal-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 1100px);
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--doca-glass-border);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.doca-legal-modal__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.45);
}

.doca-legal-modal__title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f1f5f9;
}

.doca-legal-modal__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

.doca-legal-modal__open-external {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #7dd3fc;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.doca-legal-modal__open-external:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.doca-legal-modal__open-external:focus {
  outline: none;
}

.doca-legal-modal__open-external:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.doca-legal-modal__open-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.doca-legal-modal__close {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.doca-legal-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.doca-legal-modal__close:focus {
  outline: none;
}

.doca-legal-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.doca-legal-modal__frame {
  flex: 1 1 auto;
  min-height: min(68vh, 36rem);
  width: 100%;
  border: 0;
  background: #020617;
}

@media (prefers-reduced-motion: reduce) {
  .doca-legal-modal::backdrop {
    backdrop-filter: none;
  }

  .doca-orb {
    animation: none;
  }

  .doca-title {
    animation: none;
  }

  .doca-btn-primary,
  .doca-send-btn {
    transition: none;
  }

  #progress-bar {
    transition: none;
  }
}
