: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); }

.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;
  }
}
