:root {
  --accent: #e8f542;
  --background: #1a1a18;
  --background-raised: #242422;
  --border: #3a3a37;
  --ink: #f0ede8;
  --muted: #aaa69f;
  --surface: rgba(46, 46, 43, 0.86);
  color-scheme: dark;
  font-family: "DM Sans", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 82% -10%, rgba(232, 245, 66, 0.2), transparent 34rem),
    var(--background);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

body.light {
  --background: #f5f4f0;
  --background-raised: #eceae4;
  --border: #d8d5ce;
  --ink: #0d0d0d;
  --muted: #66635d;
  --surface: rgba(255, 255, 255, 0.9);
  color-scheme: light;
}

a {
  color: inherit;
}

.site-nav {
  align-items: center;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: flex;
  gap: 18px;
  height: 60px;
  justify-content: space-between;
  left: 50%;
  max-width: 1180px;
  padding: 0 12px 0 24px;
  position: fixed;
  top: 20px;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  z-index: 20;
}

body.light .site-nav {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(0, 0, 0, 0.1);
}

.brand {
  align-items: center;
  display: flex;
  padding: 8px 4px;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 22px;
  width: auto;
}

body.light .brand img {
  filter: invert(1);
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-home,
.pill-button {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 7px 11px;
  text-decoration: none;
}

.nav-home {
  color: var(--ink);
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.nav-home:hover {
  color: var(--ink);
}

.pill-button {
  background: var(--background-raised);
  border-color: var(--border);
  color: var(--ink);
  cursor: pointer;
}

.page {
  margin: 0 auto;
  max-width: 920px;
  padding: 148px 24px 72px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-header {
  margin-bottom: 38px;
}

.legal-page {
  max-width: 840px;
  padding-top: 120px;
}

.legal-page .page-header {
  margin-bottom: 40px;
}

.legal-page .eyebrow {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.legal-page .eyebrow::before {
  background: var(--accent);
  content: "";
  display: block;
  height: 1px;
  width: 22px;
}

.legal-page .page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.legal-page .page-header p {
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 14px 0 0;
}

.legal-tabs {
  background: var(--background-raised);
  border-radius: 999px;
  display: flex;
  gap: 3px;
  margin-bottom: 40px;
  padding: 4px;
  width: fit-content;
}

.legal-tab {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 22px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.legal-tab[aria-current="page"] {
  background: var(--accent);
  color: #0d0d0d;
}

.legal-page .document-section {
  background: var(--background-raised);
  border: 0;
  border-radius: 12px;
  margin: 2px 0;
  padding: 28px 30px;
}

.legal-page .document-section h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.legal-page .document-section p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-header h1 {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 12px 0 22px;
  max-width: 820px;
}

.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}

.document-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  margin: 14px 0;
  padding: 24px;
}

.document-section h2 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.document-section p {
  color: var(--muted);
  margin: 9px 0;
}

.document-section a,
.page-footer a {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.support-form label {
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 6px;
}

.support-form input,
.support-form textarea {
  background: var(--background-raised);
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  width: 100%;
}

.support-form textarea {
  min-height: 160px;
  resize: vertical;
}

.support-form button {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #0d0d0d;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  justify-self: start;
  padding: 13px 20px;
}

.support-form button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.form-status {
  font-weight: 700;
  min-height: 1.6em;
}

.website-field {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.page-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 14px 24px;
  justify-content: space-between;
  margin: 40px auto 0;
  max-width: 920px;
  padding: 24px;
}

@media (max-width: 820px) {
  .site-nav {
    top: 12px;
    width: calc(100% - 24px);
  }

  .page {
    padding-top: 118px;
  }

  .legal-page {
    padding: 100px 20px 60px;
  }

  .legal-tabs {
    width: 100%;
  }

  .legal-tab {
    flex: 1;
    padding-inline: 10px;
    text-align: center;
  }
}

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

@media print {
  body {
    background: white;
    color: black;
  }

  .site-nav,
  .page-footer,
  .support-form {
    display: none;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .document-section {
    border: 0;
    break-inside: avoid;
    padding: 8px 0;
  }
}
