@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: light dark;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #241a35;
  background: #f5f3f8;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.14), transparent 30rem),
    #f5f3f8;
}

a {
  color: #6d28d9;
  text-underline-offset: 3px;
}

.site-header,
.legal-main,
.site-footer {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
}

.legal-main {
  padding-bottom: 40px;
}

.hero,
.policy {
  border: 1px solid rgba(82, 61, 111, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(47, 31, 70, 0.08);
}

.hero {
  padding: clamp(26px, 5vw, 52px);
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.08;
}

.hero p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: #675b75;
}

.policy {
  margin-top: 14px;
  overflow: hidden;
}

.policy summary {
  cursor: pointer;
  padding: 20px 24px;
  color: #4c1d95;
  font-weight: 700;
}

.policy[open] summary {
  border-bottom: 1px solid rgba(82, 61, 111, 0.12);
}

.policy-body {
  padding: 8px clamp(24px, 5vw, 54px) 38px;
}

.policy-body h2 {
  margin: 30px 0 8px;
  font-size: 21px;
  line-height: 1.3;
}

.policy-body p,
.policy-body li {
  color: #51465f;
}

.policy-body ul {
  padding-left: 22px;
}

.updated {
  color: #74687f;
  font-size: 13px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 34px;
  color: #74687f;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .policy {
    border-radius: 18px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f2edf9;
    background: #131116;
  }

  body {
    background:
      radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.2), transparent 30rem),
      #131116;
  }

  a {
    color: #c4b5fd;
  }

  .hero,
  .policy {
    border-color: rgba(226, 214, 242, 0.12);
    background: rgba(32, 27, 38, 0.9);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  .hero p:last-child,
  .policy-body p,
  .policy-body li {
    color: #c8bece;
  }

  .policy summary {
    color: #d8c8ff;
  }

  .updated,
  .site-footer {
    color: #a99faf;
  }
}
