:root {
  --background: #09090d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-raised: rgba(255, 255, 255, 0.085);
  --accent: #8a7cff;
  --accent-bright: #a89cff;
  --text: rgba(255, 255, 255, 0.94);
  --text-soft: rgba(255, 255, 255, 0.66);
  --text-muted: rgba(255, 255, 255, 0.42);
  --border: rgba(255, 255, 255, 0.1);
  --active-border: rgba(138, 124, 255, 0.42);
  --shadow: rgba(138, 124, 255, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(138, 124, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 18% 6%, rgba(95, 71, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #0e0e14 0%, var(--background) 42rem, #07070a 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 28rem),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.38));
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(138, 124, 255, 0.35);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(7, 7, 10, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.brand,
nav,
footer {
  display: flex;
  align-items: center;
}

.brand {
  width: 98px;
  overflow: hidden;
  transition:
    transform 500ms var(--ease-out),
    opacity 500ms var(--ease-out);
}

.brand:hover {
  transform: translateY(-1px) scale(1.025);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  justify-content: flex-end;
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 720;
}

nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition:
    color 280ms var(--ease-out),
    background 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 48px;
  align-items: end;
  padding: 76px 0 74px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 0 0 28px;
  filter:
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 28px rgba(138, 124, 255, 0.12));
  animation: floatIn 900ms var(--ease-out) 90ms both;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: 78px;
  line-height: 0.94;
  animation: floatIn 900ms var(--ease-out) 120ms both;
}

h2 {
  margin-bottom: 16px;
  font-size: 58px;
  line-height: 0.96;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  letter-spacing: 0;
}

p,
li {
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.7;
}

strong {
  color: var(--text);
}

.summary-card,
.legal-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 56px rgba(0, 0, 0, 0.2);
}

.summary-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-color: rgba(138, 124, 255, 0.28);
  border-radius: 24px;
}

.summary-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.summary-card span,
.summary-card a {
  color: var(--text-soft);
  font-weight: 760;
}

.summary-card a:hover,
footer a:hover {
  color: var(--accent-bright);
}

.star-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(138, 124, 255, 0.36);
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.2), transparent 36%),
    rgba(138, 124, 255, 0.12);
}

.star-mark::before {
  width: 30px;
  height: 30px;
  content: "";
  background: url("assets/Star.png") center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(138, 124, 255, 0.55));
}

.section {
  padding: 84px 0;
  border-top: 1px solid rgba(138, 124, 255, 0.14);
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.legal-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border-radius: 20px;
  transition:
    transform 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    background 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out);
}

.legal-card.wide {
  grid-column: span 2;
}

.legal-card:hover {
  transform: translateY(-4px);
  border-color: var(--active-border);
  background:
    linear-gradient(180deg, rgba(138, 124, 255, 0.095), rgba(255, 255, 255, 0.035)),
    var(--surface-raised);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 0 46px rgba(138, 124, 255, 0.08);
}

.legal-card > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid rgba(138, 124, 255, 0.28);
  border-radius: 12px;
  color: var(--accent-bright);
  font-weight: 900;
}

ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

footer {
  justify-content: space-between;
  min-height: 90px;
  border-top: 1px solid rgba(138, 124, 255, 0.14);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 760;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 460px;
  height: 460px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(138, 124, 255, 0.16), transparent 62%);
  filter: blur(22px);
  opacity: 0.8;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 400ms var(--ease-out);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px rgba(138, 124, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 850ms var(--ease-out),
    transform 850ms var(--ease-out),
    filter 850ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@media (max-width: 900px) {
  .cursor-glow {
    display: none;
  }

  .legal-hero,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    gap: 30px;
    padding-top: 34px;
  }

  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 48px;
  }

  .legal-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 28px);
    max-width: 1120px;
  }

  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand {
    width: 86px;
  }

  nav {
    gap: 2px;
    font-size: 12px;
  }

  nav a {
    padding: 9px 8px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-logo {
    width: min(100%, 360px);
  }

  .section {
    padding: 62px 0;
  }

  footer {
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
