:root {
  --lavender-50: #f7f4ff;
  --lavender-100: #eee9ff;
  --lavender-200: #ded5fb;
  --paper: #fffefe;
  --ink: #25264c;
  --ink-soft: #5c5a80;
  --purple: #7458c8;
  --purple-deep: #5f43b5;
  --purple-light: #a68de8;
  --red: #ef504e;
  --green: #2eae63;
  --line: #d8d0ed;
  --display: "Space Grotesk", "Arial Black", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --shell: min(1120px, calc(100vw - 48px));
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  background: var(--lavender-50);
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(116, 88, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 88, 200, 0.08) 1px, transparent 1px),
    var(--lavender-50);
  background-size: 44px 44px;
  font-family: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body *::selection {
  color: var(--paper);
  background: var(--purple);
}

a {
  color: var(--purple-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--purple);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: var(--shell);
  min-height: 44px;
  margin: 24px auto 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.back-link::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--paper);
  background: var(--purple);
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(95, 67, 181, 0.24);
  transform: rotate(-7deg);
}

.back-link::after {
  content: "←";
  order: -1;
  color: var(--purple);
  font-family: var(--mono);
}

.wrap {
  width: var(--shell);
  margin: 22px auto 72px;
}

.support-page .wrap {
  max-width: 940px;
}

.support-page .card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 84px);
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255, 254, 254, 0.95);
  box-shadow: 0 34px 90px rgba(53, 39, 105, 0.16);
  isolation: isolate;
}

.support-page .card::before {
  content: "SUPPORT / EQ PUZZLE";
  display: block;
  margin-bottom: 22px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.support-page .card::after {
  content: "?  +  !";
  position: absolute;
  top: 44px;
  right: -0.5em;
  z-index: -1;
  color: rgba(116, 88, 200, 0.08);
  font-family: var(--mono);
  font-size: clamp(5rem, 13vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.12em;
  transform: rotate(-8deg);
}

.support-page h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.support-page h1 + p {
  max-width: 52ch;
  margin-bottom: 62px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.support-page h2 {
  margin: 34px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--purple-deep);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-page p,
.support-page li {
  color: var(--ink-soft);
}

.support-page h2 + p a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 14px;
  color: var(--paper);
  background: var(--purple);
  box-shadow: 0 14px 30px rgba(95, 67, 181, 0.22);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.support-page h2 + p a[href^="mailto:"]:hover {
  background: var(--purple-deep);
  transform: translateY(-2px);
}

.support-page ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.support-page li {
  position: relative;
  min-height: 100px;
  padding: 22px 20px 20px 52px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--lavender-50);
  font-size: 0.9rem;
  line-height: 1.55;
}

.support-page li::before {
  content: "✓";
  position: absolute;
  top: 21px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
}

.support-page .meta {
  margin-top: 42px;
  padding: 24px;
  border: 1px solid var(--lavender-200);
  border-radius: 18px;
  background: var(--lavender-100);
  font-size: 0.85rem;
}

.privacy-page .wrap > header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 300px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(rgba(116, 88, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 88, 200, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  box-shadow: 0 28px 74px rgba(53, 39, 105, 0.14);
  isolation: isolate;
}

.privacy-page .wrap > header::after {
  content: "=";
  position: absolute;
  top: -0.38em;
  right: -0.04em;
  z-index: -1;
  color: rgba(116, 88, 200, 0.1);
  font-family: var(--mono);
  font-size: clamp(11rem, 28vw, 23rem);
  font-weight: 600;
  transform: rotate(-12deg);
}

.privacy-page h1 {
  max-width: 9ch;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.privacy-page .sub {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.mono {
  font-family: var(--mono);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--lavender-200);
  border-radius: 999px;
  color: var(--purple-deep);
  background: rgba(247, 244, 255, 0.9);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 174, 99, 0.12);
}

.privacy-page main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.privacy-page main > nav {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 254, 254, 0.94);
  box-shadow: 0 16px 44px rgba(53, 39, 105, 0.1);
}

.privacy-page main > nav h2 {
  margin-bottom: 16px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc {
  display: grid;
  gap: 3px;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.toc a:hover,
.toc a.is-active {
  color: var(--purple-deep);
  background: var(--lavender-100);
}

.privacy-page article {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 254, 254, 0.96);
  box-shadow: 0 20px 60px rgba(53, 39, 105, 0.1);
}

.privacy-page article section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.privacy-page article section:first-child {
  padding-top: 0;
  border-top: 0;
}

.privacy-page article section:last-child {
  padding-bottom: 0;
}

.privacy-page article h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.privacy-page article p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.privacy-page article p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--ink-soft);
}

.callout {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--lavender-200);
  border-left: 4px solid var(--purple);
  border-radius: 13px;
  background: var(--lavender-50);
}

.callout strong {
  color: var(--ink);
}

.privacy-page footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.print-note {
  display: none;
}

@media (max-width: 840px) {
  .privacy-page main {
    grid-template-columns: 1fr;
  }

  .privacy-page main > nav {
    position: static;
  }

  .toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 30px, 560px);
  }

  .back-link {
    margin-top: 14px;
  }

  .wrap {
    margin-top: 14px;
    margin-bottom: 34px;
  }

  .support-page .card,
  .privacy-page .wrap > header,
  .privacy-page article,
  .privacy-page main > nav {
    border-radius: 22px;
  }

  .support-page .card {
    padding: 34px 24px;
  }

  .support-page h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .support-page h1 + p {
    margin-bottom: 42px;
  }

  .support-page ul {
    grid-template-columns: 1fr;
  }

  .privacy-page .wrap > header {
    min-height: 280px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 24px;
  }

  .privacy-page h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .privacy-page main {
    gap: 14px;
    margin-top: 14px;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .privacy-page article {
    padding: 30px 24px;
  }

  .privacy-page article section {
    padding: 30px 0;
  }

  .privacy-page footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .back-link,
  .privacy-page main > nav {
    display: none;
  }

  .wrap {
    width: 100%;
    margin: 0;
  }

  .privacy-page .wrap > header,
  .privacy-page article {
    border: 0;
    box-shadow: none;
  }

  .privacy-page main {
    display: block;
  }

  .print-note {
    display: block;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}
