:root {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --border: rgba(142, 170, 83, 0.18);
  --text: #16291f;
  --muted: #617466;
  --brand: #8eaa53;
  --brand-deep: #769144;
  --shadow: 0 18px 40px rgba(20, 44, 30, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(142, 170, 83, 0.13), transparent 34%),
    linear-gradient(180deg, #fafcf8 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.wrap {
  width: min(100%, 860px);
  margin: 0 auto;
}

.home-wrap {
  width: min(100%, 520px);
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.home-card {
  text-align: center;
  padding: 38px 24px 24px;
}

.home-logo {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
  margin: 0 auto 18px;
}

.home-title {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.inline-link {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.button-stack {
  display: grid;
  gap: 12px;
}

.button {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 120ms ease;
}

.button-primary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.button:hover,
.button:focus-visible {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.button:active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
  transform: translateY(1px);
}

.legal-card {
  padding: 24px 22px 26px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.legal-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  flex: 0 0 auto;
}

.legal-brand-copy small {
  display: none;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal-brand-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.legal-content h2 {
  margin: 28px 0 12px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-content .effective-date {
  margin-top: 14px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 640px) {
  .shell {
    padding: 18px 12px 40px;
  }

  .home-card,
  .legal-card {
    border-radius: 24px;
  }

  .home-card {
    padding: 30px 18px 18px;
  }

  .legal-card {
    padding: 20px 16px 22px;
  }

  .home-logo {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    margin-bottom: 16px;
  }

  .legal-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}
