/* ==========================================================================
   Terms & Privacy — document treatment
   No hero photograph, no CTA band. A masthead, a sticky index, and clauses
   with hanging numbers on a paper slab. Should feel like something printed.
   Prefix: lg-
   ========================================================================== */

.lg-page { background: #050505; position: relative; }

.lg-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 5; }

/* -------------------------------------------------------------- masthead */

.lg-mast {
  padding: 180px 0 46px;
  border-bottom: 2px solid var(--primary);
  background: #050505;
}
.lg-mast__kick {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .24em;
  font-family: 'Chakra Petch', sans-serif; font-size: 10px; font-weight: 600;
  margin-bottom: 26px;
}
.lg-mast__kick:before { content: ""; width: 22px; height: 1px; background: var(--primary); }
.lg-mast h1 {
  margin: 0; color: #fff; text-transform: uppercase;
  font-family: 'Chakra Petch', sans-serif; font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em;
}
.lg-mast p { margin: 22px 0 0; color: rgba(255,255,255,.55); font-weight: 300; font-size: 17px; line-height: 1.8; max-width: 62ch; }

/* Colophon row, like a document header block. */
.lg-colophon {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.lg-colophon div { padding: 22px 26px 22px 0; border-right: 1px solid rgba(255,255,255,.1); }
.lg-colophon div:last-child { border-right: 0; }
.lg-colophon dt {
  color: rgba(255,255,255,.35); margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: .16em;
  font-family: 'Chakra Petch', sans-serif; font-size: 9px; font-weight: 600;
}
.lg-colophon dd {
  margin: 0; color: #fff;
  font-family: 'Chakra Petch', sans-serif; font-size: 14px; font-weight: 600;
}

/* ---------------------------------------------------------------- notice */

.lg-notice {
  border: 1px solid rgba(216,35,52,.4);
  border-left: 3px solid var(--primary);
  background: rgba(216,35,52,.06);
  padding: 28px 32px;
  margin: 46px 0 0;
}
.lg-notice b {
  display: block; margin-bottom: 12px; color: var(--primary);
  text-transform: uppercase; letter-spacing: .16em;
  font-family: 'Chakra Petch', sans-serif; font-size: 10px; font-weight: 600;
}
.lg-notice p { margin: 0; color: rgba(255,255,255,.78); font-weight: 300; font-size: 15px; line-height: 1.8; }
.lg-notice p + p { margin-top: 12px; }
.lg-notice strong { color: #fff; font-weight: 600; }

.lg-fill {
  background: rgba(216,35,52,.16);
  border-bottom: 1px dashed var(--primary);
  color: #fff; padding: 1px 6px; font-weight: 600;
}

/* ------------------------------------------------------------------ body */

.lg-body { padding: 60px 0 110px; }
.lg-grid { display: grid; grid-template-columns: 262px 1fr; gap: 64px; }

.lg-index { position: sticky; top: 118px; align-self: start; max-height: calc(100vh - 150px); overflow-y: auto; }
.lg-index > span {
  display: block; color: rgba(255,255,255,.35);
  padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  text-transform: uppercase; letter-spacing: .2em;
  font-family: 'Chakra Petch', sans-serif; font-size: 9px; font-weight: 600;
}
.lg-index a {
  display: grid; grid-template-columns: 26px 1fr; gap: 8px;
  padding: 8px 0; color: rgba(255,255,255,.44);
  text-transform: none; letter-spacing: normal;
  font-family: 'Mulish', sans-serif; font-size: 13.5px; font-weight: 300; line-height: 1.45;
  transition: color .3s ease;
}
.lg-index a b {
  color: rgba(255,255,255,.24); font-weight: 600;
  font-family: 'Chakra Petch', sans-serif; font-size: 11px;
}
.lg-index a:hover { color: #fff; }
.lg-index a.is-active { color: #fff; }
.lg-index a.is-active b { color: var(--primary); }

/* The "paper" — a touch lighter than the page so it reads as a sheet. */
.lg-doc {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.1);
  padding: 60px 64px;
}

.lg-clause { scroll-margin-top: 110px; padding-bottom: 44px; }
.lg-clause + .lg-clause { border-top: 1px solid rgba(255,255,255,.1); padding-top: 44px; }
.lg-clause > h2 {
  display: grid; grid-template-columns: 58px 1fr; gap: 0;
  margin: 0 0 20px; color: #fff; text-transform: uppercase;
  font-family: 'Chakra Petch', sans-serif; font-weight: 600;
  font-size: 21px; line-height: 1.25; letter-spacing: .01em;
}
.lg-clause > h2 b { color: var(--primary); font-weight: 600; font-size: 14px; padding-top: 6px; }

/* Everything after the heading is indented to line up under it. */
.lg-clause > :not(h2) { margin-left: 58px; }
.lg-clause p { color: rgba(255,255,255,.62); font-weight: 300; font-size: 15.5px; line-height: 1.9; margin: 0 0 16px; }
.lg-clause p:last-child { margin-bottom: 0; }
.lg-clause strong { color: #fff; font-weight: 600; }
.lg-clause h3 {
  margin: 30px 0 12px; color: #fff;
  font-family: 'Chakra Petch', sans-serif; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
}
.lg-clause ul, .lg-clause ol { margin: 0 0 16px; padding-left: 20px; }
.lg-clause li { color: rgba(255,255,255,.62); font-weight: 300; font-size: 15.5px; line-height: 1.85; margin-bottom: 9px; padding-left: 5px; }
.lg-clause li::marker { color: var(--primary); }
.lg-clause a { color: var(--primary); text-transform: none; font-family: inherit; font-size: inherit; font-weight: 600; display: inline; border-bottom: 1px solid rgba(216,35,52,.4); }
.lg-clause a:hover { color: #fff; border-bottom-color: #fff; }

.lg-table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; border: 1px solid rgba(255,255,255,.12); }
.lg-table th, .lg-table td { border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 16px; text-align: left; vertical-align: top; }
.lg-table th {
  color: #fff; background: rgba(255,255,255,.04);
  text-transform: uppercase; letter-spacing: .1em;
  font-family: 'Chakra Petch', sans-serif; font-size: 10px; font-weight: 600;
}
.lg-table td { color: rgba(255,255,255,.6); font-size: 14px; font-weight: 300; line-height: 1.7; }
.lg-table tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- footer */

.lg-foot {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 44px 0 90px;
}
.lg-foot__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-end; }
.lg-foot p { margin: 0; color: rgba(255,255,255,.45); font-weight: 300; font-size: 14px; line-height: 1.8; max-width: 58ch; }
.lg-foot a { color: var(--primary); text-transform: none; font-family: inherit; font-size: inherit; display: inline; }
.lg-foot__pair { display: flex; gap: 10px; }
.lg-foot__pair a {
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75);
  padding: 12px 22px; min-height: 46px; display: inline-flex; align-items: center;
  text-transform: uppercase; letter-spacing: .12em;
  font-family: 'Chakra Petch', sans-serif; font-size: 11px; font-weight: 600;
  transition: all .35s ease;
}
.lg-foot__pair a:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.lg-foot__pair a[aria-current] { border-color: var(--primary); color: #fff; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .lg-mast { padding: 150px 0 40px; }
  .lg-colophon { grid-template-columns: repeat(2, 1fr); }
  .lg-colophon div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .lg-grid { grid-template-columns: 1fr; gap: 34px; }
  .lg-index { position: static; max-height: none; }
  .lg-index a { display: inline-grid; margin-right: 16px; }
  .lg-doc { padding: 40px 28px; }
}

@media (max-width: 620px) {
  .lg-clause > h2 { grid-template-columns: 40px 1fr; font-size: 18px; }
  .lg-clause > :not(h2) { margin-left: 0; }
  .lg-doc { padding: 30px 20px; }
  .lg-body { padding: 40px 0 70px; }
  .lg-foot__pair a { flex: 1; justify-content: center; }
  .lg-table th, .lg-table td { padding: 11px 12px; font-size: 13px; }
}
