/* CueFlip — shared styles for the legal / support site.
   Neutral monochrome, Apple-legal-page structure: thin sticky bar, narrow
   measure, generous vertical rhythm. No external fonts, no JS, no tracking. */

:root {
  --bg: #ffffff;
  --bg-bar: rgba(255, 255, 255, .72);
  --fg: #1d1d1f;
  --fg-secondary: #6e6e73;
  --fg-tertiary: #86868b;
  --rule: #d2d2d7;
  --rule-faint: #e8e8ed;
  --card: #f5f5f7;
  --measure: 692px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-bar: rgba(22, 22, 23, .72);
    --fg: #f5f5f7;
    --fg-secondary: #a1a1a6;
    --fg-tertiary: #86868b;
    --rule: #424245;
    --rule-faint: #2a2a2c;
    --card: #161617;
  }
}

* { 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(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei",
               sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 52px;
  background: var(--bg-bar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule-faint);
}

.bar-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* The source icon already carries its own squircle and shadow — no clipping. */
.bar-brand img {
  width: 26px;
  height: 26px;
  display: block;
}

.bar-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.bar-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: -.008em;
}

.bar-links a:hover,
.bar-links a[aria-current="page"] { color: var(--fg); }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 22px 120px;
}

.page-head {
  padding: 76px 0 40px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--fg-tertiary);
}

h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.021em;
}

.page-head .lead {
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1.48;
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--fg-secondary);
}

.dates {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--fg-tertiary);
}

hr.divider {
  border: 0;
  border-top: 1px solid var(--rule-faint);
  margin: 0 0 52px;
}

/* ---------- typography ---------- */

h2 {
  margin: 60px 0 18px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.015em;
  scroll-margin-top: 76px;
}

h3 {
  margin: 36px 0 10px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.012em;
  scroll-margin-top: 76px;
}

p { margin: 0 0 18px; }

ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 10px; }
li > ul, li > ol { margin-top: 10px; }

strong { font-weight: 600; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-color: currentColor; }

/* ---------- components ---------- */

.callout {
  background: var(--card);
  border-radius: 18px;
  padding: 28px 30px;
  margin: 0 0 44px;
}

.callout h2 {
  margin: 0 0 16px;
  font-size: 19px;
  letter-spacing: -.012em;
}

.callout ul { margin-bottom: 0; }
.callout p:last-child { margin-bottom: 0; }

.toc {
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
  padding: 24px 0;
  margin: 0 0 8px;
}

.toc h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 9px;
  font-size: 15px;
  break-inside: avoid;
}

.toc a { text-decoration-color: transparent; color: var(--fg-secondary); }
.toc a:hover { color: var(--fg); text-decoration-color: var(--rule); }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 16px;
}

caption {
  text-align: left;
  font-size: 15px;
  color: var(--fg-secondary);
  padding-bottom: 12px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule-faint);
}

th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fg-tertiary);
  border-bottom-color: var(--rule);
  padding-top: 0;
}

td:last-child, th:last-child { padding-right: 0; }

.contact-card {
  background: var(--card);
  border-radius: 18px;
  padding: 28px 30px;
  margin: 0 0 8px;
}

.contact-card h2 { margin: 0 0 12px; font-size: 19px; }
.contact-card p { margin-bottom: 14px; }
.contact-card p:last-child { margin-bottom: 0; }

.contact-email {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.012em;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
}

.pills li { margin: 0; }

.pills a {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--rule);
  border-radius: 980px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.pills a:hover { background: var(--card); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule-faint);
  margin-top: 88px;
  padding-top: 26px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-tertiary);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

footer a { color: var(--fg-secondary); text-decoration-color: transparent; }
footer a:hover { text-decoration-color: var(--rule); }
footer p { margin: 0; }

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 23px; margin-top: 48px; }
  .page-head { padding: 52px 0 32px; }
  .page-head .lead { font-size: 19px; }
  .callout, .contact-card { padding: 24px 22px; border-radius: 16px; }
  table { font-size: 15px; }
  th, td { padding: 12px 12px 12px 0; }
}
