:root {
  color-scheme: light;
  background: #aaada3;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #aaada3;
  color: #20211f;
}

.landingpage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100%;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.wordmark {
  display: block;
  width: clamp(230px, 30vw, 470px);
  max-width: 80vw;
  height: auto;
}

.legal-link {
  position: absolute;
  top: max(28px, calc(env(safe-area-inset-top) + 18px));
  left: 50%;
  display: grid;
  width: 240px;
  height: 48px;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 24px;
  -webkit-tap-highlight-color: transparent;
}

.legal-link img {
  display: block;
  width: clamp(118px, 10vw, 158px);
  height: auto;
}

.email-link {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.arrow {
  display: block;
  width: clamp(18px, 1.8vw, 28px);
  height: auto;
  transition: transform 180ms ease;
}

.email-link:hover .arrow,
.email-link:focus-visible .arrow {
  transform: translateY(4px);
}

.email-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: -10px;
}

.legal-link:focus-visible,
.close-link:focus-visible {
  outline: 2px solid #20211f;
  outline-offset: 3px;
}

.legal-page {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.close-link {
  position: fixed;
  z-index: 2;
  top: max(18px, calc(env(safe-area-inset-top) + 8px));
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #aaada3;
  -webkit-tap-highlight-color: transparent;
}

.close-link img {
  display: block;
  width: 12px;
  height: 12px;
}

.legal-content {
  width: min(540px, calc(100% - 56px));
  margin: 0 auto;
  padding: 120px 0 90px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.legal-content section + section {
  margin-top: 78px;
}

.legal-content h1 {
  margin: 0 0 30px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.legal-content h2 {
  margin: 28px 0 10px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
}

.legal-content p,
.legal-content address {
  margin: 0 0 14px;
  font-size: 10px;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: .025em;
}

.legal-content a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content .contact {
  margin-top: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .wordmark {
    width: min(72vw, 300px);
  }

  .email-link {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .legal-link {
    top: max(18px, calc(env(safe-area-inset-top) + 8px));
    width: 210px;
  }

  .legal-link img {
    width: 118px;
  }

  .legal-content {
    width: calc(100% - 42px);
    padding-top: 94px;
    padding-bottom: 64px;
    text-align: left;
  }

  .legal-content section + section {
    margin-top: 60px;
  }

  .legal-content h1 {
    margin-bottom: 26px;
    font-size: 10px;
  }

  .legal-content h2 {
    margin-top: 28px;
    font-size: 10px;
  }

  .legal-content p,
  .legal-content address {
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow {
    transition: none;
  }
}
