body#cms .container {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body#cms #wrapper {
  min-height: 100svh;
  background: var(--lmab-primary);
}

body#cms #content-wrapper {
  width: 100%;
  margin-top: calc(var(--lmab-safe-space-desktop) + 1.5rem);
  padding-bottom: 10rem;
  background: var(--lmab-primary);
}

body#cms #content-wrapper .page-header {
  display: none;
}

body#cms #content.lmab-legal {
  display: flex;
  align-items: start;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--lmab-secondary);
  background: transparent;
}

.lmab-legal__nav {
  display: flex;
  flex-direction: column;
  width: var(--lmab-safe-left);
  margin-top: -2.5rem;
}

.lmab-legal__drawer-toggle,
.lmab-legal__drawer-overlay,
.lmab-legal__drawer-close {
  display: none;
}

.lmab-legal__nav a {
  display: block;
  width: fit-content;
  color: var(--lmab-secondary);
  font-family: "HammerBold", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.lmab-legal__nav a:hover {
  color: var(--lmab-hover);
}

.lmab-legal__nav a.active {
  color: var(--lmab-accent);
}

.lmab-legal__content {
  flex: 1 1 auto;
  margin-top: -2.5rem;
  min-width: 0;
  width: 100%;
  color: var(--lmab-secondary);
  font-size: 1.1rem;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: none;
}

.lmab-legal__content p {
  margin: 0.25rem 0;
}

.lmab-legal__content p:first-child {
  margin-top: 0;
  text-indent: 5rem;
}

.lmab-legal__content h1,
.lmab-legal__content h2,
.lmab-legal__content h3,
.lmab-legal__content h4,
.lmab-legal__content h5 {
  margin: 1rem 0 0;
  color: var(--lmab-secondary);
  font-family: "HammerBold", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.lmab-legal__content h1,
.lmab-legal__content h2,
.lmab-legal__content h3 {
  margin: 0;
}

.lmab-legal__content h1,
.lmab-legal__content h2 {
  font-size: 1.5rem;
  line-height: 1;
}

.lmab-legal__content h3,
.lmab-legal__content h4,
.lmab-legal__content h5 {
  font-size: 1.2rem;
  line-height: 1;
}

.lmab-legal__content h4 {
  margin: 0.5rem 0 0;
}

.lmab-legal__content h6 {
  font-size: 1rem;
  line-height: 1;
  margin-top: -0.25rem;
  color: var(--lmab-secondary);
  font-family: "HammerBold", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.lmab-legal__content p,
.lmab-legal__content li {
  color: var(--lmab-secondary);
  font-family: "BradfordLLRegular", serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.25;
}

.lmab-legal__content span {
  margin-left: 5rem;
  text-align: left;
}

.lmab-legal__content ul,
.lmab-legal__content ol {
  margin: 0 0 1.65rem 1.2rem;
  padding: 0;
}

.lmab-legal__content strong,
.lmab-legal__content b {
  color: var(--lmab-secondary);
  font-family: "HammerBold", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.lmab-legal__content a {
  color: var(--lmab-secondary);
  font-family: "HammerBold", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.lmab-legal__content a:hover {
  color: var(--lmab-hover);
  text-decoration: none;
}

.lmab-legal__content hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 2px solid var(--lmab-secondary);
  opacity: 1;
}

@media (min-width: 768px) {
  .lmab-legal__nav {
    position: sticky;
    top: calc(
      var(--lmab-header-height, 4rem) + var(--lmab-safe-space-desktop, 3.5rem)
    );
    align-self: flex-start;
    max-height: calc(
      100svh - var(--lmab-header-height, 4rem) -
        var(--lmab-safe-space-desktop, 3.5rem) - 1.5rem
    );
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .lmab-legal__nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  body .container {
    padding: var(--lmab-padding-mobile) !important;
  }

  body#cms #content-wrapper {
    margin-top: var(--lmab-safe-space-mobile);
    padding-bottom: 6rem;
  }

  body#cms #content.lmab-legal {
    display: flex;
    flex-direction: column;
    gap: 1.9rem;
    padding-left: 0;
    position: relative;
  }

  .lmab-legal__drawer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.5rem;
    padding: 0.12rem 0.75rem 0;
    color: var(--lmab-secondary);
    font-family: "HammerBold", sans-serif;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    background: var(--lmab-primary);
    border: var(--lmab-line-size) solid var(--lmab-secondary);
    border-radius: 0;
  }

  .lmab-legal__drawer-overlay {
    display: none;
  }

  .lmab-legal__nav {
    position: absolute;
    top: calc(1.5rem - 1px);
    right: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    max-height: none;
    margin-top: 0;
    padding: 2.8rem var(--lmab-padding-mobile) 1rem;
    overflow-y: auto;
    background: var(--lmab-primary);
    border-top: 0;
    border: 1px solid var(--lmab-secondary);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition:
      opacity 0.2s ease,
      transform 0.25s ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .lmab-legal__nav::-webkit-scrollbar {
    display: none;
  }

  body.lmab-legal-drawer-open .lmab-legal__nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .lmab-legal__drawer-close {
    position: absolute;
    top: 0.55rem;
    right: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    color: var(--lmab-secondary);
    font-family: "HammerBold", sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    background: transparent;
    border: 0;
  }

  .lmab-legal__nav a {
    width: 100%;
    padding: 0.25rem 0;
    font-size: 1rem;
    line-height: 1;
  }

  .lmab-legal__content {
    width: 100%;
    max-width: none;
    margin-top: 0;
    gap: 0.7rem;
    transition: margin-top 0.25s ease;
  }

  body.lmab-legal-drawer-open .lmab-legal__content {
    margin-top: 10.5rem;
  }

  .lmab-legal__content p:first-child {
    text-indent: 2rem;
  }

  .lmab-legal__content span {
    margin-left: 2rem;
  }

  .lmab-legal__content h1,
  .lmab-legal__content h2 {
    font-size: 1rem;
    line-height: 1;
  }

  .lmab-legal__content h3,
  .lmab-legal__content h4,
  .lmab-legal__content h5,
  .lmab-legal__content h6 {
    font-size: 0.9rem;
    line-height: 1;
  }

  .lmab-legal__content p,
  .lmab-legal__content li {
    font-size: 0.9rem;
    line-height: 1.12;
  }
}
