:root {
  color-scheme: dark;
  --bg: #04131a;
  --bg-soft: #0b1f28;
  --surface: rgba(21, 37, 47, 0.85);
  --surface-strong: #1b2d38;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #13a4ec;
  --primary-strong: #0ea5e9;
  --amber: #e8a308;
  --success: #10b981;
  --max-width: 900px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(1200px 700px at 8% -6%, rgba(19, 164, 236, 0.24) 0%, transparent 46%),
    radial-gradient(900px 600px at 92% 112%, rgba(139, 92, 246, 0.2) 0%, transparent 48%),
    linear-gradient(180deg, #031018 0%, #031822 54%, #04131a 100%);
  min-height: 100vh;
}

a {
  color: var(--primary-strong);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -120%;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  z-index: 999;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient-shape {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(80px);
  z-index: -2;
}

.ambient-shape-top {
  width: 340px;
  height: 340px;
  left: -170px;
  top: -90px;
  background: rgba(19, 164, 236, 0.18);
}

.ambient-shape-bottom {
  width: 420px;
  height: 420px;
  right: -190px;
  bottom: -220px;
  background: rgba(139, 92, 246, 0.2);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.65), transparent 82%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 19, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.container {
  width: min(100% - 2rem, 1160px);
  margin: 0 auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  font-family: 'Urbanist', 'Avenir Next', sans-serif;
}

.brand img {
  border-radius: 0;
  filter: drop-shadow(0 8px 20px rgba(19, 164, 236, 0.28));
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current='page'] {
  color: var(--text);
}

.legal-main {
  width: min(100% - 2rem, var(--max-width));
  margin: 2.2rem auto 3rem;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    var(--surface);
  box-shadow:
    0 32px 80px rgba(2, 6, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(1.2rem, 2vw, 2.1rem);
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(19, 164, 236, 0.16);
}

h1 {
  margin: 0.55rem 0 0;
  font-family: 'Urbanist', 'Avenir Next', sans-serif;
  font-size: clamp(1.85rem, 6vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0.8rem 0 0;
  color: #d5e5f2;
}

.effective-date {
  margin: 0.8rem 0 0;
  color: #d5e5f2;
  font-size: 0.96rem;
}

.legal-section {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.3;
}

.legal-section p {
  margin: 0.72rem 0 0;
  color: #d8e8f5;
}

.legal-section ul {
  margin: 0.72rem 0 0;
  padding-left: 1.2rem;
}

.legal-section li {
  margin-top: 0.38rem;
  color: #d8e8f5;
}

.warning {
  margin-top: 0.88rem;
  border-left: 3px solid rgba(255, 255, 255, 0.18);
  padding: 0.56rem 0 0.56rem 0.75rem;
  border-radius: 0 8px 8px 0;
  color: #b8cad9;
  background: rgba(255, 255, 255, 0.04);
}

.contact-block {
  margin-top: 0.74rem;
}

.contact-block p {
  margin: 0.35rem 0 0;
}

.site-footer {
  margin-top: 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 12, 18, 0.64);
}

.footer-inner {
  padding: 2rem 0 1.6rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Urbanist', 'Avenir Next', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.footer-brand img {
  border-radius: 0;
}

.footer-columns {
  display: flex;
  gap: 3rem;
}

.footer-col-title {
  margin: 0 0 0.6rem;
  font-family: 'Urbanist', 'Avenir Next', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8ca4b8;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  color: #c8d6e4;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.copyright {
  margin: 0;
  color: #6b8599;
  font-size: 0.82rem;
}

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 62px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-columns {
    justify-content: center;
    gap: 2rem;
  }
}

/* ── Waitlist (shared with main page) ── */

.btn-waitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.6rem;
  border: none;
  border-radius: 12px;
  font-family: 'Manrope', 'Avenir Next', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #0b8bd4 100%);
  box-shadow: 0 4px 14px rgba(19, 164, 236, 0.35);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-waitlist:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(19, 164, 236, 0.45);
}

.btn-waitlist:active {
  transform: translateY(0);
}

.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 10, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.waitlist-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.waitlist-modal {
  position: relative;
  width: min(92vw, 420px);
  padding: 2rem 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(19, 164, 236, 0.25);
  background: linear-gradient(180deg, #132230 0%, #0d1b26 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.97);
  transition: transform 220ms ease;
}

.waitlist-overlay.is-open .waitlist-modal {
  transform: translateY(0) scale(1);
}

.waitlist-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.waitlist-close:hover {
  color: #fff;
}

#waitlist-title {
  margin: 0;
  font-family: 'Urbanist', 'Avenir Next', sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.waitlist-desc {
  margin: 0.5rem 0 0;
  color: #b0c4d4;
  font-size: 0.94rem;
  line-height: 1.5;
}

.waitlist-form {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.5rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 160ms ease;
}

.waitlist-form input[type="email"]::placeholder {
  color: #6b8599;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--primary);
}

.btn-waitlist-submit {
  flex: 0 0 auto;
  padding: 0.68rem 1.2rem;
  font-size: 0.92rem;
}

.waitlist-msg {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  min-height: 1.3em;
}

.waitlist-msg.is-success {
  color: var(--success);
}

.waitlist-msg.is-error {
  color: #f87171;
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
  }
}
