:root {
  color-scheme: light;
  --bg: #f3f2ef;
  --surface: #fffefc;
  --surface-2: #edece8;
  --text: #131210;
  --muted: #5b5c57;
  --line: #cfccc4;
  --outline: #83806f;
  --hairline: #e7e5df;
  --brand: #4b45e8;
  --brand-strong: #3a34c9;
  --brand-soft: #ecebff;
  --on-brand: #ffffff;
  --success-text: #0e7a55;
  --success-soft: #e7f5ee;
  --focus: rgba(75, 69, 232, 0.26);
  --radius-card: 22px;
  --radius-inner: 14px;
  --radius-control: 12px;
  --radius-pill: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
}

a {
  color: var(--brand);
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border: 1px solid var(--outline);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--hairline);
  background: rgba(243, 242, 239, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1080px, calc(100% - 48px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  line-height: 1;
}

.brand-name {
  display: grid;
  gap: 2px;
}

.brand-name span:first-child {
  font-size: 15px;
  line-height: 1;
}

.brand-name span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

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

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.language-switch {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  padding: 3px;
}

.language-switch button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  padding: 0 10px;
}

.language-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--on-brand);
}

.page {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 64px;
}

.hero {
  max-width: 820px;
  padding: 48px 0 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.document h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.lead {
  max-width: 720px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin-top: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--text);
  font-weight: 760;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.button.secondary {
  background: var(--surface);
}

.trust-line,
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.trust-line li,
.pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 0 12px;
}

.pill.strong {
  border-color: transparent;
  background: var(--brand-soft);
  color: var(--brand);
}

.document {
  width: min(1080px, calc(100% - 48px));
  padding-top: 58px;
}

.doc-hero {
  max-width: none;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--hairline);
}

.doc-hero h1 {
  max-width: 760px;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 48px;
  align-items: start;
}

.support-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.document-content {
  max-width: 760px;
}

.section {
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}

.section:first-child {
  border-top: 0;
}

h2 {
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.28;
}

.section h2,
.section h3 {
  margin-bottom: 10px;
}

p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

p + p {
  margin-top: 12px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.side-rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  align-self: start;
}

.rail-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.toc {
  display: grid;
  gap: 8px;
}

.toc a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 0 12px;
  text-decoration: none;
}

.toc a:first-child {
  border-color: transparent;
  background: var(--brand-soft);
  color: var(--brand);
}

.contact-card,
.help-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--surface);
  padding: 16px;
}

.contact-card b,
.help-tile b {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
}

.contact-card span,
.help-tile span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.help-start {
  display: grid;
  gap: 12px;
}

.mobile-only {
  display: none;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--surface);
}

summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.32;
  list-style: none;
  padding: 12px 18px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--outline);
  border-radius: 50%;
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

.faq-body {
  border-top: 1px solid var(--hairline);
  padding: 16px 18px 18px;
}

.footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 0 34px;
}

.footer-inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.lang-block[hidden] {
  display: none;
}

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

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

@media (max-width: 920px) {
  .document-layout,
  .support-layout {
    display: block;
  }

  .document-content {
    max-width: none;
  }

  .side-rail {
    display: none;
  }

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

  .mobile-only {
    display: block;
    margin: 20px 0 0;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page,
  .document,
  .footer-inner {
    width: min(100% - 32px, 1080px);
  }

  .header-inner {
    min-height: 64px;
    gap: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name span:last-child {
    display: none;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    display: none;
  }

  .language-switch button {
    min-width: 36px;
    padding: 0 8px;
  }

  .page {
    padding-top: 44px;
  }

  .document {
    padding-top: 30px;
  }

  .hero {
    padding-top: 34px;
  }

  h1,
  .document h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 18px;
  }

  .actions .button,
  .trust-line li {
    width: 100%;
  }

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

  .toc a {
    min-height: 38px;
    font-size: 13px;
    padding: 0 10px;
  }

  .section {
    padding: 24px 0;
  }

  h2 {
    font-size: 22px;
  }

  p,
  li {
    font-size: 16px;
  }

  summary {
    min-height: 60px;
    font-size: 16px;
    padding: 12px 14px;
  }

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