/* Shared stylesheet for the plain legal pages (privacy.html, terms.html).
   The landing page's accent, ink, muted and line colours, tuned for long-form
   reading; the two pages must look identical, so their styles live here once.
   index.html is a Claude Design export with its own styles and does not use
   this file. */
/* Accent, ink, muted and line colours are public/index.html's; --ink-2, --muted-2 and
   --accent-border are shades derived from them for long-form reading. Every text
   colour here clears WCAG AA against the white ground. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f8f9;
  --ink: #17181c;
  --ink-2: #3b3c42;
  --muted: #63646b;
  --muted-2: #6e6f76;
  --line: #e6e6e9;
  --line-soft: rgba(230,230,233,.8);
  --accent: #f4544e;
  --accent-deep: #c0322c;
  --accent-hover: #d93a34;
  --accent-tint: rgba(244,84,78,.10);
  --accent-border: rgba(244,84,78,.35);
  --footer: #17181c;
  --bar-h: 66px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 18px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  max-width: 100%;
  overflow-x: hidden;
}
a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }

/* Top bar: the landing page's sticky pill nav, with the logo alongside it. */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand img { width: 148px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 999px; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 6px 22px -10px rgba(23,24,28,.18); }
.nav a { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.nav a.cta { background: var(--accent); color: #fff; font-weight: 700; padding: 8px 18px; box-shadow: 0 6px 18px rgba(244,84,78,.28); }
.nav a.cta:hover { background: var(--accent-hover); color: #fff; }

/* Title block, with one of the landing page's soft brand glows behind it. */
.title { position: relative; isolation: isolate; padding-block: 52px 32px; border-bottom: 1px solid var(--line); overflow: hidden; }
.title::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -220px; left: -160px; width: 640px; height: 640px; border-radius: 999px;
  background: radial-gradient(circle, rgba(244,84,78,.16), rgba(244,84,78,0) 68%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23,24,28,.05); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
h1 { font-family: "Inter Display", Inter, system-ui, sans-serif; font-size: clamp(34px, 5vw, 48px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; color: var(--ink); margin: 0 0 18px; text-wrap: balance; max-width: 22ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); font-weight: 500; margin: 0; padding: 0; list-style: none; }
.meta b { color: var(--ink); font-weight: 600; }
.lede { max-width: 68ch; font-size: 17px; line-height: 1.6; color: var(--muted); margin: 20px 0 0; }

/* Body grid: sticky contents rail on wide screens, a compact grid of links above the text otherwise. */
.grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
@media (min-width: 1024px) { .grid { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }

nav.toc { font-size: 13px; }
@media (min-width: 1024px) { nav.toc { position: sticky; top: calc(var(--bar-h) + 24px); align-self: start; max-height: calc(100vh - var(--bar-h) - 48px); overflow: auto; } }
nav.toc .label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; }
nav.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
nav.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 8px; line-height: 1.35; font-weight: 500; transition: color .2s ease, background-color .2s ease; }
nav.toc a span.n { font-variant-numeric: tabular-nums; color: var(--muted-2); font-weight: 600; }
nav.toc a:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 1023px) {
  nav.toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; }
  nav.toc a { min-height: 40px; align-items: center; }
}

article { max-width: 72ch; min-width: 0; }
article > section { padding-block: 8px 30px; }
article > section + section { border-top: 1px solid var(--line); padding-top: 34px; }
h2 { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 10px; font-family: "Inter Display", Inter, system-ui, sans-serif; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
h2 .n { font-family: Inter, system-ui, sans-serif; font-size: 13px; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
h3 { font-family: "Inter Display", Inter, system-ui, sans-serif; font-size: 16.5px; font-weight: 800; color: var(--ink); margin: 26px 0 8px; letter-spacing: -.015em; }
h3 .n { font-family: Inter, system-ui, sans-serif; color: var(--muted-2); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }
li::marker { color: var(--muted-2); }
strong { color: var(--ink); font-weight: 650; }

/* Cards use the landing page's card recipe. */
.short { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: 0 1px 2px rgba(23,24,28,.05); padding: 18px 20px; margin: 0 0 22px; }
.short p:first-child { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.short ul { margin-bottom: 0; }

.tbl { overflow-x: auto; margin: 4px 0 20px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(23,24,28,.05); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; min-width: 560px; }
th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--accent-border); background: var(--surface-2); white-space: nowrap; }
td { vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
tr:first-child td { border-top: 0; }
td:first-child { color: var(--ink); font-weight: 600; min-width: 140px; }
table.wide { min-width: 720px; }

.contact { display: grid; gap: 4px 18px; grid-template-columns: max-content 1fr; font-size: 14.5px; margin: 0 0 16px; }
.contact dt { color: var(--muted-2); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 4px; }
.contact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

footer.end { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: 13px; color: var(--muted-2); font-weight: 500; }

/* Site footer: the landing page's, including its faint twinkling starfield. */
.site-footer { position: relative; margin-top: 72px; padding: 30px 24px; background: var(--footer); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.site-footer .stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-repeat: repeat;
  background-image:
    radial-gradient(1px 1px at 60px 20px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.3px 1.3px at 170px 130px, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 240px 60px, rgba(244,84,78,.55), transparent),
    radial-gradient(1.1px 1.1px at 110px 210px, rgba(255,255,255,.5), transparent);
  background-size: 260px 240px;
  animation: osTwinkle 5.5s ease-in-out infinite;
}
@keyframes osTwinkle { 0%,100% { opacity: .85; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .site-footer .stars { animation: none; } }
.site-footer .inner { position: relative; max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer img { width: 160px; height: auto; display: block; }
.site-footer .tag { font-size: 13px; color: rgba(255,255,255,.55); }
.site-footer .links { margin-left: auto; display: flex; gap: 20px; }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); text-decoration: none; }
.site-footer .links a:hover, .site-footer .links a[aria-current="page"] { color: #fff; }

@media (max-width: 820px) {
  .wrap { padding-inline: 18px; }
  .brand img { width: 124px; }
  .nav a { padding: 8px 12px; }
  .title { padding-block: 36px 26px; }
  .site-footer { padding: 26px 18px; }
  .site-footer .links { margin-left: 0; }
}
@media (max-width: 400px) {
  /* Like the landing page below its breakpoint: only the CTA stays in the pill.
     The logo is the way home. */
  .nav a:not(.cta) { display: none; }
  .brand img { width: 112px; }
}

@media print {
  body { background: #fff; color: #111; font-size: 11.5pt; }
  .bar, nav.toc, .site-footer, .skip { display: none; }
  .title::before { display: none; }
  .grid { display: block; }
  article { max-width: none; }
  .wrap { padding-inline: 0; }
  .tbl, .short { border: 0; box-shadow: none; }
  .tbl { overflow: visible; }
  table, table.wide { min-width: 0; width: 100%; font-size: 9.5pt; }
  th { white-space: normal; }
  a { color: inherit; text-decoration: none; }
}
