:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #171717;
  color: #f8f8f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.landing-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-card {
  width: min(944px, calc(100% - 48px));
  min-height: min(1120px, calc(100svh - 190px));
  margin-top: 56px;
  padding: 88px 66px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #232323;
  border-radius: 56px;
}

.app-icon {
  display: block;
  width: 270px;
  height: 270px;
  border-radius: 56px;
  object-fit: cover;
}

.landing-card h1 {
  margin: 138px 0 0;
  font-size: 64px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -1.5px;
  text-align: center;
}

.divider {
  width: 100%;
  margin: 70px 0 72px;
  border: 0;
  border-top: 1px solid #3b3b3b;
}

.policy-button {
  width: 100%;
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: #4385eb;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.policy-button:hover {
  background: #5794f0;
}

.policy-button:active {
  transform: translateY(1px);
}

.policy-button:focus-visible,
.back-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.site-footer {
  margin: 90px 20px 28px;
  color: #aaa;
  font-size: 26px;
  line-height: 1.3;
  text-align: center;
}

.document-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 56px 24px 0;
}

.document-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 70px 68px;
  background: #232323;
  border-radius: 40px;
}

.back-link {
  color: #91b9fb;
  font-size: 18px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.document-card h1 {
  margin: 34px 0 12px;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.15;
}

.document-card .policy-meta {
  margin-bottom: 48px;
  color: #aaa;
  font-size: 16px;
}

.document-card section + section {
  margin-top: 42px;
}

.document-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.3;
}

.document-card p,
.document-card li {
  margin: 0 0 16px;
  color: #dedede;
  font-size: 18px;
  line-height: 1.7;
}

.document-card ul {
  margin: 0 0 16px;
  padding-left: 26px;
}

.document-card p a {
  color: #91b9fb;
  text-underline-offset: 3px;
}

.document-page .site-footer {
  margin: 56px 20px 28px;
  font-size: 18px;
}

@media (max-width: 700px) {
  .landing-card {
    width: calc(100% - 28px);
    min-height: calc(100svh - 112px);
    margin-top: 16px;
    padding: 42px 24px 48px;
    border-radius: 32px;
  }

  .app-icon {
    width: min(210px, 50vw);
    height: auto;
    aspect-ratio: 1;
    border-radius: 42px;
  }

  .landing-card h1 {
    margin-top: 74px;
    font-size: clamp(34px, 9vw, 48px);
    letter-spacing: -0.8px;
  }

  .divider {
    margin: 54px 0;
  }

  .policy-button {
    min-height: 76px;
    border-radius: 22px;
    font-size: 21px;
  }

  .site-footer {
    margin: 28px 20px 24px;
    font-size: 16px;
  }

  .document-page {
    padding: 16px 14px 0;
  }

  .document-card {
    padding: 36px 24px 48px;
    border-radius: 30px;
  }

  .document-card h1 {
    margin: 30px 0 34px;
  }

  .document-card h2 {
    font-size: 22px;
  }

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

@media (min-width: 701px) and (max-height: 850px) {
  .landing-card {
    min-height: 650px;
    padding-top: 58px;
  }

  .app-icon {
    width: 200px;
    height: 200px;
    border-radius: 42px;
  }

  .landing-card h1 {
    margin-top: 60px;
    font-size: 48px;
  }

  .divider {
    margin: 42px 0 50px;
  }

  .policy-button {
    min-height: 80px;
    font-size: 24px;
  }

  .site-footer {
    margin-top: 40px;
  }
}
