*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  background: #ffffff;
  color: #111114;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}

.wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 92%;
  min-height: 520px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #5a9fe0 0%,
    #8ec0ef 22%,
    #c5dff7 48%,
    #eaf4fc 72%,
    #ffffff 100%
  );
}

.wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 60% at 50% 0%,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0) 55%
  );
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: clamp(12px, 2vh, 20px) auto 0;
  flex-shrink: 0;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topbar-brand img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 28px);
  flex: 1;
  min-width: 0;
}

.topbar-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(17, 17, 20, 0.72);
  text-decoration: none;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.topbar-nav a:hover,
.topbar-login:hover {
  color: #0b0b0f;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-login {
  padding: 9px 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(17, 17, 20, 0.82);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #6eb0f5 0%, #2f7fd6 48%, #1f6ec4 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -2px 0 rgba(12, 60, 120, 0.35) inset,
    0 3px 0 #154a8c,
    0 8px 18px rgba(20, 70, 140, 0.28);
}

.topbar-cta:hover {
  filter: brightness(1.05);
}

.legal-wrap {
  width: min(760px, calc(100% - 40px));
  margin: 48px auto 80px;
  flex: 1 1 auto;
}

.legal-kicker {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 20, 0.48);
  margin-bottom: 10px;
}

.legal-wrap h1 {
  font-family:
    "SF Pro Rounded",
    ui-rounded,
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #000;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 0.95rem;
  color: rgba(17, 17, 20, 0.52);
  letter-spacing: -0.015em;
  margin-bottom: 36px;
}

.legal-wrap h2 {
  margin: 36px 0 12px;
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #0b0b0f;
}

.legal-wrap h3 {
  margin: 22px 0 8px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #111114;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 1.02rem;
  line-height: 1.65;
  letter-spacing: -0.015em;
  color: rgba(17, 17, 20, 0.78);
}

.legal-wrap p + p {
  margin-top: 12px;
}

.legal-wrap ul,
.legal-wrap ol {
  margin: 10px 0 14px 1.2em;
}

.legal-wrap li + li {
  margin-top: 6px;
}

.legal-wrap a {
  color: #1f6ec4;
  font-weight: 600;
  text-decoration: none;
}

.legal-wrap a:hover {
  text-decoration: underline;
}

.legal-wrap strong {
  color: #111114;
  font-weight: 650;
}

.legal-wrap code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.06);
}

.site-footer {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 48px 24px 36px;
}

.site-footer-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 28ch;
}

.site-footer-brand a {
  display: inline-flex;
  text-decoration: none;
}

.site-footer-brand img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.site-footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: rgba(17, 17, 20, 0.52);
}

.site-footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 17, 20, 0.42);
}

.site-footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(17, 17, 20, 0.72);
  text-decoration: none;
}

.site-footer-col a:hover {
  color: #0b0b0f;
}

.site-footer-bottom {
  width: min(980px, 100%);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-bottom p,
.site-footer-legal a {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(17, 17, 20, 0.42);
  text-decoration: none;
}

.site-footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.site-footer-legal a:hover {
  color: rgba(17, 17, 20, 0.72);
}

@media (max-width: 820px) {
  .topbar-nav {
    display: none;
  }
}

@media (max-width: 800px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .legal-wrap {
    width: calc(100% - 32px);
    margin: 32px auto 56px;
  }

  .site-footer {
    padding: 40px 20px 28px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
