:root {
  --sz-bg: #050505;
  --sz-bg-soft: #0a0a0d;
  --sz-text: rgba(245,245,244,.96);
  --sz-muted: rgba(245,245,244,.62);
  --sz-faint: rgba(245,245,244,.38);
  --sz-line: rgba(255,255,255,.10);
  --sz-surface: rgba(255,255,255,.055);
  --sz-surface-strong: rgba(255,255,255,.085);
  --sz-violet: #b8a7ff;
  --sz-cyan: #8ee7ff;
  --sz-page-x: var(--sz-pad-x, clamp(22px, 5vw, 48px));
  --sz-content: min(var(--sz-page-narrow, 860px), calc(100vw - var(--sz-page-x) * 2));
}
* {
  box-sizing: border-box;
}
html {
  background: var(--sz-bg);
  color: var(--sz-text);
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.legal-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 0%, rgba(184,167,255,.16), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(142,231,255,.10), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(184,167,255,.055), transparent 40%),
    #050505;
  color: var(--sz-text);
}
.legal-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}
.legal-header,
.legal-main {
  position: relative;
  z-index: 1;
  width: var(--sz-content);
  margin-left: auto;
  margin-right: auto;
}
.legal-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--sz-line);
}
.legal-brand {
  color: var(--sz-text);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.07em;
  font-size: 22px;
  line-height: 1;
}
.legal-nav {
  display: none;
}
.legal-main {
  flex: 1;
  width: var(--sz-content);
  min-width: 0;
  padding: clamp(48px, 8vh, 92px) 0;
}
.legal-card {
  max-width: min(780px, 100%);
  width: 100%;
  min-width: 0;
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow:
    0 24px 80px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
/* Optional future use; not used on current legal pages (SS-6.3). */
.legal-kicker {
  margin: 0 0 14px;
  color: var(--sz-violet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.legal-card h1 {
  max-width: 100%;
  margin: 0 0 28px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 760;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.legal-content {
  color: var(--sz-muted);
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.62;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
  word-break: normal;
}
.legal-content p {
  margin: 0 0 18px;
}
.legal-content a {
  color: var(--sz-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(142,231,255,.35);
}
.legal-content ul {
  padding-left: 1.2em;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: var(--sz-text);
  text-decoration: none;
  font-weight: 650;
}
.site-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: auto;
  min-height: 92px;
  padding: 28px 0 calc(34px + env(safe-area-inset-bottom));
  display: block;
  border-top: 1px solid rgba(255,255,255,.075);
  color: rgba(245,245,244,.42);
  font-size: 13px;
}
.site-footer-scroll {
  width: 100%;
}
.site-footer-inner {
  width: var(--content-w, var(--sz-content));
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer-copy {
  flex: 0 0 auto;
  color: rgba(245,245,244,.42);
}
.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
  min-width: 0;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(245,245,244,.58);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}
.site-footer a:hover {
  color: rgba(245,245,244,.94);
}
.site-footer-contact {
  white-space: nowrap;
}
.footer-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,245,244,.72);
  background:
    radial-gradient(circle at 30% 20%, rgba(184,167,255,.34), rgba(184,167,255,.14) 45%, rgba(255,255,255,.04));
  border: 1px solid rgba(184,167,255,.24);
  box-shadow:
    0 0 24px rgba(184,167,255,.10),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.site-footer a:hover .footer-icon {
  color: rgba(255,255,255,.96);
  border-color: rgba(184,167,255,.42);
}
@media (max-width: 760px) {
  html,
  body {
    overflow-x: clip;
  }
  .legal-header {
    min-height: 76px;
  }
  .legal-main {
    padding: 34px 0 46px;
  }
  .legal-card {
    border-radius: 22px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 30px 26px;
    overflow: hidden;
  }
  /* LEGAL-H1-MOBILE-OVERFLOW-1: legal H1 separate from utility scale */
  .legal-card h1,
  .legal-content h1,
  .legal-page h1 {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    font-size: clamp(28px, 7.2vw, 36px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    white-space: normal;
    overflow: visible;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
    text-wrap: wrap;
  }
  .legal-card h1 span {
    display: inline;
    max-width: 100%;
  }
  .legal-content {
    font-size: 15px;
    line-height: 1.58;
  }
  .site-footer {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 18px 0 calc(22px + env(safe-area-inset-bottom));
    overflow-x: clip;
    overflow-y: visible;
  }
  .site-footer-inner,
  .site-footer-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
  }
  .site-footer-inner {
    width: auto;
    margin: 0;
    justify-content: flex-start;
  }
  .site-footer-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px;
  }
  .site-footer-scroll::-webkit-scrollbar {
    display: none;
  }
  .site-footer-copy,
  .site-footer a,
  .site-footer-contact {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .site-footer-links {
    justify-content: flex-start;
  }
  .footer-icon {
    width: 28px;
    height: 28px;
  }
}
