.wt-skip-link {
  position: fixed;
  z-index: 1000000;
  top: 10px;
  left: 10px;
  padding: 11px 16px;
  border-radius: 10px;
  background: #1769ff;
  color: #fff;
  font: 800 14px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.wt-skip-link:focus {
  transform: translateY(0);
}

.wt-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 48px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  background: #fff;
  color: #17233a;
  font: 900 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.wt-language-toggle:hover {
  border-color: #8fb5ff;
  color: #1769ff;
}

.wt-language-toggle--floating {
  position: fixed;
  z-index: 99998;
  top: 20px;
  right: 104px;
}

html[data-theme="dark"] .wt-language-toggle {
  border-color: #315078;
  background: #132239;
  color: #f2f6fc;
}

html[data-theme="dark"] .wt-language-toggle:hover {
  border-color: #7faaff;
  color: #a9c5ff;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #4d8dff !important;
  outline-offset: 3px !important;
}

[role="dialog"][aria-modal="true"] {
  scroll-margin-top: 24px;
}

.wt-sr-live {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html[data-theme="dark"] .legal-header,
html[data-theme="dark"] .legal-footer {
  background: rgba(14, 26, 44, .97);
}

html[data-theme="dark"] body {
  --ink: #f2f6fc;
  --muted: #aebdd1;
  --line: #2a405f;
  --surface: #0e1a2c;
  --page: #07101f;
  color: var(--ink);
  background: var(--page);
}

html[data-theme="dark"] .legal-brand,
html[data-theme="dark"] .legal-content strong {
  color: #f2f6fc;
}

html[data-theme="dark"] .legal-hero,
html[data-theme="dark"] .legal-card {
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme="dark"] .legal-note,
html[data-theme="dark"] .legal-table th {
  border-color: #315078;
  background: #132846;
}

@media (max-width: 760px) {
  .wt-language-toggle {
    min-width: 44px;
    height: 36px;
    padding: 0 9px;
  }

  .wt-language-toggle--floating {
    top: 18px;
    right: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Desktop header alignment and compact navigation */
@media (min-width: 761px) {
  .site-header .header-inner {
    gap: 20px;
  }

  .site-header .logo {
    flex: 0 0 auto;
  }

  .site-header .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(16px, 1.6vw, 26px);
    margin-left: clamp(8px, 1.8vw, 28px);
  }

  .site-header .main-nav a {
    white-space: nowrap;
    line-height: 1.15;
  }

  .site-header .header-actions {
    flex: 0 0 auto;
    gap: 12px;
    margin-left: auto;
  }

  .site-header .header-actions :is(.text-button, .button) {
    white-space: nowrap;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .site-header .header-actions .text-button {
    display: none;
  }

  .site-header .main-nav {
    gap: 14px;
    margin-left: 0;
  }

  .site-header .header-actions {
    gap: 8px;
  }
}

/* WorkTrustly trademark, full wordmark only. */
.logo:not(:has(.logo__compact))::after {
  content: "™";
  align-self: flex-start;
  margin-top: 0.02em;
  margin-left: 0.04em;
  color: var(--blue);
  font-size: max(10px, 0.48em);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}
