:root {
  color-scheme: light;
  --ground: #f1f0f4;
  --surface: #fff;
  --ink: #191521;
  --ink-soft: #524c60;
  --muted: #756e84;
  --line: #e5e2ed;
  --accent: #6a38c8;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", ui-sans-serif,
    system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #100e16;
    --surface: #191621;
    --ink: #edebf3;
    --ink-soft: #b4aec4;
    --muted: #938ca4;
    --line: #2a2537;
    --accent: #c1a4f5;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.legal-wrap {
  width: min(760px, 90vw);
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
}

header .legal-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font: 600 22px/1 var(--serif);
  text-decoration: none;
}

.back { color: var(--ink-soft); font-size: 15px; }

main {
  margin-block: clamp(48px, 8vw, 88px);
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

h1, h2 { font-family: var(--serif); line-height: 1.15; }
h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 7vw, 56px);
  overflow-wrap: anywhere;
  hyphens: auto;
}
h2 { margin: 36px 0 10px; font-size: 24px; }
h3 { margin: 26px 0 8px; font-size: 19px; line-height: 1.3; }
p { margin: 0 0 16px; }
address { font-style: normal; }
.intro { color: var(--ink-soft); }
.meta { color: var(--muted); font-size: 14px; }
.download-checksum { overflow-wrap: anywhere; font-size: 13px; }

ul, ol { padding-left: 1.35rem; }
li { margin-block: 7px; }

.draft-warning {
  margin: 0 0 30px;
  padding: 16px 18px;
  border: 2px solid #a35d00;
  border-radius: 12px;
  background: color-mix(in srgb, #e58a00 13%, var(--surface));
  color: var(--ink);
  font-weight: 650;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 34px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.legal-nav li { margin: 0; }

.legal-card {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ground);
}

.legal-card > :last-child { margin-bottom: 0; }

.button-disabled {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: .58;
  cursor: not-allowed;
  font-weight: 650;
}

.withdrawal-form {
  position: relative;
  display: grid;
  gap: 9px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ground);
}

.withdrawal-form label { margin-top: 8px; font-weight: 650; }
.withdrawal-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.withdrawal-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.withdrawal-form small { color: var(--muted); }
.withdrawal-statement { margin: 14px 0 4px; }
.withdrawal-form button {
  justify-self: start;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--ground);
  font: inherit;
  font-weight: 650;
}
.withdrawal-form button:disabled { cursor: not-allowed; opacity: .58; }
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-line {
  display: block;
  min-height: 1.5rem;
  margin-top: 4px;
  border-bottom: 1px solid var(--muted);
}

.status-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 25px;
  font-weight: 700;
}

.status-mark.success {
  background: color-mix(in srgb, #2d9a62 13%, transparent);
  color: #278655;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ground);
  color: var(--ink-soft);
}

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

.action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--ground);
  font-weight: 600;
  text-decoration: none;
}

.action.primary { background: var(--ink); color: var(--ground); }
.action:hover { border-color: var(--muted); }
.action.disabled { cursor: not-allowed; opacity: .58; }
.action.disabled:hover { border-color: var(--line); }

.facts {
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.facts li { margin-block: 8px; }

.steps { padding-left: 1.35rem; }
.steps li { margin-block: 12px; padding-left: 5px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .9em;
  overflow-wrap: anywhere;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding-block: 26px;
}
