:root {
  --ink: #16415b;
  --muted: #5f7f93;
  --blue: #38bdf8;
  --deep-blue: #0284c7;
  --card: rgba(255, 255, 255, .82);
  --line: rgba(91, 143, 170, .24);
  --shadow: 0 24px 70px rgba(20, 92, 126, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(103, 232, 249, .42), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(186, 230, 253, .55), transparent 30%),
    radial-gradient(circle at 50% 86%, rgba(167, 243, 208, .30), transparent 34%),
    linear-gradient(180deg, #effcff 0%, #dff7ff 48%, #f8fdff 100%);
}

a { color: #0369a1; overflow-wrap: anywhere; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: #075985;
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid;
  gap: 18px;
}

.glass-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.brand {
  color: transparent;
  background: linear-gradient(180deg, #67e8f9, #0ea5e9 52%, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(30px, 7vw, 48px);
  font-weight: 1000;
  line-height: .95;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: #155e75;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(125, 211, 252, .26);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a.active {
  color: white;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  box-shadow: 0 12px 24px rgba(14, 165, 233, .22);
}

.content-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
  overflow: hidden;
}

.legal-card { width: min(900px, 100%); }

.drop-decor {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.drop {
  width: 28px;
  height: 28px;
  border-radius: 56% 44% 58% 42% / 58% 46% 54% 42%;
  box-shadow: inset -5px -7px 10px rgba(15, 23, 42, .12), inset 4px 5px 8px rgba(255,255,255,.78), 0 8px 16px rgba(20,92,126,.12);
}
.drop.red { background: linear-gradient(145deg, #fb7185, #ef4444); }
.drop.purple { background: linear-gradient(145deg, #c084fc, #8b5cf6); }
.drop.blue { background: linear-gradient(145deg, #67e8f9, #0ea5e9); }
.drop.green { background: linear-gradient(145deg, #86efac, #22c55e); }
.drop.yellow { background: linear-gradient(145deg, #fde68a, #facc15); }
.drop.orange { background: linear-gradient(145deg, #fdba74, #f97316); }

.maze-decor {
  align-items: center;
  gap: 0;
}
.maze-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset -5px -7px 10px rgba(15, 23, 42, .14), inset 4px 5px 8px rgba(255,255,255,.78), 0 8px 16px rgba(20,92,126,.14);
}
.maze-dot.gold { background: linear-gradient(145deg, #fde68a, #f59e0b); }
.maze-dot.purple { background: linear-gradient(145deg, #c084fc, #7c3aed); }
.maze-path {
  width: 126px;
  height: 12px;
  margin: 0 -2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #a855f7);
  box-shadow: 0 5px 12px rgba(126, 34, 206, .18);
}

.page-heading {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(22px, 4vw, 34px);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
}

h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #67e8f9, #0ea5e9 50%, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(42px, 11vw, 78px);
  font-weight: 1000;
  line-height: .94;
  letter-spacing: 0;
}

.legal-card h1 { font-size: clamp(34px, 8vw, 58px); }

.intro p,
.document-meta p,
.legal-body p,
.legal-body li {
  font-size: clamp(15.5px, 3.8vw, 16.5px);
  line-height: 1.75;
}

.intro p { margin: 0 0 12px; color: var(--muted); font-weight: 700; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.big-link {
  min-height: 154px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border-radius: 28px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(224,242,254,.80));
  border: 1px solid rgba(125, 211, 252, .34);
  box-shadow: 0 16px 34px rgba(14, 116, 144, .14), inset 0 1px 0 rgba(255,255,255,.9);
}
.big-link span { color: #075985; font-size: 22px; font-weight: 1000; }
.big-link strong { color: var(--muted); line-height: 1.5; font-size: 14px; }

.app-meta {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}
.app-meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.58);
}
.app-meta dt { font-weight: 950; color: #155e75; }
.app-meta dd { margin: 0; color: var(--muted); font-weight: 800; }

.document-meta {
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--line);
}
.document-meta p { margin: 0 0 6px; color: var(--muted); font-weight: 800; }

.legal-body { text-align: left; }
.legal-body h2,
.legal-body h3 {
  position: relative;
  scroll-margin-top: 18px;
  color: #075985;
  line-height: 1.2;
}
.legal-body h2 { margin: 2em 0 .75em; font-size: clamp(22px, 5vw, 30px); }
.legal-body h3 { margin: 1.55em 0 .55em; font-size: clamp(18px, 4vw, 22px); }
.legal-body p { margin: 0 0 1em; }
.legal-body ul { margin: .2em 0 1.15em; padding-left: 1.35em; }
.legal-body li + li { margin-top: .25em; }
.heading-anchor {
  position: absolute;
  left: -1.15em;
  color: #38bdf8;
  opacity: .45;
  text-decoration: none;
}
.legal-body h2:hover .heading-anchor,
.legal-body h3:hover .heading-anchor,
.heading-anchor:focus-visible { opacity: 1; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.site-footer p { margin: 4px 0; }

.top-button {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  box-shadow: 0 12px 28px rgba(14,165,233,.25);
  text-decoration: none;
  font-weight: 1000;
}

@media (max-width: 720px) {
  .site-header { align-items: stretch; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .site-nav a { flex: 1 1 auto; }
  .link-grid { grid-template-columns: 1fr; }
  .app-meta div { grid-template-columns: 1fr; gap: 4px; }
  .heading-anchor { position: static; margin-right: .35em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Maze Paint visual system: dark wood, gold ball, vivid paint trails. */
:root {
  --ink: #fff8e8;
  --muted: #d8c7ae;
  --blue: #a855f7;
  --deep-blue: #7c3aed;
  --card: rgba(43, 25, 17, .91);
  --line: rgba(255, 203, 92, .22);
  --shadow: 0 28px 76px rgba(8, 3, 2, .52);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(168, 85, 247, .22), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, .15), transparent 28%),
    radial-gradient(circle at 72% 86%, rgba(249, 115, 22, .14), transparent 31%),
    repeating-linear-gradient(92deg, rgba(255,255,255,.018) 0 1px, transparent 1px 9px),
    linear-gradient(145deg, #0f0907 0%, #21120c 46%, #100908 100%);
}

a { color: #67e8f9; }
a:focus-visible, button:focus-visible { outline-color: #fbbf24; }

.glass-card {
  border-color: rgba(255, 202, 91, .24);
  background:
    linear-gradient(110deg, rgba(255,255,255,.035), transparent 35%),
    repeating-linear-gradient(4deg, rgba(255,255,255,.012) 0 1px, transparent 1px 7px),
    var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 221, 147, .17);
  backdrop-filter: blur(18px);
}

.site-header { border-radius: 22px; }

.brand,
h1 {
  color: transparent;
  background: linear-gradient(180deg, #fff2ad 0%, #fbbf24 45%, #d97706 76%, #fff0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 32px rgba(245, 158, 11, .13);
}

.site-nav a {
  color: #f6e8d4;
  background: rgba(19, 10, 8, .68);
  border-color: rgba(251, 191, 36, .19);
}

.site-nav a.active {
  color: #180b06;
  background: linear-gradient(180deg, #ffe899, #f59e0b);
  box-shadow: 0 12px 28px rgba(245, 158, 11, .22);
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 8%, rgba(236, 72, 153, .08) 8% 8.7%, transparent 8.7% 100%),
    linear-gradient(0deg, transparent 84%, rgba(34, 211, 238, .07) 84% 84.7%, transparent 84.7% 100%);
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.intro p,
.document-meta p,
.legal-body p,
.legal-body li,
.app-meta dd,
.site-footer { color: var(--muted); }

.eyebrow { color: #f0c877; }

.big-link {
  background:
    linear-gradient(115deg, rgba(255,255,255,.055), transparent 44%),
    linear-gradient(180deg, rgba(71, 38, 24, .94), rgba(32, 17, 13, .96));
  border-color: rgba(251, 191, 36, .25);
  box-shadow: 0 16px 34px rgba(5, 2, 2, .30), inset 0 1px 0 rgba(255, 224, 160, .10);
}

.big-link:first-child { border-bottom: 3px solid #ec4899; }
.big-link:nth-child(2) { border-bottom: 3px solid #22d3ee; }
.big-link span { color: #fff4cf; }
.big-link strong { color: #cdbda9; }
.big-link:hover { transform: translateY(-2px); border-color: rgba(251, 191, 36, .48); }

.app-meta div,
.document-meta {
  background: rgba(18, 9, 7, .55);
  border: 1px solid rgba(251, 191, 36, .14);
}
.app-meta dt { color: #f2c768; }

.legal-body h2,
.legal-body h3 { color: #ffd978; }
.heading-anchor { color: #ec4899; }

.top-button {
  color: #1c0d07;
  background: linear-gradient(180deg, #ffe899, #f59e0b);
  box-shadow: 0 12px 28px rgba(245, 158, 11, .24);
}

.maze-dot.gold {
  background: radial-gradient(circle at 34% 27%, #fff9c9 0 8%, #fcd34d 24%, #d97706 63%, #6b2704 100%);
}
.maze-dot.purple {
  background: radial-gradient(circle at 34% 27%, #f5d0fe 0 7%, #d946ef 27%, #7e22ce 68%, #3b0764 100%);
}
.maze-path {
  background: linear-gradient(90deg, #f59e0b 0 14%, #f43f5e 26%, #d946ef 42%, #8b5cf6 57%, #22d3ee 74%, #22c55e 88%, #facc15 100%);
  box-shadow: 0 5px 16px rgba(217, 70, 239, .24);
}

@media (max-width: 720px) {
  .page-shell,
  .site-header,
  main,
  .content-card {
    width: 100%;
    min-width: 0;
  }
  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .site-nav a {
    min-width: 0;
    padding: 9px 5px;
    font-size: 11.5px;
    white-space: nowrap;
  }
}
