:root {
  color-scheme: light;
  --background: #f4f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #607086;
  --accent: #126b5f;
  --accent-strong: #0d574d;
  --ring: rgba(18, 107, 95, 0.26);
  --border: #dbe4ef;
  --success: #0f7a49;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(18, 107, 95, 0.12), transparent 30rem),
    linear-gradient(135deg, #f8fbff 0%, var(--background) 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.consent-panel {
  width: min(100%, 520px);
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
  text-align: center;
}

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

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.04;
}

.message {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.consent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.consent-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(18, 107, 95, 0.2);
}

.consent-button:focus-visible {
  outline: 4px solid var(--ring);
  outline-offset: 3px;
}

.consent-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.status {
  min-height: 24px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status.is-success {
  color: var(--success);
}

.status.is-error {
  color: var(--error);
}

.consent-info-link {
  position: fixed;
  right: 20px;
  bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.consent-info-link:hover,
.consent-info-link:focus-visible {
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(18, 107, 95, 0.08);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent-strong);
  background: rgba(18, 107, 95, 0.12);
}

.consent-info .message {
  margin-bottom: 18px;
}

@media (max-width: 520px) {
  .consent-panel {
    padding: 30px 22px;
  }

  .consent-info-link {
    right: 14px;
    bottom: 12px;
    font-size: 0.84rem;
  }
}
