/* Terms & Agreements (getsolia.com/terms, 2026-10-21). Dark like the landing,
   with the same tokens, type and accents. The page body (terms.html) is
   generated by Solia-iOS workspace/scripts/sync-legal-docs.ts; this file and
   assets/js/terms.js style and drive it. */

:root {
  --space: #0D0B06;
  --canvas: #14120B;
  --surface: #1B1913;
  --raised: #211F19;
  --rule: #302E29;
  --rule-soft: #24221C;
  --ink: #F3F1EA;
  --ink-soft: #C9C6BD;
  --muted: #8A8781;
  --accent: #EE8239;
  --gold: #F8B44B;
  --header-h: 68px;
  --gutter: clamp(20px, 4vw, 44px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.tx {
  margin: 0;
  background: var(--space);
  color: var(--ink);
  font: 400 16px/1.65 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.tx a { color: var(--accent); text-decoration: none; }
body.tx a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── header: the wordmark is the way home ─────────────────────────────────── */
.tx-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.tx-header.scrolled {
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.tx-wordmark { display: inline-flex; line-height: 0; }
.tx-wordmark img { height: 34px; width: auto; display: block; }
.tx-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ── hero ─────────────────────────────────────────────────────────────────── */
.tx-main { position: relative; isolation: isolate; }
.tx-main::before {
  /* the landing's horizon glow, rising behind the title; anchored to the
     full-width main so it never widens the page */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 720px;
  background: radial-gradient(70% 80% at 28% 0%, rgba(238, 130, 57, .16) 0%, rgba(228, 114, 53, .05) 45%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.tx-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(56px, 10vh, 112px)) var(--gutter) clamp(48px, 8vh, 88px);
}
.tx-kicker {
  margin: 0 0 22px;
  font: 500 11.5px/1 "JetBrains Mono", monospace;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}
.tx-title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
}
.tx-title em { font-style: normal; color: var(--gold); }
.tx-lede {
  margin: 26px 0 0;
  max-width: 54ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.tx-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  font: 500 11px/1 "JetBrains Mono", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tx-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(238, 130, 57, .14);
}

/* the four documents, as cards */
.tx-cards {
  list-style: none;
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 20px 18px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 60%, var(--space)));
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
body.tx a.tx-card { color: var(--ink); }
.tx-card:hover { border-color: color-mix(in srgb, var(--accent) 70%, var(--rule)); transform: translateY(-2px); }
.tx-card-num { font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .14em; color: var(--accent); }
.tx-card-title { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.tx-card-desc { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tx-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  font: 500 10.5px/1 "JetBrains Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tx-card-arrow { font-family: Manrope, sans-serif; font-size: 16px; letter-spacing: 0; color: var(--accent); transition: transform .25s ease; }
.tx-card:hover .tx-card-arrow { transform: translateX(3px); }

/* one-document pages (/delete-account): a shorter hero over the text */
.tx-hero-doc .tx-title { font-size: clamp(38px, 6.2vw, 76px); }
.tx-hero-doc .tx-updated { display: flex; } /* its own line, above the status note */
.tx-hero-doc .tx-doc-status { margin-top: 18px; }
.tx-hero-doc + .tx-layout { margin-top: clamp(-24px, -2vh, -8px); }

/* ── reading layout: contents beside the documents ────────────────────────── */
.tx-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 12vh, 140px);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.tx-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  padding: 6px 4px 6px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.tx-toc-toggle { display: none; }
.tx-toc-list, .tx-toc-sections { list-style: none; margin: 0; padding: 0; }
.tx-toc-doc + .tx-toc-doc { margin-top: 6px; }
body.tx .tx-toc-doc-link {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
body.tx .tx-toc-doc-link:hover { color: var(--ink); background: var(--surface); }
.tx-toc-num { font: 500 10.5px/1 "JetBrains Mono", monospace; color: var(--muted); letter-spacing: .08em; }
.tx-toc-doc.is-active > .tx-toc-doc-link { color: var(--ink); }
.tx-toc-doc.is-active > .tx-toc-doc-link .tx-toc-num { color: var(--accent); }
.tx-toc-sections { margin: 2px 0 8px 14px; border-left: 1px solid var(--rule); }
body.tx .tx-toc-sections a {
  display: block;
  margin-left: -1px;
  padding: 5px 10px 5px 14px;
  border-left: 1px solid transparent;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}
body.tx .tx-toc-sections a:hover { color: var(--ink-soft); }
body.tx .tx-toc-sections a[aria-current="true"] { color: var(--ink); border-left-color: var(--accent); }
/* with script, only the document you are reading opens its sections (a
   single-document page keeps its own open: is-current) */
.js .tx-toc-doc:not(.is-active):not(.is-current) .tx-toc-sections { display: none; }
.tx-toc-doc.is-current > .tx-toc-doc-link { color: var(--ink); }
.tx-toc-doc.is-current > .tx-toc-doc-link .tx-toc-num { color: var(--accent); }
/* "Other documents" on a one-document page (/delete-account) */
.tx-toc-group {
  margin: 22px 10px 6px;
  font: 500 10.5px/1 "JetBrains Mono", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── documents ────────────────────────────────────────────────────────────── */
.tx-docs { min-width: 0; }
.tx-doc { scroll-margin-top: calc(var(--header-h) + 24px); }
.tx-doc + .tx-doc { margin-top: clamp(72px, 10vh, 112px); }
.tx-doc-head {
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.tx-doc-num {
  display: block;
  font: 500 12px/1 "JetBrains Mono", monospace;
  letter-spacing: .18em;
  color: var(--accent);
}
.tx-doc-head h2 {
  margin: 16px 0 0;
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
}
.tx-doc-meta {
  margin: 14px 0 0;
  font: 500 11px/1.4 "JetBrains Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tx-doc-status {
  display: inline-block;
  margin: 16px 0 0;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--rule));
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 6%, transparent);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tx-prose { max-width: 70ch; }
.tx-prose h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 44px 0 12px;
  font-size: clamp(19px, 1.7vw, 21px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.tx-sec-num {
  flex: none;
  min-width: 30px;
  padding: 4px 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-align: center;
  font: 500 11.5px/1 "JetBrains Mono", monospace;
  color: var(--accent);
  transform: translateY(-2px);
}
.tx-prose h4 { margin: 26px 0 8px; font-size: 16px; font-weight: 650; color: var(--ink); }
.tx-prose p, .tx-prose li {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.tx-prose p { margin: 0 0 16px; }
.tx-prose strong { font-weight: 650; color: var(--ink); }
.tx-prose em { color: var(--ink); }
.tx-prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.tx-prose a:hover { text-decoration-color: currentColor; }
.tx-prose code { font: 500 .9em "JetBrains Mono", monospace; color: var(--ink); }
.tx-prose ul { list-style: none; margin: 0 0 18px; padding: 0; }
.tx-prose li { position: relative; padding-left: 22px; margin: 0 0 10px; }
.tx-prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .85;
}
/* licence and source links read as a row of chips */
.tx-prose ul.tx-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-prose ul.tx-links li { padding: 0; margin: 0; }
.tx-prose ul.tx-links li::before { display: none; }
.tx-prose ul.tx-links a {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-soft);
}
.tx-prose ul.tx-links a:hover { border-color: var(--accent); color: var(--ink); }

.tx-contact {
  margin-top: clamp(64px, 9vh, 96px);
  padding: 24px 26px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  max-width: 70ch;
}
.tx-contact-title { margin: 0 0 6px; font-size: 17px; font-weight: 650; color: var(--ink); }
.tx-contact p:last-child { margin: 0; color: var(--ink-soft); line-height: 1.7; }

/* ── footer + back to top ─────────────────────────────────────────────────── */
.tx-footer {
  border-top: 1px solid var(--rule);
  padding: 30px var(--gutter) 44px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.tx-footer p { max-width: 760px; margin: 0 auto 6px; }
.tx-footer-acronym { color: var(--ink-soft); }
.tx-footer-acronym strong { color: var(--ink); letter-spacing: .08em; }

.tx-top {
  position: fixed;
  right: var(--gutter);
  bottom: 24px;
  z-index: 40;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}
body.tx a.tx-top { color: var(--ink-soft); }
.tx-top.show { opacity: 1; transform: none; pointer-events: auto; }
.tx-top:hover { border-color: var(--accent); }

/* ── smaller screens: contents become a dropdown under the header ─────────── */
@media (max-width: 1080px) {
  .tx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tx-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tx-toc {
    top: var(--header-h);
    z-index: 30;
    max-height: none;
    overflow: visible;
    margin: 0 calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    background: color-mix(in srgb, var(--canvas) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
  }
  .js .tx-toc-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: 600 14.5px/1.2 Manrope, sans-serif;
    cursor: pointer;
  }
  .js .tx-toc-toggle::after { content: "▾"; color: var(--accent); transition: transform .2s ease; }
  .js .tx-toc.open .tx-toc-toggle::after { transform: rotate(180deg); }
  .js .tx-toc-list { display: none; }
  .js .tx-toc.open .tx-toc-list {
    display: block;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    margin-top: 10px;
    padding-bottom: 6px;
  }
  .js .tx-toc.open .tx-toc-doc .tx-toc-sections { display: block; }
  .tx-doc, .tx-prose h3 { scroll-margin-top: calc(var(--header-h) + 84px); }
}
@media (max-width: 600px) {
  .tx-cards { grid-template-columns: minmax(0, 1fr); }
  .tx-card-title { margin-top: 12px; }
  .tx-prose p, .tx-prose li { font-size: 16px; }
  .tx-prose h3 { gap: 12px; }
  .tx-top { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tx-card, .tx-card-arrow, .tx-top, .tx-header { transition: none; }
}

/* ── print: plain black on white, documents only ─────────────────────────── */
@media print {
  body.tx { background: #fff; color: #000; }
  .tx-header, .tx-toc, .tx-cards, .tx-top, .tx-footer { display: none; }
  .tx-hero { padding: 0 0 12px; }
  .tx-main::before { display: none; }
  .tx-layout { display: block; padding: 0; }
  .tx-title, .tx-title em, .tx-doc-head h2, .tx-prose h3, .tx-prose strong, .tx-contact-title { color: #000; }
  .tx-lede, .tx-prose p, .tx-prose li, .tx-doc-meta, .tx-doc-status, .tx-contact p { color: #222; }
  .tx-doc + .tx-doc { break-before: page; margin-top: 0; }
  .tx-prose a { color: #000; }
}
