/* Legal pages (Terms of Service): dark title band, sticky table of contents, numbered sections, summary box. */
.lg { --gold: #fbbf24; background: var(--paper); }
.lg-hero { position: relative; overflow: hidden; color: #ece6fa; padding: 56px 0 50px;
  background: linear-gradient(165deg, #120b1f 0%, #1d1235 60%, #2a1950 100%); }
.lg-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 20%, #000 10%, transparent 70%); }
.lg-hero .wrap { position: relative; }
.lg-kicker { display: inline-block; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  color: #d9cff3; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lg-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.3rem); letter-spacing: -.025em; margin: 16px 0 12px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: #b9addb; font-size: .93rem; }

.lg-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 44px; padding-bottom: 88px; align-items: start; }
.lg-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; }
.lg-toc-title { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.lg-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); font-size: .88rem; line-height: 1.35; text-decoration: none; }
.lg-toc a::before { content: counter(toc) ". "; color: #a99fbd; }
.lg-toc a:hover { color: var(--violet-strong); border-left-color: var(--violet-soft); }

.lg-body { max-width: 760px; }
.lg-body section { padding-top: 6px; scroll-margin-top: 96px; }
.lg-body section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.lg-body h2 { font-size: 1.32rem; letter-spacing: -.01em; margin: 0 0 12px; display: flex; gap: 10px; }
.lg-body h2 span { color: var(--violet-strong); font-variant-numeric: tabular-nums; }
.lg-body p, .lg-body li { color: #3a3150; line-height: 1.75; font-size: 1rem; }
.lg-body p { margin: 0 0 12px; }
.lg-body ul { margin: 0 0 12px; padding-left: 1.25em; }
.lg-body li { margin-bottom: 6px; }
.lg-body li::marker { color: var(--violet-soft); }
.lg-body a { color: var(--violet-strong); }
.lg-body b { color: var(--ink); font-weight: 600; }
.lg-caps { font-size: .95rem !important; }

.lg-summary { margin: 0 0 40px; padding: 24px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(40, 20, 80, .06); position: relative; overflow: hidden; }
.lg-summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--violet-strong)); }
.lg-summary h2 { font-size: 1.1rem; margin: 0 0 10px; }
.lg-summary ul { margin: 0 0 10px; }
.lg-summary li { margin-bottom: 4px; }
.lg-summary > p { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.lg-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .lg-toc { position: static; max-height: none; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
  .lg-toc ol { columns: 2; column-gap: 20px; border-left: 0; }
  .lg-toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
}
@media (max-width: 560px) {
  .lg-hero { padding: 40px 0 36px; }
  .lg-toc ol { columns: 1; }
  .lg-summary { padding: 20px 18px 18px 22px; }
}
/* buttons inside the text keep their own colors (the link color above made the Contact button's label invisible) */
.lg-body a.btn-primary, .lg-body a.btn-primary:hover { color: #fff; text-decoration: none; }
