/* Legal pages.
 *
 * These used to be Times New Roman, 13px, justified, black on white — a dry
 * contract look, chosen on purpose. It worked against the business. A prospect
 * who read the hero and then clicked "terms" was thrown out of the brand
 * entirely and handed what felt like another company's paperwork, at the exact
 * moment the site most needs to feel reassuring. The document someone reads
 * before signing should look like it came from the same practice as everything
 * else.
 *
 * So: the site's own dark palette, a comfortable measure, generous leading, and
 * left-aligned text. Justified type without hyphenation opens rivers of
 * whitespace down a narrow column — the old setting was costing legibility as
 * well as tone.
 *
 * A system font stack rather than the brand webfont: these pages are standalone
 * static HTML that never loads the app bundle, and the built font files carry
 * content hashes no static stylesheet can reference stably. The stack below
 * resolves to the platform's own UI face, so it renders instantly with no
 * network request and no layout shift.
 *
 * Every selector the documents rely on is preserved.
 */

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-raised: #0e1114;
  --text: #e9edef;
  --muted: #9aa4ac;
  --line: rgba(205, 220, 230, 0.14);
  --line-strong: rgba(214, 228, 237, 0.28);
  --link: #cfe0ea;
  --accent: #d7e8f2;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Readers who prefer light get a warm off-white, not clinical paper. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f8f9;
    --bg-raised: #ffffff;
    --text: #14181b;
    --muted: #56616a;
    --line: rgba(20, 28, 34, 0.13);
    --line-strong: rgba(20, 28, 34, 0.24);
    --link: #1d4b65;
    --accent: #1d4b65;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  /* 17px at 1.75. The old 13px justified Times was a real legibility cost on a
     document people are being asked to actually read. */
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-accept-bar { padding-bottom: 7rem; }

main {
  /* ~68 characters — the measure long-form prose is comfortable at. */
  width: min(100% - 2.5rem, 44rem);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

header {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.masthead-return {
  display: inline-block;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.masthead-return::before { content: "\2190\00a0\00a0"; }
.masthead-return:hover { color: var(--text); }

.label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem; /* 11.2px: the site's 11px floor (0.68rem measured 10.9px) */
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 4.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
}

header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

h2 {
  margin: 3.25rem 0 1.1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 650;
}

p, li {
  /* Left-aligned on purpose — see the file header. */
  text-align: left;
  hyphens: none;
}

p { margin: 0 0 1.15rem; }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
li { margin-bottom: 0.5rem; }

strong { font-weight: 650; color: var(--text); }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover { text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

section { scroll-margin-top: 2rem; }

/* An advisory callout, not an alarm. */
.notice {
  margin: 0 0 2rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  border-radius: 0.7rem;
  background: var(--bg-raised);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: left;
}
.notice strong { color: var(--text); }

/* Unresolved placeholder. Deliberately loud — it must never ship unnoticed. */
.ph {
  padding: 0 0.28em;
  border-radius: 0.2em;
  background: rgba(216, 195, 143, 0.22);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88em;
}

.toc {
  margin: 0 0 3rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--bg-raised);
}

/* Plain-language summary. Borrows the .toc shell so it reads as part of the
   document's own furniture rather than a marketing panel dropped into a legal
   page, and takes a slightly stronger left edge so it is clearly an orientation
   aid and not one of the numbered sections. */
.plain-summary {
  margin: 0 0 3rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  border-radius: 0.85rem;
  background: var(--bg-raised);
}
.plain-summary .label { margin-bottom: 0.9rem; }
.plain-summary ul {
  margin: 1.15rem 0 0;
  padding-left: 1.1rem;
}
.plain-summary li {
  margin-bottom: 0.7rem;
  line-height: 1.65;
}
.plain-summary li:last-child { margin-bottom: 0; }
/* The clause citations are reference marks, not prose: mono and quiet, so the
   eye reads the sentence and finds the number only when it wants to check. */
.plain-summary li span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82em;
  white-space: nowrap;
}
.plain-summary__foot {
  margin: 1.3rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.toc .label { margin-bottom: 0.9rem; }
.toc ol {
  margin: 0;
  /* No painted marker: every entry's link text already begins with its own
     section number, and those numbers must stay in the text because the
     document cross-references them ("most importantly sections 13, 14 and 18").
     Letting the <ol> also paint a decimal marker rendered each line numbered
     twice, "1. 1. Who these terms bind, and when", on the two pages a cautious
     client reads most carefully. It stays an <ol> so the sequence is still
     conveyed to assistive technology. */
  list-style: none;
  padding-left: 0;
  columns: 2;
  column-gap: 2rem;
}
.toc li { margin-bottom: 0.42rem; break-inside: avoid; }
.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}
.toc a:hover { color: var(--text); }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
}

.back {
  display: inline-block;
  width: 100%;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { color: var(--text); }

/* Acceptance bar — part of the same product, not a cookie banner. */
.accept-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.accept-bar__inner {
  width: min(100% - 2.5rem, 44rem);
  margin: 0 auto;
  padding: 1.05rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.accept-bar__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.accept-bar__actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.accept-bar__decline {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.accept-bar__decline:hover { color: var(--text); }

/* The site's own primary control: a machined key with a lit top edge. */
.accept-bar__agree {
  display: inline-grid;
  place-items: center;
  min-height: 2.9rem;
  padding: 0 1.5rem;
  border: 1px solid rgba(228, 239, 246, 0.5);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #e1e7ea 0%, #8e9aa2 56%, #657078 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -0.2rem 0.4rem rgba(11, 14, 16, 0.3),
    0 0.4rem 0.8rem rgba(0, 0, 0, 0.42);
  color: #05070a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
.accept-bar__agree:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -0.2rem 0.4rem rgba(11, 14, 16, 0.26),
    0 0.65rem 1.15rem rgba(0, 0, 0, 0.5),
    0 0 1.2rem rgba(186, 209, 222, 0.16);
}
.accept-bar__agree:active:not(:disabled) { transform: translateY(1px); }
.accept-bar__agree:disabled {
  border-color: var(--line);
  background: var(--bg-raised);
  box-shadow: none;
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 560px) {
  main { padding: 2.75rem 0 3.5rem; }
  body { font-size: 16px; }
  .accept-bar__inner { justify-content: center; text-align: center; }
}
