@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap");

:root {
  --bg: #020b18;
  --bg-soft: #071427;
  --panel: #0a1a31;
  --text: #e8eefc;
  --muted: #9fb2d1;
  --line: rgba(138, 167, 214, 0.18);
  --link: #d7e6ff;
  --link-hover: #ffffff;
  --header-h: 76px;
  --shell: 960px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Satoshi", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(54, 92, 161, 0.22), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(39, 88, 186, 0.15), transparent 52%),
    linear-gradient(180deg, #020814 0%, #030d1d 54%, #020915 100%);
}

.shell {
  width: min(100% - 40px, var(--shell));
  margin: 0 auto;
}

.site-header .shell {
  width: min(100% - 32px, 1360px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  background: rgba(5, 9, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.header-inner {
  height: 100%;
  margin-top: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #edf3ff;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.brand-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 1px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, #f7fbff 0%, #dbe4f1 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  flex: 0 0 16px;
}

.brand-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 1px;
  background: linear-gradient(180deg, #2f3746 0%, #1f2531 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: -1;
}

.brand-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #eef4ff;
}

.main-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #d2d9e7;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  border-radius: 0;
  transition: color 180ms ease;
  opacity: 1;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
}

.header-cta {
  justify-self: end;
  margin-left: 10px;
  text-decoration: none;
  color: #eef4ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.header-menu-toggle {
  display: none;
  justify-self: end;
  position: relative;
  isolation: isolate;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(124, 187, 255, 0.42);
  background: rgba(11, 20, 36, 0.72);
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(173, 209, 255, 0.16) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.header-menu-toggle::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(120, 205, 255, 0.95), rgba(89, 132, 255, 0.72));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.28;
  transition: opacity 220ms ease;
}

.header-menu-toggle span {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: #f2f8ff;
  box-shadow: 0 0 10px rgba(140, 196, 255, 0.35);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease, width 260ms ease;
}

.header-menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.header-menu-toggle span:nth-child(2) { transform: translateY(0); }
.header-menu-toggle span:nth-child(3) { transform: translateY(6px); }

.site-header.is-menu-open .header-menu-toggle span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
  width: 18px;
}

.site-header.is-menu-open .header-menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.site-header.is-menu-open .header-menu-toggle span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
  width: 18px;
}

.legal-main {
  flex: 1 0 auto;
  padding: calc(var(--header-h) + 28px) 0 56px;
}

.legal-card {
  background: linear-gradient(180deg, rgba(11, 28, 50, 0.85), rgba(7, 21, 39, 0.9));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.legal-title {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.legal-date {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-section + .legal-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.legal-section p {
  margin: 0;
  color: #d7e1f2;
  line-height: 1.7;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 13, 0.84);
  padding: 18px 0 22px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  color: #9aa5b6;
  font-size: 14px;
}

.footer-links {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccd5e2;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    position: relative;
  }

  .header-cta { display: none; }
  .header-menu-toggle { display: inline-flex; }
  .main-nav {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 210px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(121, 180, 255, 0.24);
    background:
      radial-gradient(220px 120px at 20% -10%, rgba(83, 117, 255, 0.2), transparent 70%),
      rgba(8, 13, 24, 0.94);
    box-shadow:
      0 18px 32px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(167, 205, 255, 0.08) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 130;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition:
      opacity 220ms ease,
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 220ms ease;
  }
  .main-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-4px);
    transition:
      background-color 180ms ease,
      opacity 220ms ease,
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }
  .site-header.is-menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .site-header.is-menu-open .main-nav a {
    opacity: 1;
    transform: translateY(0);
  }
  .site-header.is-menu-open .main-nav a:nth-child(1) { transition-delay: 40ms; }
  .site-header.is-menu-open .main-nav a:nth-child(2) { transition-delay: 80ms; }
  .site-header.is-menu-open .main-nav a:nth-child(3) { transition-delay: 120ms; }

  .legal-main {
    padding: calc(var(--header-h) + 20px) 0 36px;
  }

  .legal-card {
    padding: 20px;
    border-radius: 12px;
  }

  .footer-inner {
    width: min(100% - 32px, var(--shell));
  }

  .footer-links {
    gap: 16px 20px;
  }
}
.legal-section h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #dbe8ff;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #d7e1f2;
}

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

.legal-section a {
  color: var(--link);
  text-underline-offset: 2px;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--link-hover);
}
