/*
 * Legitt AI header + footer for the WordPress blog.
 * Ported from Header.astro / Footer.astro on legittai.com.
 * Every selector is prefixed with .legittai- so it can't collide with WordPress or plugin styles.
 */

:root {
  --legittai-cta: #195781;      /* --color-primary-cta on the Astro site */
  --legittai-ink: #0d2137;
  --legittai-dark: #0f172a;     /* --color-neutral-900 */
  --legittai-header-h: 62px;
  /* From the Astro site's global.css */
  --legittai-text: #1d1e22;     /* --color-text-primary */
  --legittai-brand: #6c35de;    /* --color-brand */
  --legittai-linen: #f9f7f3;    /* --color-hero-bg-soft */
  --legittai-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base type the Astro header/footer inherit from global.css (body: 15px / 1.6, Inter) */
.legittai-header,
.legittai-drawer,
.legittai-footer {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.legittai-header,
.legittai-drawer { color: var(--legittai-text); }
.legittai-header a,
.legittai-drawer a,
.legittai-footer a { text-decoration: none; }
.legittai-header ul,
.legittai-footer ul { list-style: none; }

/* ─── Skip link ─────────────────────────────────────── */
.legittai-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--legittai-brand);
  color: #fff !important;
  font-size: 0.8125rem;
  border-radius: 8px;
  transition: top 120ms var(--legittai-ease-out);
}
.legittai-skip-link:focus { top: 1rem; }

/* ─── Header shell ──────────────────────────────────── */
.legittai-header,
.legittai-header *,
.legittai-drawer,
.legittai-drawer *,
.legittai-footer,
.legittai-footer * {
  box-sizing: border-box;
}

.legittai-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

/* Fixed header on phones/tablets → reserve its height */
body { padding-top: var(--legittai-header-h); }

@media (min-width: 1140px) {
  .legittai-header {
    position: sticky;
    left: auto;
    right: auto;
    background: transparent;
  }
  body { padding-top: 0; }
}

/* WordPress admin bar (logged-in users only) */
.admin-bar .legittai-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .legittai-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .legittai-header { top: 0; }
}

/* Keep the mobile drawer's top (logo + close button) clear of the admin bar */
.admin-bar .legittai-drawer { top: 32px; height: calc(100dvh - 32px); }
@media (max-width: 782px) {
  .admin-bar .legittai-drawer { top: 46px; height: calc(100dvh - 46px); }
}
@media (max-width: 600px) {
  .admin-bar .legittai-drawer { top: 0; height: 100dvh; z-index: 100000; }
}

/* Post pages: the sticky table of contents / share bar and in-page heading jumps
   should stop below the sticky header instead of sliding underneath it. */
@media (min-width: 1140px) {
  body.single .toc,
  body.single .share { top: calc(var(--legittai-header-h) + 20px); }
  body.single.admin-bar .toc,
  body.single.admin-bar .share { top: calc(var(--legittai-header-h) + 52px); }
  body.single .prose h2 { scroll-margin-top: calc(var(--legittai-header-h) + 20px); }
}

.legittai-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 32px rgba(0, 0, 0, 0.06);
}

.legittai-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--legittai-header-h);
  display: flex;
  align-items: center;
  position: relative; /* anchors the shared mega panel */
}

@media (min-width: 1024px) {
  .legittai-header__inner { padding: 0 1.5rem; }
}

@media (min-width: 1140px) {
  .legittai-header__inner {
    display: grid;
    grid-template-columns: 0.9fr auto 1fr;
    column-gap: 1.5rem;
  }
  .legittai-logo { justify-self: start; }
  .legittai-nav { justify-self: center; }
  .legittai-actions { justify-self: end; }
}

/* ─── Logo ──────────────────────────────────────────── */
.legittai-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.legittai-logo:hover { opacity: 0.75; }
.legittai-logo img {
  display: block;
  height: 30px;
  width: auto;
}

/* ─── Desktop nav ───────────────────────────────────── */
.legittai-nav {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1140px) {
  .legittai-nav { display: flex; }
}

