:root {
  --imx-green: #42b7e8;
  --imx-deep: #102f43;
  --imx-ink: #1e293b;
  --imx-muted: #526174;
  --imx-soft: #f0f5fa;
  --imx-line: #dce5e1;
}

.imx-legal-page .entry-header,
.imx-legal-page .ast-single-entry-banner {
  display: none !important;
}

/* Keep Astra's skip link available to keyboard users without leaving it
   visible over the page during ordinary browsing. */
body.imx-legal-page .site > .skip-link.screen-reader-text {
  position: fixed !important;
  top: -100px !important;
  left: -10000px !important;
  z-index: 999999 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

body.imx-legal-page .site > .skip-link.screen-reader-text:focus {
  top: 12px !important;
  left: 12px !important;
  width: auto !important;
  height: auto !important;
  padding: 14px 20px !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  border-radius: 6px;
  color: #102f43 !important;
  background: #fff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
  white-space: normal !important;
}

/* Keep the existing dark ALTEQ logo on a light header, above the hero. */
body.imx-legal-page .elementor-location-header {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 100 !important;
  width: 100%;
  height: auto !important;
  min-height: 112px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  transform: none !important;
}

body.imx-legal-page .elementor-location-header > .elementor {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  min-height: 112px !important;
  margin: 0 !important;
  transform: none !important;
  background: #fff !important;
}

/* Elementor's transparent/sticky header can position its first container over
   the page hero. Put that row back in normal flow on these legal pages. */
body.imx-legal-page .elementor-location-header > .elementor > .elementor-element,
body.imx-legal-page .elementor-location-header > .elementor > .e-con,
body.imx-legal-page .elementor-location-header .elementor-element-dcd2866 {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  min-height: 112px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
  background: #fff !important;
}

body.imx-legal-page .elementor-location-header .elementor-nav-menu a,
body.imx-legal-page .elementor-location-header .elementor-nav-menu--main .elementor-item {
  color: #253746 !important;
}

body.imx-legal-page .elementor-location-header .elementor-nav-menu a:hover,
body.imx-legal-page .elementor-location-header .elementor-nav-menu a:focus-visible {
  color: #087fa8 !important;
}

@media (max-width: 767px) {
  body.imx-legal-page .elementor-location-header,
  body.imx-legal-page .elementor-location-header > .elementor,
  body.imx-legal-page .elementor-location-header > .elementor > .elementor-element,
  body.imx-legal-page .elementor-location-header > .elementor > .e-con,
  body.imx-legal-page .elementor-location-header .elementor-element-dcd2866 {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

.imx-legal-page .site-content > .ast-container,
.imx-legal-page #primary,
.imx-legal-page .site-main,
.imx-legal-page article,
.imx-legal-page .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.imx-legal {
  color: var(--imx-ink);
  background: #fff;
  font-family: inherit;
}

.imx-legal__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 132px) max(24px, calc((100vw - 1120px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(66, 183, 232, .28), transparent 28%),
    linear-gradient(125deg, #0c1c28 0%, var(--imx-deep) 62%, #195c79 100%);
}

.imx-legal__hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -115px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, .035), 0 0 0 76px rgba(255, 255, 255, .025);
}

.imx-legal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--imx-green);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.imx-legal__eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.imx-legal__hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  color: #fff !important;
  font-size: clamp(2.65rem, 7vw, 5.4rem) !important;
  font-weight: 760 !important;
  line-height: .98 !important;
  letter-spacing: -.045em;
}

.imx-legal__hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.imx-legal__hero time {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
}

.imx-legal__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(40px, 7vw, 92px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) 24px clamp(72px, 10vw, 132px);
}

.imx-legal__nav {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 3px solid var(--imx-green);
}

.imx-legal__nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--imx-muted) !important;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none !important;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.imx-legal__nav a:hover,
.imx-legal__nav a:focus-visible {
  color: var(--imx-deep) !important;
  background: rgba(66, 183, 232, .15);
  transform: translateX(4px);
}

.imx-legal__content section {
  scroll-margin-top: 32px;
  padding: 0 0 38px;
  margin: 0 0 42px;
  border-bottom: 1px solid var(--imx-line);
}

.imx-legal__content section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.imx-legal__content h2 {
  margin: 0 0 18px !important;
  color: var(--imx-ink) !important;
  font-size: clamp(1.55rem, 3vw, 2.1rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em;
}

.imx-legal__content h3 {
  margin: 26px 0 8px !important;
  color: var(--imx-deep) !important;
  font-size: 1.08rem !important;
}

.imx-legal__content p,
.imx-legal__content address {
  max-width: 72ch;
  margin: 0 0 15px;
  color: var(--imx-muted);
  font-size: 1rem;
  line-height: 1.78;
}

.imx-legal__content address {
  padding: 22px 24px;
  border-left: 4px solid var(--imx-green);
  border-radius: 0 12px 12px 0;
  background: var(--imx-soft);
  font-style: normal;
}

.imx-legal__content a {
  color: #1685ae !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
}

.imx-legal__content a:hover,
.imx-legal__content a:focus-visible {
  color: #102f43 !important;
}

.imx-map-link {
  display: grid;
  gap: 7px;
  padding: 28px;
  border: 1px solid var(--imx-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f7faf8, #eef5f0);
}

.imx-map-link a {
  justify-self: start;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #0b0d09 !important;
  background: var(--imx-green);
  font-weight: 700;
  text-decoration: none !important;
}

.imx-legal-footer {
  padding: 16px 24px 24px;
  color: rgba(255,255,255,.74);
  background: var(--imx-deep);
  text-align: center;
}

.imx-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: .92rem;
}

.imx-legal-links a {
  color: #fff !important;
  text-decoration: none !important;
}

.imx-legal-links a:hover,
.imx-legal-links a:focus-visible {
  color: var(--imx-green) !important;
}

@media (max-width: 780px) {
  .imx-legal__hero {
    padding-top: 62px;
    padding-bottom: 66px;
  }

  .imx-legal__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .imx-legal__nav {
    position: static;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .imx-legal__nav a {
    flex: 0 0 auto;
    background: var(--imx-soft);
  }

  .imx-legal__nav a:hover,
  .imx-legal__nav a:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .imx-legal__nav a {
    transition: none;
  }
}

