body.legal-terms-document-shell {
  color: #6f6b7d;
  background: #f8f7fa;
  background-image: none;
}

.legal-terms-page {
  min-height: 100dvh;
  padding: 1.5rem;
  color: #3d375f;
  background: transparent;
}

.legal-terms-shell {
  width: min(100%, 88rem);
  min-height: calc(100dvh - 3rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.legal-terms-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.legal-terms-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  color: #3d375f;
  text-decoration: none;
}

.legal-terms-brand:hover {
  color: #3d375f;
  text-decoration: none;
}

.legal-terms-brand img {
  width: clamp(10.75rem, 18vw, 14.5rem);
  height: auto;
  max-height: 4.875rem;
  object-fit: contain;
  border: 1px solid rgba(115, 103, 240, 0.1);
  border-radius: 0.65rem;
  box-shadow: 0 0.95rem 1.9rem rgba(75, 70, 92, 0.13);
}

.legal-terms-brand strong,
.legal-terms-brand span {
  display: block;
}

.legal-terms-brand strong {
  color: #2f2b3d;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
}

.legal-terms-brand span span {
  margin-top: 0.1rem;
  color: #8b879d;
  font-size: 0.72rem;
  font-weight: 700;
}

.legal-terms-nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.legal-terms-nav .btn,
.legal-terms-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.legal-terms-nav .btn:hover,
.legal-terms-hero-actions .btn:hover,
.legal-terms-nav .btn:focus-visible,
.legal-terms-hero-actions .btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.legal-terms-page .btn-primary {
  color: #fff;
  border-color: #7367f0;
  background: #7367f0;
  box-shadow: 0 0.65rem 1.4rem rgba(115, 103, 240, 0.22);
}

.legal-terms-page .btn-primary:hover,
.legal-terms-page .btn-primary:focus-visible {
  color: #fff;
  border-color: #665bd8;
  background: #665bd8;
}

.legal-terms-page .btn-label-primary,
.legal-terms-page .btn-label-secondary {
  color: #5d51d4;
  border-color: rgba(115, 103, 240, 0.18);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.legal-terms-page .btn-label-secondary {
  color: #5d596c;
}

.legal-terms-page .btn-label-primary:hover,
.legal-terms-page .btn-label-secondary:hover,
.legal-terms-page .btn-label-primary:focus-visible,
.legal-terms-page .btn-label-secondary:focus-visible {
  color: #fff;
  border-color: #7367f0;
  background: #7367f0;
  box-shadow: 0 0.65rem 1.4rem rgba(115, 103, 240, 0.18);
}

.legal-terms-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.72fr);
  gap: 1rem;
  min-height: 26.25rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background-image: url("/_httt/images/legal-terms-usage-hero-bg.png");
  background-position: center;
  background-size: cover;
}

.legal-terms-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2) 56%, rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.legal-terms-hero-copy,
.legal-terms-summary-panel,
.legal-terms-side-rail,
.legal-terms-clause-panel,
.legal-terms-support-card {
  position: relative;
  border: 1px solid rgba(115, 103, 240, 0.13);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 0.85rem 1.8rem rgba(75, 70, 92, 0.09);
  backdrop-filter: blur(1px) saturate(2.18);
}

.legal-terms-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.legal-terms-eyebrow,
.legal-terms-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(115, 103, 240, 0.12);
  color: #5d51d4;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.legal-terms-title {
  max-width: 15ch;
  margin: 0;
  color: #2f2b3d;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.02;
}

.legal-terms-intro {
  max-width: 66ch;
  margin: 0;
  color: #5d596c;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.72;
}

.legal-terms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.legal-terms-summary-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-self: stretch;
  padding: 1rem;
}

.legal-terms-summary-item {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 8.5rem;
  padding: 0.95rem;
  border: 1px solid rgba(115, 103, 240, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.38);
}

.legal-terms-icon-box {
  display: inline-grid !important;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  place-items: center;
  border-radius: 0.5rem;
  color: #685dd8;
  background: rgba(115, 103, 240, 0.12);
}

.legal-terms-icon-box.is-success {
  color: #24a660;
  background: rgba(40, 199, 111, 0.12);
}

.legal-terms-icon-box.is-info {
  color: #00a1b5;
  background: rgba(0, 186, 209, 0.12);
}

.legal-terms-icon-box.is-warning {
  color: #c57a00;
  background: rgba(255, 159, 67, 0.14);
}

.legal-terms-page i[class*="fa-"],
.htt-footer-action i[class*="fa-"] {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  line-height: 1;
}