.legittai-nav__item { position: relative; }

/* Hover bridge so the menu doesn't close in the gap below a trigger */
.legittai-nav__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.legittai-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1d1d1f;
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.legittai-nav__btn:hover,
.legittai-nav__btn[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.05);
  color: var(--legittai-cta);
}
.legittai-nav__btn:focus-visible {
  outline: 2px solid var(--legittai-cta);
  outline-offset: 2px;
}

.legittai-chevron {
  flex-shrink: 0;
  opacity: 0.38;
  transition: transform 0.22s ease, opacity 0.15s;
}
.legittai-nav__btn[aria-expanded="true"] .legittai-chevron {
  transform: rotate(180deg);
  opacity: 0.65;
}

/* ─── Shared mega panel ─────────────────────────────── */
.legittai-mega {
  display: none;
}
@media (min-width: 1140px) {
  .legittai-mega {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: min(1060px, 92vw);
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.04), 0 12px 32px rgba(2, 6, 23, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 60;
  }
}

/* Hover bridge above the panel */
.legittai-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.legittai-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.legittai-mega[data-open-key="case-studies"],
.legittai-mega[data-open-key="resources"] { width: 320px; }
.legittai-mega[data-open-key="templates"] { width: min(600px, 92vw); }

.legittai-mega__inner {
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  overflow: hidden;
}

.legittai-mega__content { display: none; }
.legittai-mega__content.is-active { display: block; }

.legittai-mega__grid {
  display: grid;
  grid-template-columns: repeat(var(--legittai-cols, 3), minmax(220px, 1fr));
  gap: 2rem;
}
.legittai-mega__col { min-width: 0; }

.legittai-mega__title {
  margin: 0 0 0.9rem;
  padding: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.legittai-mega__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.legittai-mega__list--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.35rem 1.1rem;
}
.legittai-mega__list--2col-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 0.4rem 1.1rem;
}

