:root {
  --bg: #f7f5f3;
  --fg: #1a1816;
  --dim: #8a8580;
  --rule: #d4d2cf;
  --accent: #536B8E;
  --bg-glass: rgba(247, 245, 243, 0.62);
  --hover-tint: rgba(0, 0, 0, 0.04);
  --serif: 'Iowan Old Style', 'Charter', 'Georgia', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro', 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
:root.dark {
  --bg: #1a1816;
  --fg: #dddbd8;
  --dim: #8a8580;
  --rule: #34302c;
  --accent: #9C8468;
  --bg-glass: rgba(26, 24, 22, 0.62);
  --hover-tint: rgba(255, 255, 255, 0.06);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }

a.back {
  position: fixed;
  top: 18px;
  left: 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-decoration: none;
  z-index: 20;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  transition: color 140ms ease, background 140ms ease;
}
a.back:hover { color: var(--fg); }

a.brand {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
  z-index: 20;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  user-select: none;
  transition: color 140ms ease, background 140ms ease;
}
a.brand svg { display: block; height: 26px; width: auto; }
a.brand:hover { color: var(--accent); }

article.legal {
  max-width: 76ch;
  margin: 0 auto;
  padding: 130px 24px 140px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
  color: var(--fg);
  font-weight: 400;
  text-align: left;
}
.legal .doc-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 10px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 6px;
}
.legal .doc-updated {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--dim);
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 40px 0 12px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 26px 0 10px;
}
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 24px; }
.legal li { margin: 0 0 10px; }
.legal strong { font-weight: 500; }
.legal a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--accent); }

.theme-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
  z-index: 30;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--fg); background: var(--hover-tint); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root.dark .theme-toggle .icon-sun  { display: block; }
:root.dark .theme-toggle .icon-moon { display: none; }
