:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f8f8;
  color: #111;
  --green: #176b4d;
  --green-soft: #e9fff5;
  --border: #e3e8e8;
  --muted: #657075;
  --danger: #d53232;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, #e8fff4 0, transparent 34rem),
    #f6f8f8;
}

a { color: inherit; }

.shell {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}

.brand {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: #111;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -1px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #4d595e;
  font-size: 13px;
  font-weight: 750;
}

.nav a:hover,
.nav a.active {
  background: #fff;
  color: #111;
}

.hero {
  padding: 18px 0 10px;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

h1 {
  margin: 13px 0 12px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.resource-card {
  display: block;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.045);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(17, 17, 17, 0.075);
}

.resource-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.resource-card.danger .resource-icon {
  background: #fff0f0;
  color: var(--danger);
}

.resource-title {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 900;
}

.resource-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.document {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(17, 17, 17, 0.05);
}

.version {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.document-intro {
  margin-top: 18px;
  color: #4f5a5f;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

.legal-section {
  margin-top: 32px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.legal-section p {
  margin: 9px 0 0;
  color: #5d686d;
  font-size: 14px;
  line-height: 1.72;
}

.draft-note {
  margin-top: 34px;
  padding: 16px;
  border-radius: 17px;
  background: #fff8e8;
  color: #6b5a2b;
  font-size: 13px;
  line-height: 1.6;
}

.form-card {
  max-width: 680px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(17, 17, 17, 0.06);
}

.warning {
  margin-bottom: 18px;
  border: 1px solid #ffd2d2;
  background: #fff3f3;
  border-radius: 16px;
  padding: 14px 16px;
  color: #8f2424;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}

label {
  display: block;
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 52px;
  border: 1px solid #ccd4d6;
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
  outline: none;
}

input:focus {
  border-color: #1f8f65;
  box-shadow: 0 0 0 3px rgba(31, 143, 101, 0.12);
}

button {
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  border: 0;
  border-radius: 16px;
  background: var(--danger);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:hover { filter: brightness(0.96); }
button:disabled { cursor: wait; opacity: 0.62; }

.small {
  margin: 15px 0 0;
  color: #788287;
  font-size: 12px;
  line-height: 1.55;
}

.message {
  display: none;
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.message.error {
  display: block;
  border: 1px solid #ffd2d2;
  background: #fff3f3;
  color: #a22b2b;
}

.message.success {
  display: block;
  border: 1px solid #b9efd8;
  background: #edfff7;
  color: #176b4d;
}

.success-panel { display: none; }
.success-panel.visible { display: block; }
.form-panel.hidden { display: none; }

.footer {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: #8b959a;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .shell { padding-top: 20px; }
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .nav { width: 100%; }
  .nav a { padding-left: 0; padding-right: 14px; }
  .grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; }
  .document { padding: 20px; }
}


.legal-list {
  margin: 24px 0 0;
}

.legal-list dt {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 900;
  color: #111;
}

.legal-list dd {
  margin: 5px 0 0;
  color: #5d686d;
  font-size: 14px;
  line-height: 1.7;
}

.inline-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
