/* TrackDecks — the legal pages: Privacy Policy, Cookie Policy, Terms.
   Long reading, so the measure is narrow, the type is generous and the page
   follows the device's light or dark setting. */
:root {
  --bg: #0b0d10; --panel: #12161b; --line: #232a33; --ink: #e9edf2; --ink-2: #b7c0cb;
  --ink-3: #8592a1; --accent: #3d77b5; --accent-ink: #8fb8e6; --note: #15202c;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="night"]) {
    --bg: #f6f7f9; --panel: #ffffff; --line: #dfe4ea; --ink: #121820; --ink-2: #3a4553;
    --ink-3: #66727f; --accent: #2f5c8f; --accent-ink: #2f5c8f; --note: #eef4fb;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.lg-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.lg-top .in { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.lg-brand svg { display: block; }
.lg-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.lg-nav a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.lg-nav a:hover { color: var(--ink); background: var(--panel); }
.lg-nav a[aria-current="page"] { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }

.lg-wrap { max-width: 1080px; margin: 0 auto; padding: 36px 20px 80px; display: grid;
  grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.lg-toc { position: sticky; top: 84px; font-size: 14px; }
.lg-toc b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lg-toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.lg-toc a:hover { background: var(--panel); color: var(--ink); }

.lg-doc { max-width: 720px; min-width: 0; }
.lg-doc h1 { font-size: 36px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
.lg-meta { color: var(--ink-3); font-size: 14px; margin: 0 0 28px; }
.lg-doc h2 { font-size: 22px; line-height: 1.3; margin: 44px 0 12px; padding-top: 4px; letter-spacing: -.01em; }
.lg-doc h3 { font-size: 17px; margin: 26px 0 8px; }
.lg-doc p, .lg-doc li { color: var(--ink-2); }
.lg-doc strong { color: var(--ink); }
.lg-doc ul, .lg-doc ol { padding-left: 22px; }
.lg-doc li { margin: 6px 0; }
.lg-note { background: var(--note); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.lg-note p:first-child { margin-top: 0; } .lg-note p:last-child, .lg-note ul:last-child { margin-bottom: 0; }
.lg-note h2, .lg-note h3 { margin-top: 0; }

.lg-table { width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lg-table th { color: var(--ink); background: var(--panel); font-weight: 650; }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table td { color: var(--ink-2); }
.lg-table code, .lg-doc code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; white-space: nowrap; }

.lg-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 650;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.lg-btn:hover { border-color: var(--accent); }

.lg-foot { border-top: 1px solid var(--line); }
.lg-foot .in { max-width: 1080px; margin: 0 auto; padding: 22px 20px 36px; display: flex; gap: 16px 22px; flex-wrap: wrap;
  align-items: center; color: var(--ink-3); font-size: 14px; }
.lg-foot a, .lg-foot button { color: var(--ink-2); }
.lg-foot button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lg-foot .sp { flex: 1; }

@media (max-width: 860px) {
  .lg-wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
  .lg-toc { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; background: var(--panel); }
  .lg-toc ol { grid-template-columns: 1fr 1fr; }
  .lg-doc h1 { font-size: 30px; }
}
@media (max-width: 520px) {
  .lg-top .in { padding: 12px 16px; gap: 10px; }
  .lg-nav { margin-left: 0; width: 100%; }
  .lg-nav a { padding: 6px 10px; font-size: 13px; }
  .lg-wrap { padding-left: 16px; padding-right: 16px; }
  .lg-toc ol { grid-template-columns: 1fr; }
  .lg-foot .in { padding-left: 16px; padding-right: 16px; }
}
@media print {
  .lg-top, .lg-toc, .lg-foot, .cc { display: none !important; }
  .lg-wrap { display: block; padding: 0; }
  body { background: #fff; color: #000; }
}

/* the page tabs: full names where there is room, short ones on a phone */
.lg-nav .lg-s { display: none; }
@media (max-width: 520px) {
  .lg-nav { flex-wrap: nowrap; }
  .lg-nav .lg-l { display: none; }
  .lg-nav .lg-s { display: inline; }
}
/* on a phone the contents list would be the whole first screen: the headings
   are numbered and the page scrolls, so it steps aside */
@media (max-width: 860px) { .lg-toc { display: none; } .lg-wrap { padding-top: 20px; } }