.legittai-mega__link {
  display: flex;
  align-items: flex-start;
  gap: 0.68rem;
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
  color: var(--legittai-ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.legittai-mega__link:hover,
.legittai-mega__link:focus-visible {
  background: rgba(2, 6, 23, 0.04);
  color: var(--legittai-cta);
  text-decoration: none;
  outline: none;
}
.legittai-mega__link--compact { padding: 0.45rem 0.55rem; }

.legittai-mega__link--logo {
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem;
}
.legittai-mega__link--logo:hover {
  background: rgba(13, 33, 55, 0.05);
  color: inherit;
  border-radius: 8px;
}

.legittai-mega__icon {
  width: 20px;
  height: 20px;
  margin-top: 0.08rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.legittai-mega__icon svg { display: block; width: 22px; height: 22px; }

.legittai-mega__icon--logo {
  width: 44px;
  min-width: 42px;
  height: 34px;
  margin-top: 0;
}
.legittai-mega__icon--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.legittai-mega__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.legittai-mega__label {
  font-size: 14px;
  line-height: 1.28;
  color: inherit;
}
.legittai-mega__link--logo .legittai-mega__label { line-height: 1.25; letter-spacing: -0.01em; }
.legittai-mega__desc {
  font-size: 0.73rem;
  line-height: 1.35;
  color: #64748b;
}

.legittai-mega__view-all {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.45rem 0.55rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--legittai-cta);
  text-decoration: none;
  border-radius: 8px;
}
.legittai-mega__view-all:hover { background: rgba(2, 6, 23, 0.04); text-decoration: none; }

/* ─── Right-side actions ────────────────────────────── */
.legittai-actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
@media (min-width: 1140px) {
  .legittai-actions { display: flex; }
}

.legittai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1.2rem;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.legittai-btn:hover { transform: translateY(-1px); text-decoration: none; }
.legittai-btn:active { transform: translateY(0); }

.legittai-btn--outline {
  font-weight: 600;
  color: var(--legittai-ink) !important;
  background: #fff;
  border: 1px solid rgba(13, 33, 55, 0.15);
}
.legittai-btn--outline:hover {
  background: rgba(13, 33, 55, 0.04);
  border-color: rgba(13, 33, 55, 0.3);
}

.legittai-btn--primary {
  font-weight: 400;
  color: #fff !important;
  background: var(--legittai-dark);
  border: 1px solid var(--legittai-dark);
}

/* Language / country selectors */
.legittai-locale {
  position: relative;
  font-size: 0.75rem;
  color: var(--legittai-ink);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.15s;
}
.legittai-locale:hover { color: #666; }

.legittai-locale__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.legittai-locale__summary::-webkit-details-marker { display: none; }
.legittai-locale__summary::marker { content: ""; }
.legittai-locale__code { letter-spacing: 0.02em; }
.legittai-locale[open] .legittai-chevron { transform: rotate(180deg); }

.legittai-locale__menu {
  position: absolute;
  right: -8px;
  top: calc(100% + 10px);
  min-width: 72px;
  padding: 8px 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(13, 33, 55, 0.12);
  box-shadow: 0 10px 30px rgba(13, 33, 55, 0.12);
  z-index: 600;
  transform-origin: top right;
  animation: legittai-pop 0.14s ease-out;
}
.legittai-locale--lang .legittai-locale__menu { min-width: 84px; }

/* Hover bridge into the dropdown */
.legittai-locale__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

@keyframes legittai-pop {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.legittai-locale__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 10px 18px;
  color: var(--legittai-ink) !important;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.legittai-locale--lang .legittai-locale__item { justify-content: center; }
.legittai-locale__item:hover { background: rgba(13, 33, 55, 0.06); text-decoration: none; }

.legittai-locale__flag {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

/* ─── Burger (below 1140px) ─────────────────────────── */
.legittai-burger {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 4px;
  border: none;
  background: transparent;
  color: #111827;
  cursor: pointer;
}
@media (min-width: 1140px) {
  .legittai-burger { display: none; }
}

/* ─── Mobile drawer ─────────────────────────────────── */
body.legittai-menu-open { overflow: hidden; }

.legittai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.legittai-backdrop[hidden] { display: none; }

.legittai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1002;
  width: 90vw;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--legittai-linen);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.legittai-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
@media (min-width: 1140px) {
  .legittai-drawer,
  .legittai-backdrop { display: none !important; }
}

.legittai-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: var(--legittai-header-h);
  padding: 0 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.legittai-drawer__logo img { display: block; height: 28px; width: auto; }

.legittai-drawer__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  color: #555;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.legittai-drawer__nav {
  flex: 1 1 0;
  min-height: 0;
  padding: 0.75rem 0.75rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legittai-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  color: #1d1d1f;
  text-align: left;
  letter-spacing: -0.01em;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.legittai-acc__btn .legittai-chevron { width: 14px; height: 14px; opacity: 0.4; transition: transform 0.25s ease; }
.legittai-acc__btn[aria-expanded="true"] .legittai-chevron { transform: rotate(180deg); }

.legittai-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.legittai-acc__panel.is-open { max-height: 1200px; }

.legittai-acc__group { padding: 0.125rem 0 0.5rem 0.5rem; }

.legittai-acc__label {
  display: block;
  padding: 4px 8px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #bbb;
}

.legittai-acc__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #333 !important;
  text-decoration: none;
  letter-spacing: -0.01em;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.legittai-acc__link:hover {
  background: rgba(25, 87, 129, 0.07);
  color: var(--legittai-cta) !important;
  text-decoration: none;
}
.legittai-acc__link--all {
  margin: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  color: var(--legittai-cta) !important;
}
.legittai-acc__dot {
  display: inline-block;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
}

.legittai-drawer__divider {
  height: 1px;
  margin: 0.5rem 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.06);
}

/* CTA card (inside the scroll area, as on legittai.com) */
.legittai-drawer__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--legittai-linen);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
}
.legittai-drawer__row { display: flex; gap: 10px; }

.legittai-drawer__cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #333 !important;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}
.legittai-drawer__cta--primary {
  padding: 13px;
  font-weight: 600;
  color: #fff !important;
  background: #10100c;
  border-color: #10100c;
  box-shadow: 0 2px 8px rgba(108, 53, 222, 0.35);
}

/* Language / country chips */
.legittai-drawer__locale-group { padding: 0 12px; margin-top: 16px; }
.legittai-drawer__locale-group:first-of-type { margin-top: 20px; }
.legittai-drawer__locale-label {
  display: block;
  padding: 4px 8px 8px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #bbb;
}
.legittai-drawer__locales {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.legittai-drawer__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #333 !important;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}
.legittai-drawer__chip.is-active {
  font-weight: 600;
  color: var(--legittai-cta) !important;
  border-color: var(--legittai-cta);
}
.legittai-drawer__chip img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }

/* Respect reduced motion (global.css section 13) */
@media (prefers-reduced-motion: reduce) {
  .legittai-header *,
  .legittai-header *::before,
  .legittai-drawer,
  .legittai-drawer *,
  .legittai-footer * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.legittai-footer {
  position: relative;
  overflow: hidden;
  background: #09090f;
  color: #a0a0b8;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.legittai-footer__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 2.5rem;
}

.legittai-footer__rule {
  height: 1px;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07) 30%, rgba(255, 255, 255, 0.07) 70%, transparent);
}
.legittai-footer__rule--bottom { margin-top: 3rem; }

