:root {
  color-scheme: light;
  --navy-950: #071f35;
  --navy-800: #0b3856;
  --navy-650: #175777;
  --pink-650: #d93f78;
  --pink-500: #ed5d91;
  --pink-200: #ffc0d4;
  --pink-100: #ffe1eb;
  --pink-50: #fff5f8;
  --white: #ffffff;
  --ink: #102b3c;
  --muted: #5e7180;
  --line: #eadde2;
  --success: #197653;
  --shadow: 0 22px 60px rgba(62, 31, 47, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--pink-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy-650); text-underline-offset: 3px; }
a:hover { color: var(--pink-650); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pink-500); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(234, 221, 226, 0.9);
  background: rgba(255, 250, 252, 0.92);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-950);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { width: 88px; height: 48px; border-radius: 13px; object-fit: cover; box-shadow: 0 8px 20px rgba(217, 63, 120, 0.14); }
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pink-650); background: var(--pink-100); }
.page-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  position: relative;
  min-height: min(66vw, 650px);
  margin: 34px 0 48px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: #f8abc2;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(7, 31, 53, 0.76) 0%, rgba(7, 31, 53, 0.1) 46%, transparent 72%);
}

.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { width: min(660px, 100%); padding: clamp(28px, 6vw, 62px); color: var(--white); }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 74px); line-height: 1.02; letter-spacing: -0.055em; }
.hero-copy p { margin: 18px 0 0; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.55; }

.section { margin: 0 0 68px; }
.section-heading { max-width: 700px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: var(--navy-950); font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -0.035em; }
.section-heading p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(65, 43, 52, 0.07);
}
.card-kicker { display: inline-block; margin-bottom: 12px; color: var(--pink-650); font-size: 12px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.card h3 { margin: 0 0 9px; color: var(--navy-950); font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card-link { display: inline-flex; margin-top: 18px; font-weight: 800; }

.legal-hero {
  margin: 34px 0 28px;
  padding: clamp(30px, 6vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  color: var(--navy-950);
  background: linear-gradient(100deg, rgba(255, 246, 249, 0.96), rgba(255, 225, 235, 0.78)), url("/assets/moonbear-banner.webp") center / cover;
  box-shadow: var(--shadow);
}
.legal-hero h1 { max-width: 760px; font-size: clamp(38px, 6vw, 62px); }
.legal-hero p { max-width: 720px; margin: 16px 0 0; color: var(--navy-800); font-size: 18px; }
.last-updated { display: inline-flex; margin-top: 20px; padding: 7px 12px; border-radius: 999px; color: var(--navy-800); background: rgba(255, 255, 255, 0.72); font-size: 13px; font-weight: 750; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 780px); justify-content: center; align-items: start; gap: 34px; margin-bottom: 72px; }
.toc { position: sticky; top: 94px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.toc strong { display: block; margin-bottom: 10px; color: var(--navy-950); }
.toc ol { margin: 0; padding-left: 22px; color: var(--muted); font-size: 14px; }
.toc li { margin: 7px 0; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--pink-650); }
.legal-card { padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 16px 44px rgba(65, 43, 52, 0.08); }
.legal-card section { scroll-margin-top: 100px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal-card section:first-child { padding-top: 0; }
.legal-card section:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-card h2 { margin: 0 0 12px; color: var(--navy-950); font-size: 25px; line-height: 1.25; letter-spacing: -0.025em; }
.legal-card h3 { margin: 22px 0 8px; color: var(--navy-800); font-size: 18px; }
.legal-card p { margin: 10px 0; color: #405967; }
.legal-card ul { margin: 12px 0; padding-left: 24px; color: #405967; }
.legal-card li { margin: 9px 0; padding-left: 5px; }
.note { margin: 18px 0; padding: 16px 18px; border-left: 4px solid var(--pink-500); border-radius: 4px 14px 14px 4px; background: var(--pink-50); color: var(--navy-800); }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-weight: 700; text-decoration: none; }

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 620px) {
  .nav-shell, .page-shell, .footer-shell { width: min(100% - 28px, 1160px); }
  .nav-shell { min-height: 64px; }
  .brand img { width: 72px; height: 42px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 9px; font-size: 13px; }
  .hero { min-height: 72vh; margin-top: 20px; border-radius: 24px; }
  .hero-image { object-position: 68% center; }
  .hero-copy { padding: 26px; }
  .legal-hero { margin-top: 20px; border-radius: 22px; }
  .legal-card { border-radius: 20px; }
  .footer-shell { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero, .legal-hero { animation: reveal 560ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
