:root {
  color-scheme: light;
  --ink: #22211f;
  --paper: #f4efe5;
  --paper-deep: #e8dfd0;
  --violet: #634a85;
  --green: #087b50;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  border-bottom: 1px solid rgba(34, 33, 31, 0.18);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 24px 20px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.text-link {
  font-size: 14px;
  text-underline-offset: 4px;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 24px;
}

.intro {
  min-height: 62vh;
  padding: 92px 0 70px;
}

.eyebrow,
.app-label,
.section-number {
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.04;
  margin: 24px 0 32px;
  max-width: 860px;
}

.intro-copy {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  max-width: 540px;
}

.app-section {
  border-top: 1px solid rgba(34, 33, 31, 0.28);
  padding: 34px 0 72px;
}

.section-heading {
  align-items: baseline;
  display: flex;
  gap: 20px;
}

h2 {
  font-size: 34px;
  margin: 0;
}

.app-row {
  align-items: center;
  border-bottom: 1px solid rgba(34, 33, 31, 0.2);
  display: grid;
  gap: 28px;
  grid-template-columns: 92px 1fr auto;
  margin-top: 36px;
  padding: 0 0 32px;
}

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

.app-copy h3 {
  font-size: 30px;
  margin: 6px 0 8px;
}

.app-copy p:last-child {
  line-height: 1.6;
  margin: 0;
}

.store-link {
  border-bottom: 2px solid var(--green);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  padding: 8px 0;
  text-decoration: none;
}

footer {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  padding: 30px max(24px, calc((100vw - 1072px) / 2));
}

footer p {
  margin: 0;
}

.legal-page {
  max-width: 820px;
  padding-bottom: 88px;
  padding-top: 72px;
}

.legal-page > h1 {
  font-size: 56px;
  margin: 18px 0 12px;
}

.legal-meta,
.legal-lead {
  color: rgba(34, 33, 31, 0.72);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 48px;
}

.legal-page section {
  border-top: 1px solid rgba(34, 33, 31, 0.2);
  padding: 28px 0 12px;
}

.legal-page h2 {
  font-size: 25px;
  margin-bottom: 18px;
}

.legal-page h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.legal-page p {
  line-height: 1.75;
}

.legal-page hr {
  border: 0;
  border-top: 2px solid var(--violet);
  margin: 42px 0 0;
}

.support-action {
  background: var(--paper-deep);
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.support-email {
  color: var(--green);
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  text-underline-offset: 5px;
}

@media (max-width: 640px) {
  .intro {
    min-height: 56vh;
    padding: 70px 0 50px;
  }

  h1 {
    font-size: 48px;
  }

  .legal-page {
    padding-top: 52px;
  }

  .legal-page > h1 {
    font-size: 42px;
  }

  .app-row {
    align-items: start;
    gap: 18px;
    grid-template-columns: 72px 1fr;
  }

  .app-icon {
    height: 72px;
    width: 72px;
  }

  .app-copy h3 {
    font-size: 24px;
  }

  .store-link {
    grid-column: 2;
    justify-self: start;
  }
}
