/* ==========================================================================
   LEGAL DOCUMENT PAGE
   Sits on tokens.css + components.css. Additive only.

   For terms, privacy and partner terms. Deliberately has no site navigation:
   somebody reading this arrived from a specific place (usually a signup
   checkbox) and wants to read it and go back, not browse. A single back
   control does that job and nothing else competes with the text.

   The whole design is in service of a long read: one narrow measure, generous
   line height, and a numbered rail so a clause can be pointed at.
   ========================================================================== */

.lg-body {
  background: var(--elx-bg);
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   BACK BAR
   Sticky rather than fixed so it cannot cover the last line on a short
   viewport, and it carries a blur so text scrolling under it stays legible.
   -------------------------------------------------------------------------- */
.lg-bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(25, 25, 25, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--elx-hairline);
}
.lg-bar__inner {
  max-width: 780px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 14px;
}
.lg-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--elx-hairline);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  letter-spacing: -.2px;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.lg-back:hover {
  color: #fff;
  border-color: var(--elx-hairline-2);
  background: rgba(255, 255, 255, .06);
}
.lg-back:active { transform: translateY(1px); }
.lg-back svg { width: 15px; height: 15px; flex: none; }
.lg-bar__mark { margin-left: auto; display: flex; align-items: center; gap: 8px; opacity: .5; }
.lg-bar__mark img { height: 22px; width: auto; display: block; }

/* --------------------------------------------------------------------------
   DOCUMENT
   -------------------------------------------------------------------------- */
.lg-doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 96px; }

.lg-head { margin-bottom: 40px; }
.lg-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -1.4px;
}
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--elx-hairline);
  background: rgba(255, 255, 255, .03);
  font-size: 12px; font-weight: 500;
  color: rgba(255, 255, 255, .55);
  letter-spacing: -.1px;
}
.lg-chip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--elx-accent);
}

/* The interim notice. Amber rather than red: this is a caveat about the
   document's status, not a warning about conduct. */
.lg-doc .lg-callout {
  margin: 0 0 44px;
  padding: 16px 20px;
  border: 1px solid rgba(246, 193, 119, .28);
  background: rgba(246, 193, 119, .06);
  border-left: 3px solid rgba(246, 193, 119, .6);
  border-radius: 10px;
  font-size: 14px; line-height: 1.7;
  color: rgba(255, 255, 255, .7);
}
.lg-callout strong { color: #f6c177; font-weight: 600; }

/* --------------------------------------------------------------------------
   CLAUSES
   The number lives in a left rail on wide screens so headings align with the
   body text rather than being indented by their own numbering.
   -------------------------------------------------------------------------- */
.lg-clause { margin-bottom: 38px; scroll-margin-top: 80px; }
.lg-clause__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.lg-clause__n {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; font-weight: 600;
  color: var(--elx-accent);
  padding-top: 2px;
}
.lg-clause h2 {
  margin: 0;
  font-size: 19px; font-weight: 600;
  color: #fff;
  letter-spacing: -.4px;
  line-height: 1.3;
}
.lg-clause p {
  margin: 0 0 14px;
  font-size: 15px; line-height: 1.75;
  color: rgba(255, 255, 255, .62);
  letter-spacing: -.1px;
}
.lg-clause p:last-child { margin-bottom: 0; }
.lg-clause strong { color: rgba(255, 255, 255, .92); font-weight: 600; }
.lg-clause a { color: var(--elx-accent); text-decoration: none; }
.lg-clause a:hover { text-decoration: underline; }
.lg-clause code {
  background: #101010; padding: .1rem .35rem; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .lg-clause__head { margin-left: -46px; }
  .lg-clause__n { width: 34px; text-align: right; }
}

/* Prohibition lists. The cross is a pseudo-element so the markup stays a
   plain <ul> and remains readable with styles off.

   NOTE the .lg-doc prefix on every rule that targets a bare <p> or <ul>:
   components.css resets `.elx p` and `.elx ul` to margin 0, and that selector
   is (0,1,1). A single page-level class is (0,1,0) and silently loses, so the
   spacing vanishes with no error anywhere. */
.lg-doc .lg-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 9px; }
.lg-doc .lg-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255, 255, 255, .6);
}
.lg-doc .lg-list li::before {
  content: "\00d7";
  position: absolute; left: 6px; top: -1px;
  color: var(--elx-danger);
  font-weight: 700; font-size: 15px;
}
.lg-doc .lg-list--yes li::before { content: "\2713"; color: var(--elx-success); }

.lg-doc .lg-note {
  margin: 0 0 14px;
  font-size: 13px; line-height: 1.65;
  color: rgba(255, 255, 255, .4);
}

/* --------------------------------------------------------------------------
   FOOT
   -------------------------------------------------------------------------- */
.lg-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--elx-hairline);
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  align-items: center; justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .45);
}
.lg-foot a { color: var(--elx-accent); text-decoration: none; }
.lg-foot a:hover { text-decoration: underline; }
.lg-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.lg-foot nav a { color: rgba(255, 255, 255, .45); }
.lg-foot nav a:hover { color: #fff; text-decoration: none; }
