/* Terms & Conditions: long legal text on a white card over the stage, readable width on desktop. */
.elx-terms {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  /* The stage sets White text; the card is a White ground. */
  color: var(--elx-blue);
  background: var(--elx-white);
  border: 1px solid var(--elx-blue-light);
  border-radius: var(--elx-radius);
  /* The privacy URL is longer than a 320px column and has no break opportunity. */
  /* Safari < 15.4 has no overflow-wrap: anywhere; break-word gives the same result there. */
  word-break: break-word;
  overflow-wrap: anywhere;
}

.elx-terms__back {
  margin-bottom: 1.5rem;
}

.elx-terms h1 {
  font-size: var(--elx-h3);
  margin-bottom: 1rem;
}

.elx-terms h2 {
  font-size: var(--elx-h4);
  margin-bottom: 1rem;
}

.elx-terms li {
  margin-bottom: 1rem;
}

/* Bootstrap's LTR reboot adds padding-left: 2rem on top of the browser's right-side indent, wasting a column on a phone. */
[dir="rtl"] .elx-terms ol {
  padding-left: 0;
  padding-right: 2rem;
}

.elx-terms li p {
  margin: 0.5rem 0 0;
}

/* Floating button, shown by terms-top.js once the visitor has scrolled down. */
.elx-terms__top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: var(--elx-tap-min);
  height: var(--elx-tap-min);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--elx-white);
  background: var(--elx-blue);
  border: 1px solid var(--elx-white);
  border-radius: var(--elx-radius);
  cursor: pointer;
}

.elx-terms__top[hidden] {
  display: none;
}

/* Chevron drawn with borders, so no extra icon asset is needed. */
.elx-terms__top::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.3rem;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .elx-terms {
    padding: 2rem;
  }
}