.legal-terms-icon-box i[class*="fa-"] {
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
}

.legal-terms-summary-item strong {
  color: #2f2b3d;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.legal-terms-summary-item span:last-child {
  color: #6f6b7d;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
}

.legal-terms-body {
  display: grid;
  grid-template-columns: minmax(17rem, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.legal-terms-side-rail {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.legal-terms-rail-item,
.legal-terms-support-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  border-radius: 0.5rem;
}

.legal-terms-rail-item {
  background: rgba(255, 255, 255, 0.42);
}

.legal-terms-rail-item strong,
.legal-terms-support-card strong {
  display: block;
  color: #2f2b3d;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.legal-terms-rail-item span,
.legal-terms-support-card span {
  display: block;
  margin-top: 0.25rem;
  color: #6f6b7d;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
}

.legal-terms-clause-panel {
  padding: 1rem;
}

.legal-terms-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.legal-terms-section-head h2 {
  margin: 0;
  color: #2f2b3d;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

.legal-terms-accordion {
  display: grid;
  gap: 0.65rem;
}

.legal-terms-accordion .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(75, 70, 92, 0.09);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
}

.legal-terms-accordion .accordion-button {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  border: 0;
  color: #3d375f;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  background: rgba(255, 255, 255, 0.48);
  appearance: none;
  box-shadow: none;
}

.legal-terms-accordion .accordion-button:not(.collapsed) {
  color: #5d51d4;
  background: rgba(115, 103, 240, 0.08);
}

.legal-terms-accordion .accordion-button:focus,
.legal-terms-accordion .accordion-button:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(115, 103, 240, 0.16);
}

.legal-terms-accordion .accordion-button::after {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  opacity: 0.58;
  transition: transform 0.18s ease;
}

.legal-terms-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(225deg);
}

.legal-terms-accordion .accordion-body {
  padding: 0.72rem 1.1rem 1.15rem 3.65rem;
}

.legal-terms-clause-copy,
.legal-terms-clause-list {
  max-width: 92ch;
  color: #6f6b7d;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.74;
}

.legal-terms-clause-copy {
  padding-top: 0.15rem;
}

.legal-terms-clause-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.15rem;
}

.legal-terms-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.legal-terms-footer .content-footer {
  padding-bottom: 0;
}

.legal-terms-footer .container-fluid {
  padding-right: 0;
  padding-left: 0;
}

.htt-footer-action {
  align-items: center;
}

.htt-footer-action i[class*="fa-"] {
  width: 1rem;
  height: 1rem;
  font-size: 0.9rem;
}

.htt-footer-popover {
  --bs-popover-bg: #fff;
  --bs-popover-border-color: rgba(115, 103, 240, 0.16);
  --bs-popover-header-bg: rgba(255, 255, 255, 0.98);
  --bs-popover-header-color: #3d375f;
  --bs-popover-body-color: #6f6b7d;
  --bs-popover-box-shadow: 0 1rem 2.4rem rgba(75, 70, 92, 0.18);
  width: min(24rem, calc(100vw - 2rem)) !important;
  max-width: min(24rem, calc(100vw - 2rem)) !important;
  overflow: hidden;
  border-radius: 0.5rem;
}

.htt-footer-popover .popover-body {
  overflow: hidden;
}

.htt-footer-popover-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 13.5rem;
  object-fit: cover;
}

.htt-footer-popover-copy {
  overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
  .legal-terms-title {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .legal-terms-hero,
  .legal-terms-body {
    grid-template-columns: 1fr;
  }

  .legal-terms-hero {
    min-height: auto;
    background-position: 58% center;
  }

  .legal-terms-side-rail {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .legal-terms-page {
    padding: 0.75rem;
  }

  .legal-terms-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-terms-nav-actions,
  .legal-terms-nav .btn,
  .legal-terms-hero-actions,
  .legal-terms-hero-actions .btn {
    width: 100%;
  }

  .legal-terms-brand {
    width: 100%;
  }

  .legal-terms-brand img {
    width: min(13.5rem, 58vw);
  }

  .legal-terms-hero {
    gap: 0.85rem;
  }

  .legal-terms-hero-copy,
  .legal-terms-summary-panel,
  .legal-terms-side-rail,
  .legal-terms-clause-panel {
    padding: 0.85rem;
  }

  .legal-terms-title {
    max-width: 100%;
    font-size: 2.25rem;
  }

  .legal-terms-summary-panel {
    grid-template-columns: 1fr;
  }

  .legal-terms-accordion .accordion-body {
    padding-left: 1rem;
  }
}
