/* Approved ARM lockup: one asset, never rebuilt from separate text/symbol elements. */
.site-header .brand,
.legal-header .brand {
  width: 174px !important;
  height: 64px !important;
  flex: 0 0 174px !important;
  display: inline-block !important;
  background: url('/arm-logo-approved.svg?v=20260730-1') left center / contain no-repeat !important;
}

.site-header .brand > *,
.legal-header .brand > * {
  display: none !important;
}

/* Give the approved lockup breathing room inside the header. */
.site-header {
  min-height: 82px !important;
}

/* Use the exact same approved lockup inside the wallet mockup. */
.phone-brand {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.phone-brand-logo {
  display: block;
  width: 116px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.phone-brand small {
  margin-left: auto !important;
  color: #86a0bb !important;
  font-size: 10px !important;
}

/* Mobile burger navigation. */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce8f4;
  border-radius: 13px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(24, 76, 130, .08);
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #17366f;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 72px !important;
  }

  .site-header .brand,
  .legal-header .brand {
    width: 154px !important;
    height: 56px !important;
    flex-basis: 154px !important;
  }

  .phone-brand-logo {
    width: 108px;
    height: 39px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: end;
    position: relative;
    z-index: 24;
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 72px 0 0;
    z-index: 18;
    background: rgba(16, 42, 89, .20);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .mobile-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    z-index: 19;
    padding: 12px;
    border: 1px solid #dce8f4;
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 60px rgba(24, 76, 130, .18);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
  }

  .mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-links {
    display: grid;
  }

  .mobile-menu-links a {
    padding: 15px 14px;
    border-bottom: 1px solid #edf2f7;
    color: #17366f;
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-menu-links a:last-child {
    border-bottom: 0;
  }

  .mobile-menu-email {
    display: block;
    margin-top: 8px;
    padding: 14px;
    border-radius: 13px;
    background: #eef7ff;
    color: #2d79ef;
    font-size: 13px;
    font-weight: 800;
    word-break: break-word;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px !important;
  }

  .site-header .brand,
  .legal-header .brand {
    width: 142px !important;
    height: 52px !important;
    flex-basis: 142px !important;
  }

  .phone-brand-logo {
    width: 102px;
    height: 37px;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-menu,
  .mobile-menu-backdrop {
    top: 68px;
  }

  .mobile-menu-backdrop {
    inset: 68px 0 0;
  }
}
