:root {
  color-scheme: light;
  --background: #fbf8ff;
  --surface: #ffffff;
  --primary: #5d2a8a;
  --accent: #eee5f7;
  --text: #2c173f;
  --muted: #655773;
  --border: #ddd0e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.card {
  width: min(100%, 38rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 0 1rem 3rem rgb(93 42 138 / 10%);
}

.brand {
  margin: 0 0 1.5rem;
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .02em;
}

h1, h2 { margin: 0 0 .75rem; color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
h2 { font-size: 1.25rem; }
p { margin: 0; }

a { color: var(--primary); text-underline-offset: .18em; }

.legal-shell { align-items: start; }

.legal-card { width: min(100%, 52rem); }

.legal-card h2,
.legal-card h3 { margin-top: 1.75rem; }

.legal-card h3 { font-size: 1.1rem; }

.legal-card p + p { margin-top: 1rem; }

.legal-card li + li { margin-top: .65rem; }

.lead { color: var(--muted); font-size: 1.05rem; }

.action-row { margin-top: 1.5rem !important; }

.primary-action {
  display: inline-block;
  border-radius: .75rem;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-action:focus-visible { outline: .2rem solid var(--text); outline-offset: .2rem; }

.divider {
  height: 1px;
  margin: 1.75rem 0;
  background: var(--accent);
}

.privacy {
  margin-top: 2rem;
  border-radius: .75rem;
  background: var(--accent);
  color: var(--muted);
  padding: 1rem;
  font-size: .9rem;
}

.downloads {
  margin-top: 2rem;
}

.downloads h2 span {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.download-actions {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.download-action {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--primary);
  border-radius: .75rem;
  background: var(--primary);
  color: var(--surface);
  padding: .75rem 1rem;
  text-decoration: none;
}

.download-action:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.download-action span {
  font-size: .85rem;
}

.download-action.unavailable {
  border-color: var(--border);
  background: var(--accent);
  color: var(--muted);
}

@media (max-width: 420px) {
  .download-action {
    align-items: flex-start;
    flex-direction: column;
    gap: .125rem;
  }
}

@media (max-width: 360px) {
  .shell { padding: .75rem; }
  .card { border-radius: 1rem; padding: 1.25rem; }
}
