:root {
  color-scheme: dark;
  --bg: #0a0a0a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: url("/bg-texture.png");
  background-repeat: repeat;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4.5rem;
  color: #f2f4f7;
  font: 18px/1.5 Georgia, "Times New Roman", serif;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(calc(1024px * 2 / 3), calc((100% - 2rem) * 2 / 3));
}

p {
  margin: 1.35rem 0 0;
  text-align: center;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c5d0dc;
}

.logo-frame {
  width: 100%;
  aspect-ratio: 1024 / 320;
  border: 2px solid #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-frame img {
  display: block;
  width: 100%;
  height: auto;
  flex: none;
  transform: translateY(6px);
}

.stores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stores img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}

a.android-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  width: 148px;
  padding: 0 10px;
  border: 1px solid #a3a3a3;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

a.privacy {
  margin-top: 1.15rem;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #c5d0dc;
  text-decoration: none;
}

a.privacy:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  body {
    padding: 2.25rem 1rem 2rem;
  }

  main {
    width: 100%;
  }

  p {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    line-height: 1.55;
    text-wrap: balance;
  }

  .logo-frame {
    border-radius: 12px;
  }

  .stores {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .stores img,
  a.android-download {
    height: 40px;
  }

  a.android-download {
    width: 134px;
    font-size: 10px;
  }
}

body.legal {
  align-items: center;
  padding: 3rem 1.25rem 4rem;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e6ebf2;
}

body.legal main {
  align-items: stretch;
  width: min(40rem, 100%);
}

body.legal h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.legal h2 {
  margin: 2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

body.legal p,
body.legal li {
  margin: 0.75rem 0 0;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.6;
  color: #d5dde6;
}

body.legal .dated {
  margin-top: 0.35rem;
  color: #9aa6b4;
}

body.legal a {
  color: #9ec4ef;
}

body.card {
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e6ebf2;
}

body.card main {
  align-items: stretch;
  width: min(40rem, 100%);
}

body.card .logo-frame {
  margin-bottom: 1.5rem;
}

body.card .install-note {
  margin-top: 2.75rem;
}

body.card .install-steps {
  margin: 0.75rem 0 0;
  padding-left: 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #d5dde6;
}

body.card .install-steps li + li {
  margin-top: 0.35rem;
}

body.card .stores {
  margin-top: 2.75rem;
}

body.card h1 {
  margin: 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
}

body.card p {
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.6;
  color: #d5dde6;
}
