:root {
  --green: #2b471e;
  --green-deep: #1a2e12;
  --green-mid: #3d5c2e;
  --gold: #b8935a;
  --gold-soft: #d4b87a;
  --sand: #e8efe3;
  --ink: #2a2f28;
  --muted: #5c6658;
  --paper: #f6f9f4;
  --white: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(184, 147, 90, 0.22), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(61, 92, 46, 0.28), transparent 50%),
    linear-gradient(165deg, #dfe8d8 0%, var(--paper) 42%, #eef3ea 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(43, 71, 30, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 71, 30, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.7;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* —— Landing —— */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0 3rem;
}

.brand {
  text-align: center;
  animation: rise 0.9s ease both;
}

.brand__logo {
  width: min(200px, 52vw);
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.28));
}

.brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}

.brand__tag {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}

.store {
  margin-top: 2.75rem;
  text-align: center;
  animation: rise 0.9s ease 0.15s both;
}

.store__label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
}

.qr {
  width: min(220px, 58vw);
  margin: 0 auto;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid rgba(43, 71, 30, 0.12);
  box-shadow: 0 18px 40px rgba(26, 46, 18, 0.12);
  animation: softPulse 3.6s ease-in-out infinite;
}

.qr img {
  width: 100%;
  image-rendering: pixelated;
}

.qr__note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: rise 0.9s ease 0.28s both;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  padding: 0.85rem 1.35rem;
  border: 1.5px solid var(--green);
  background: transparent;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--solid {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn--solid:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  animation: rise 0.9s ease 0.4s both;
}

.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Legal pages —— */
.legal-header {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid rgba(43, 71, 30, 0.12);
  margin-bottom: 2rem;
}

.legal-header__back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--green-mid);
}

.legal-header__back:hover {
  color: var(--green-deep);
}

.legal-header__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.legal-header__brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.legal-header__brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-deep);
}

.legal {
  padding-bottom: 4rem;
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

.legal .meta {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.legal .subtitle {
  margin: 0 0 1.25rem;
  white-space: pre-line;
  color: var(--muted);
  line-height: 1.5;
}

.legal .summary {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  background: rgba(43, 71, 30, 0.06);
  border-left: 3px solid var(--gold);
  line-height: 1.55;
}

.legal section {
  margin-bottom: 1.75rem;
}

.legal h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green);
  font-weight: 600;
}

.legal p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: var(--ink);
}

.legal ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
}

.legal th,
.legal td {
  border: 1px solid rgba(43, 71, 30, 0.15);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(43, 71, 30, 0.08);
  font-weight: 600;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 18px 40px rgba(26, 46, 18, 0.12);
  }
  50% {
    box-shadow: 0 22px 48px rgba(184, 147, 90, 0.22);
  }
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
