/* ==========================================================================
   Legion Network legal pages
   --------------------------------------------------------------------------
   Styles the markup in terms-of-sale.html, refund-policy.html and
   privacy-policy.html, each of which is the body of one Invision Pages page
   shown inside the suite's own header and footer.

   The suite resets headings, lists and tables, so a plain document needs its
   spacing, bullets and table lines put back. That is all this file does.
   Every rule is scoped to .ln-legal, so it cannot touch another page.

   The --ln-* values come from the suite skin (legion-suite.css) and follow
   the visitor's theme. The fallbacks are the skin's dark values, used only
   if the skin is ever missing.
   ========================================================================== */

.ln-legal {
  --lnl-text: var(--ln-text, #F3F6FB);
  --lnl-body: var(--ln-text-body, #CCD4E2);
  --lnl-muted: var(--ln-text-2, #A3AEC2);
  --lnl-line: var(--ln-line, #212A3B);
  --lnl-line-soft: var(--ln-line-soft, #161C29);
  --lnl-elev: var(--ln-elev, #0E121B);
  --lnl-accent: var(--ln-accent, #08D0F8);

  box-sizing: border-box;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 0 56px;
  color: var(--lnl-body);
  font-family: var(--ln-font, "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.ln-legal *,
.ln-legal *::before,
.ln-legal *::after {
  box-sizing: border-box;
}

/* Headings */
.ln-legal h1,
.ln-legal h2,
.ln-legal h3 {
  color: var(--lnl-text);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ln-legal h1 {
  margin: 16px 0 6px;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.15;
}

/* The version and date line under the title */
.ln-legal h1 + p {
  margin: 0 0 28px;
  color: var(--lnl-muted);
  font-size: 14px;
}

.ln-legal h1 + p strong {
  color: inherit;
  font-weight: 500;
}

.ln-legal h2 {
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--lnl-line-soft);
  font-size: 21px;
  line-height: 1.3;
  /* keeps a heading clear of the sticky site header when reached by #link */
  scroll-margin-top: 96px;
}

.ln-legal h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

/* Text */
.ln-legal p {
  margin: 0 0 14px;
}

.ln-legal strong {
  color: var(--lnl-text);
  font-weight: 600;
}

.ln-legal a {
  color: var(--lnl-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ln-legal a:hover {
  text-decoration-thickness: 2px;
}

.ln-legal a:focus-visible {
  outline: 2px solid var(--lnl-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Lists */
.ln-legal ul,
.ln-legal ol {
  margin: 0 0 16px;
  padding: 0 0 0 24px;
}

.ln-legal ul {
  list-style: disc outside;
}

.ln-legal ol {
  list-style: decimal outside;
}

.ln-legal li {
  margin: 0 0 8px;
  padding-left: 2px;
}

.ln-legal li::marker {
  color: var(--lnl-muted);
}

/* Tables */
.ln-legal table {
  width: 100%;
  margin: 8px 0 20px;
  border: 1px solid var(--lnl-line);
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.ln-legal th,
.ln-legal td {
  padding: 10px 12px;
  border: 1px solid var(--lnl-line);
  text-align: left;
  vertical-align: top;
}

.ln-legal th {
  background: var(--lnl-elev);
  color: var(--lnl-text);
  font-weight: 600;
}

.ln-legal td:first-child {
  color: var(--lnl-text);
}

/* Phones */
@media (max-width: 600px) {
  .ln-legal {
    padding-bottom: 40px;
    font-size: 15.5px;
  }

  .ln-legal h2 {
    margin-top: 32px;
    font-size: 19px;
  }

  .ln-legal table {
    font-size: 14px;
  }

  .ln-legal th,
  .ln-legal td {
    padding: 8px 9px;
  }
}

/* Paper */
@media print {
  .ln-legal {
    max-width: none;
    color: #000;
  }

  .ln-legal h1,
  .ln-legal h2,
  .ln-legal h3,
  .ln-legal strong,
  .ln-legal th,
  .ln-legal td:first-child {
    color: #000;
  }

  .ln-legal a {
    color: #000;
  }
}
