@font-face {
  font-family: 'SF Pro Rounded';
  src: url('./assets/fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('./assets/fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #faf1ee;
  --surface: #ffffff;
  --surface-secondary: #fff6f5;
  --primary: #e55a90;
  --primary-pressed: #c63f73;
  --accent-light: #ffdfeb;
  --lilac-light: #f2ecfc;
  --text: #302025;
  --text-secondary: #8c707c;
  --border: #fcdad6;
  --border-light: #fdeced;
  --shadow: rgba(236, 160, 178, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, var(--accent-light), transparent 27rem),
    radial-gradient(circle at 82% 18%, var(--lilac-light), transparent 24rem),
    var(--background);
  font-family: 'SF Pro Rounded', ui-rounded, 'SF Pro Display', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--primary-pressed);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.home {
  display: grid;
  grid-template-rows: 1fr auto;
}

.home-shell {
  display: flex;
  min-height: calc(100vh - 72px);
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 56px 24px 32px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.app-icon {
  width: clamp(92px, 18vw, 132px);
  height: clamp(92px, 18vw, 132px);
  margin-bottom: 22px;
  border-radius: 28px;
  box-shadow: 0 18px 44px var(--shadow);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.04;
  font-weight: 700;
}

.app-store-badge {
  display: inline-flex;
  width: 180px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
}

.app-store-badge img {
  display: block;
  width: 180px;
  height: auto;
}

.site-footer {
  display: flex;
  min-height: 72px;
  padding: 20px 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.apple-legal {
  width: 100%;
  max-width: 620px;
  margin: 2px auto 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.78;
}

.legal-page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 32px 18px 64px;
}

.back-link {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--primary-pressed);
  font-size: 15px;
  font-weight: 700;
}

.legal-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px var(--shadow);
}

.legal-card .updated {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.legal-card h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 6vw, 54px);
}

.legal-card h2 {
  margin: 30px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.legal-card p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 520px) {
  .home-shell {
    padding-top: 40px;
  }

  .app-icon {
    border-radius: 22px;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .legal-card {
    border-radius: 18px;
  }
}
