:root {
  --bg: #ffffff;
  --text: #1e2a3a;
  --muted: #6b7280;
  --accent: #e3000b;
  --max: 680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 48px 24px 64px;
}

.hero,
.legal-block,
.site-footer {
  width: 100%;
  max-width: var(--max);
}

.hero {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ececec;
}

.hero__kicker {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.hero__tagline {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
}

.legal-block {
  margin-bottom: 36px;
}

.legal-block h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.legal-block__updated {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.legal-block p {
  margin: 0 0 16px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block--support {
  padding-top: 8px;
}

.support-email {
  margin: 12px 0 20px;
}

.support-email a {
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
}

.support-email a:hover,
.support-email a:focus {
  text-decoration: underline;
}

.site-footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (min-width: 768px) {
  .page {
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .hero {
    margin-bottom: 48px;
  }

  .legal-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #f3f4f6;
    --muted: #9ca3af;
  }

  body {
    background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  }

  .hero {
    border-bottom-color: #2a2a2a;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .support-email a {
    color: #000;
    text-decoration: underline;
  }
}
