@font-face {
  font-family: Gilroy;
  src: url("./assets/fonts/gilroy_regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url("./assets/fonts/gilroy_medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url("./assets/fonts/gilroy_semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: url("./assets/fonts/gilroy_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --blush: #fbf6fa;
  --ink: #222222;
  --hush: #5f5a5d;
  --line: #e0e0e0;
  --coral: #ff8886;
  --orchid: #ce38ff;
  --gradient: linear-gradient(135deg, #ff8886 0%, #ce38ff 100%);
  --radius: 18px;
  --wrap: 1120px;
  --read: 40rem;
  --header: 3.5rem;
  --space: clamp(1rem, 4.2vw, 1.75rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + var(--safe-top) + 0.75rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Gilroy, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #9a1cc4;
}

a:hover {
  color: #ce38ff;
}

:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
  color: #fff;
}

.wrap {
  width: min(100% - (var(--space) * 2), var(--wrap));
  margin-inline: auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.hairline {
  height: 3px;
  background: var(--gradient);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  min-height: var(--header);
  padding-block: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
}

.brand .name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nav {
  display: flex;
  flex: 1 1 16rem;
  align-items: center;
  justify-content: stretch;
  gap: 0.2rem;
}

.nav a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--hush);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--ink);
  background: var(--blush);
}

.hero {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 136, 134, 0.18), transparent 46%),
    radial-gradient(90% 70% at 100% 0%, rgba(206, 56, 255, 0.12), transparent 42%),
    var(--blush);
  padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.85rem, 7.2vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 12em;
}

.hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--hush);
  font-size: clamp(0.98rem, 3.4vw, 1.08rem);
  font-weight: 500;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.language-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  color: var(--hush);
  font-size: 0.9rem;
  font-weight: 600;
}

.language-control[hidden] {
  display: none;
}

.language-control select {
  max-width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--hush);
  font-size: 0.82rem;
  font-weight: 600;
}

.letters {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.letters a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.8rem;
  padding: 1rem 1rem;
  min-height: 4.75rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
}

.letters li:first-child a {
  border-top: 0;
}

.letters .kicker {
  grid-column: 1;
  color: var(--hush);
  font-size: 0.8rem;
  font-weight: 600;
}

.letters strong {
  grid-column: 1;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.letters .go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
}

.doc-page {
  padding: 1.15rem 0 3rem;
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.toc-desktop {
  display: none;
}

.toc-mobile {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blush);
  padding: 0.15rem 0.85rem;
}

.toc-mobile > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.toc-mobile > summary::-webkit-details-marker {
  display: none;
}

.toc-mobile > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-top: -0.2rem;
}

.toc-mobile[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.toc a {
  display: block;
  padding: 0.55rem 0;
  color: var(--hush);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-top: 1px solid rgba(224, 224, 224, 0.8);
}

.toc a:hover {
  color: var(--ink);
}

.prose {
  min-width: 0;
  max-width: var(--read);
}

.prose h2 {
  margin: 1.8rem 0 0.65rem;
  font-size: clamp(1.15rem, 4.4vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0.2rem;
}

.prose h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.02rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.prose p {
  margin: 0 0 0.85rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose strong {
  font-weight: 700;
}

.note {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: var(--blush);
  border-radius: 14px;
  color: var(--ink);
}

.mail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.mail span {
  color: var(--hush);
  font-size: 0.88rem;
  font-weight: 600;
}

.mail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  overflow-wrap: anywhere;
  text-align: center;
}

.mail a:hover {
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 calc(1.3rem + var(--safe-bottom));
  color: var(--hush);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--hush);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 719px) {
  :is(.privacy-page, .terms-page, .support-page) {
    --header: 0rem;
  }

  :is(.privacy-page, .terms-page, .support-page) .site-header,
  :is(.privacy-page, .terms-page, .support-page) .hairline {
    display: none;
  }

  :is(.privacy-page, .terms-page, .support-page) .hero {
    padding-top: calc(clamp(1.5rem, 5vw, 3.5rem) + var(--safe-top));
  }
}

@media (min-width: 720px) {
  .nav {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.25rem;
  }

  .nav a {
    flex: 0 0 auto;
    padding-inline: 0.9rem;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .letters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .letters li:nth-child(2) a {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .letters li:nth-child(n + 3) a {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .doc {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .toc-mobile {
    display: none;
  }

  .toc-desktop {
    display: block;
    position: sticky;
    top: calc(var(--header) + var(--safe-top) + 1rem);
    padding-right: 0.5rem;
  }

  .toc-desktop p {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hush);
  }

  .toc-desktop a {
    border-top: 0;
    padding: 0.38rem 0;
  }
}

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