:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #dfe7f1;
  --accent: #2f80ed;
  --accent-strong: #1f6fd1;
  --shadow: 0 18px 42px rgba(24, 48, 83, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
main {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #72b7ff);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(47, 128, 237, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding: 56px 0 46px;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 10vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text,
.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.22);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 12px 0 70px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.section-grid .card {
  padding: 22px;
}

.card p:last-child,
.site-footer p:last-child {
  margin-bottom: 0;
}

.card p,
.support-card li {
  color: var(--muted);
}

.page {
  padding: 34px 0 70px;
}

.page-hero {
  padding: 42px 0 26px;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 9vw, 4.5rem);
}

.policy,
.support-card {
  max-width: 840px;
  padding: 24px;
}

.policy h2 {
  margin-top: 30px;
}

.policy h2:first-child,
.support-card h2:first-child {
  margin-top: 0;
}

.policy p,
.support-card p {
  margin-bottom: 12px;
}

.support-card ul {
  margin: 0 0 26px;
  padding-left: 1.25rem;
}

.useful-link {
  padding-top: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 56px, 1040px);
  }

  .site-header {
    padding-top: 28px;
  }

  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .policy,
  .support-card {
    padding: 34px;
  }
}

@media (min-width: 980px) {
  .section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
