:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f3f5f3;
  color: #172019;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.card {
  width: min(100%, 620px);
  background: #ffffff;
  border: 1px solid #dfe5df;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(19, 38, 24, 0.08);
  padding: 28px;
}

.legalCard {
  width: min(100%, 760px);
}

.eyebrow {
  margin: 0 0 8px;
  color: #357a4a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 2.7rem);
  line-height: 1.05;
}

h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

p,
li {
  line-height: 1.6;
}

ul {
  padding-left: 22px;
}

a {
  color: #28633a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.panel {
  margin-top: 24px;
  padding-top: 4px;
  border-top: 1px solid #e4e8e4;
}

.providerButtons,
.actions {
  display: grid;
  gap: 10px;
}

button,
input {
  width: 100%;
  border-radius: 12px;
  font: inherit;
}

button {
  border: 0;
  background: #28633a;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 13px 16px;
}

button:hover:not(:disabled) {
  filter: brightness(0.95);
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.secondary {
  background: transparent;
  border: 1px solid #cbd4cc;
  color: #233027;
}

.dangerButton {
  background: #b3261e;
}

.danger {
  color: #a11f19;
  font-weight: 650;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
}

input {
  border: 1px solid #cbd4cc;
  background: #ffffff;
  color: #172019;
  padding: 12px;
}

form button {
  margin-top: 16px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 4px;
  color: #6c776e;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dfe5df;
}

.note {
  margin-top: 20px;
  color: #68726a;
  font-size: 0.92rem;
}

.legalMeta {
  margin-top: -8px;
}

.legalNav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e4e8e4;
}

.status {
  min-height: 1.5em;
  margin-top: 20px;
  font-weight: 650;
}

.status.error {
  color: #a11f19;
}

.hidden {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #0f1511;
    color: #eef5ef;
  }

  .card {
    background: #182019;
    border-color: #344138;
    box-shadow: none;
  }

  a {
    color: #8ed5a3;
  }

  .secondary {
    border-color: #536158;
    color: #eef5ef;
  }

  input {
    border-color: #536158;
    background: #101611;
    color: #eef5ef;
  }

  .panel,
  .legalNav,
  .divider::before,
  .divider::after {
    border-color: #344138;
    background-color: #344138;
  }

  .legalNav {
    background-color: transparent;
  }

  .note,
  .divider {
    color: #aab4ac;
  }

  .danger,
  .status.error {
    color: #ffb4ab;
  }
}
