/* =========================================================
   SimTechEnergy — Legal Header Responsive V1
   Scope: legal pages only.
   No global header behaviour is changed.
   ========================================================= */

.legal-header .header__inner {
  min-width: 0;
}

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

.legal-header .legal-header__nav {
  min-width: 0;
  max-width: calc(100% - 204px);
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  row-gap: 8px;
}

.legal-header .legal-header__nav a {
  white-space: nowrap;
}

/*
 * Compact desktop / notebook header.
 * The generic platform header switches later,
 * while legal pages need less horizontal space.
 */
@media (max-width: 1200px) {
  .legal-header .header__inner {
    gap: 16px;
  }

  .legal-header .logo__img,
  .legal-header .logo img {
    width: 140px;
    max-width: 140px;
  }

  .legal-header .legal-header__nav {
    max-width: calc(100% - 156px);
    gap: 16px;
  }
}

/*
 * Legal pages deliberately do not use a burger menu.
 * Override the generic mobile .nav behaviour and keep
 * the three legal links directly accessible.
 */
@media (max-width: 860px) {
  .legal-header .header__inner {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .legal-header .legal-header__nav {
    position: static;
    inset: auto;
    display: flex;
    width: auto;
    max-width: none;
    height: auto;
    margin-left: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .legal-header .legal-header__nav a,
  .legal-header .legal-header__nav a:last-child {
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 560px) {
  .legal-header .header__inner {
    justify-content: center;
    gap: 8px 12px;
  }

  .legal-header .logo {
    width: 100%;
    justify-content: center;
  }

  .legal-header .logo__img,
  .legal-header .logo img {
    width: 108px;
    max-width: 108px;
  }

  .legal-header .legal-header__nav {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    gap: 8px 14px;
  }

  .legal-header .legal-header__nav a {
    font-size: 12px;
  }
}