.legittai-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) 1.2fr;
  gap: 2rem;
}

.legittai-footer__logo {
  display: block;
  margin-bottom: 1rem;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}
.legittai-footer__logo-link { display: inline-block; }

.legittai-footer__tagline {
  max-width: 220px;
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #fff;
}

.legittai-footer__socials {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.legittai-footer__social {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none;
  transition: all 0.2s;
}
.legittai-footer__social svg,
.legittai-footer__social path { stroke: currentColor; }
.legittai-footer__social:hover {
  background: rgba(108, 53, 222, 0.2);
  transform: translateY(-2px);
}

.legittai-footer__countries {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.75rem 1.25rem;
  justify-content: start;
}
.legittai-footer__country {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #fff;
}
.legittai-footer__flag { border-radius: 2px; opacity: 0.85; }

.legittai-footer__heading {
  margin: 0 0 1rem;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #fff;
}

.legittai-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.legittai-footer__links li { margin: 0; padding: 0; list-style: none; }
.legittai-footer__links li::before { content: none; }

.legittai-footer__link,
.legittai-footer__link:visited {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #fff !important;
  text-decoration: none;
  transition: color 0.15s;
}
.legittai-footer__link:hover { color: #e0e0f0 !important; text-decoration: none; }

.legittai-footer__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
}
.legittai-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  list-style: none;
}
.legittai-footer__contact li::before { content: none; }
.legittai-footer__contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #fff;
}
.legittai-footer__address {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #fff;
}

.legittai-footer__badges {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.625rem;
  margin-top: 1.75rem;
  align-items: center;
  justify-content: start;
}
.legittai-footer__badge {
  width: 70px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.legittai-footer__badge:hover { opacity: 0.9; }

.legittai-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.legittai-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #a0a0b8;
}
.legittai-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}
.legittai-footer__bottom-links .legittai-footer__link { font-size: 0.75rem; }

@media (max-width: 1024px) {
  .legittai-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .legittai-footer__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  .legittai-footer__tagline { max-width: 100%; }
}

@media (max-width: 768px) {
  .legittai-footer__inner { padding: 3rem 1.25rem 2rem; }
  .legittai-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .legittai-footer__brand {
    grid-column: 1 / -1;
    display: block;
  }
  .legittai-footer__countries { margin-top: 1rem; }
}

@media (max-width: 480px) {
  .legittai-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.25rem;
  }
  .legittai-footer__col--contact { grid-column: 1 / -1; }
  .legittai-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
