/* Terms pages: shared layout, themed to this variant */
:root {
  --bg: #06080d; --surface: #0b1019; --ink: #eef1f5; --heading: #ffffff; --muted: #aab3c0; --line: rgba(255,255,255,.14); --accent: #7aa8ff;
  --head: "Source Serif 4", Georgia, serif; --body: "Inter", Arial, sans-serif; --ui: "Inter", Arial, sans-serif;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.7; overflow-x: hidden; }
h1, h2, p, ol, ul { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 50; }
.skip:focus { top: 16px; }
.t-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.t-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.t-header .t-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; }
.t-mark { font-family: var(--head); font-weight: 600; font-size: 1.5rem; color: var(--heading); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.t-back { font-family: var(--ui); font-weight: 600; font-size: .9375rem; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.t-back:hover { text-decoration: underline; text-underline-offset: 4px; }

.t-hero { padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .t-hero { padding: 72px 0 36px; } }
.t-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.t-tabs a { font-family: var(--ui); font-weight: 600; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.t-tabs a:hover { border-color: var(--ink); }
.t-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.t-eyebrow { font-family: var(--ui); font-weight: 600; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.t-hero h1 { font-family: var(--head); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; color: var(--heading); letter-spacing: -.01em; }
.t-meta { margin-top: 14px; font-family: var(--ui); font-size: .9375rem; color: var(--muted); }

.t-layout { display: grid; gap: 32px; padding: 32px 0 80px; }
@media (min-width: 1024px) { .t-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 48px; } }
.t-toc { font-family: var(--ui); }
.t-toc details { border: 1px solid var(--line); background: var(--surface); }
.t-toc summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0 16px; font-weight: 600; font-size: .9375rem; }
.t-toc ol { list-style: none; padding: 4px 8px 12px; }
.t-toc li a { display: grid; grid-template-columns: 28px 1fr; gap: 4px; padding: 7px 8px; font-size: .875rem; line-height: 1.35; color: var(--ink); text-decoration: none; border-radius: 4px; }
.t-toc li a:hover { background: var(--bg); color: var(--accent); }
.t-toc li a span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .t-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; }
  .t-toc details { border: 0; background: none; }
  .t-toc summary { padding: 0 8px; pointer-events: none; list-style: none; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-height: 32px; }
  .t-toc summary::-webkit-details-marker { display: none; }
}

.t-body { max-width: 72ch; font-size: 1.0313rem; }
.t-body > p, .t-body .t-party { margin-bottom: 14px; }
.t-part { font-family: var(--head); font-weight: 600; font-size: 1.5rem; color: var(--heading); margin: 32px 0 12px; }
.t-body > .t-part:first-of-type { margin-top: 28px; }
.t-party { display: grid; grid-template-columns: 36px 1fr; }
.t-party-n { color: var(--muted); }
.t-section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.t-section h2 { font-family: var(--head); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; letter-spacing: .02em; color: var(--heading); margin-bottom: 20px; }
.t-sec-n { color: var(--accent); margin-right: 6px; }
.t-clause { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; margin-bottom: 16px; scroll-margin-top: 80px; }
.t-num { font-family: var(--ui); font-weight: 600; font-size: .875rem; line-height: 1.95; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.t-num:hover { color: var(--accent); }
.t-clause strong { color: var(--heading); }
.t-clause:target { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: 6px solid color-mix(in srgb, var(--accent) 10%, transparent); }
.t-def { margin: 0 0 12px 56px; padding-left: 16px; border-left: 2px solid var(--line); }
.t-def strong { color: var(--heading); }
.t-sub { list-style: none; padding: 0; margin: -4px 0 16px 56px; display: grid; gap: 8px; }
.t-sub li { display: grid; grid-template-columns: 32px minmax(0, 1fr); }
.t-sub-n { color: var(--muted); }
@media (max-width: 599px) { .t-def, .t-sub { margin-left: 0; } .t-clause { grid-template-columns: 40px minmax(0, 1fr); } }
.t-top { display: inline-flex; align-items: center; min-height: 44px; margin-top: 40px; font-family: var(--ui); font-weight: 600; font-size: .9375rem; }

.t-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-family: var(--ui); font-size: .875rem; color: var(--muted); }
.t-footer .t-wrap { display: grid; gap: 12px; }

/* Footer links to the three terms pages, used on every page */
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.legal-links a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }

@media print {
  .t-header, .t-toc, .t-tabs, .t-top, .t-footer .legal-links { display: none; }
  body { background: #fff; color: #000; }
  .t-layout { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
