/* Blocks legal pages. Colours from the app's Sapphire theme (Palette.swift). */
:root {
  --canvas: #EEEBE4;
  --surface: #FAF8F3;
  --hairline: #DED8CC;
  --ink: #14161C;
  --ink-soft: #6B6F7B;
  --brand: #1A3594;
  --reward: #B8862F;
  --hero-a: #2A47A8;
  --hero-b: #132A72;
  --hero-c: #06112F;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #05070D;
    --surface: #0D111D;
    --hairline: #1D2333;
    --ink: #ECEDF1;
    --ink-soft: #8D93A3;
    --brand: #5B7FE8;
    --reward: #D9AE5F;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
.serif, h1, h2, h3 {
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-weight: 400;
}
a { color: var(--brand); text-underline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 9; }

.hero {
  background: linear-gradient(180deg, var(--hero-a), var(--hero-b) 60%, var(--hero-c));
  color: #fff;
  padding: 28px 22px 64px;
}
.hero .bar { max-width: 760px; margin: 0 auto 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 24px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.bar nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; margin-left: 18px; }
.bar nav a[aria-current="page"] { color: #fff; }
.hero .inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: #D9AE5F;
}
.hero h1 { font-size: clamp(40px, 7vw, 60px); line-height: 1.08; margin: 12px 0 14px; }
.hero p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 18px; max-width: 600px; }

main { max-width: 760px; margin: -32px auto 0; padding: 0 22px 72px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: 34px clamp(22px, 5vw, 44px) 40px;
}
.updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }
.callout {
  border-left: 3px solid var(--reward);
  background: color-mix(in srgb, var(--reward) 9%, transparent);
  border-radius: 0 16px 16px 0;
  padding: 16px 20px;
  margin: 0 0 28px;
}
.callout b { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }
.toc { margin: 0 0 30px; padding: 18px 20px; border: 1px solid var(--hairline); border-radius: 18px; }
.toc b { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 2px 0; font-size: 15px; }
.toc a { text-decoration: none; }
h2 { font-size: 27px; line-height: 1.25; margin: 40px 0 10px; scroll-margin-top: 20px; }
h3 { font-size: 20px; margin: 24px 0 6px; }
p, li { color: color-mix(in srgb, var(--ink) 88%, var(--ink-soft)); }
ul { padding-left: 22px; }
li { margin: 5px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-weight: 600; color: var(--ink); }
.caps { text-transform: uppercase; font-size: 15px; }

footer { max-width: 760px; margin: 0 auto; padding: 0 22px 48px; color: var(--ink-soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--ink-soft); }
