:root {
  color-scheme: light;
  --background: #f6f5f1;
  --surface: #ffffff;
  --text: #151515;
  --muted: #66645f;
  --border: #dedbd1;
  --accent: #135bec;
  --accent-dark: #0f46b4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.hero {
  margin-bottom: 32px;
}

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

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.summary {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.list {
  display: grid;
  gap: 12px;
}

.agreement-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.agreement-link small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.agreement-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  align-items: start;
}

.agreement,
.approval-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.agreement {
  padding: clamp(22px, 4vw, 44px);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.meta {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfaf7;
}

.meta div {
  display: grid;
  gap: 3px;
}

.meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meta dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.terms {
  display: grid;
  gap: 20px;
}

.terms section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.terms h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.terms p {
  margin: 0 0 10px;
}

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

.inline-preview {
  border-radius: 4px;
  background: #edf3ff;
  color: #0f46b4;
  padding: 1px 5px;
  font-weight: 700;
}

.approval-card {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.approval-card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

form,
label {
  display: grid;
  gap: 8px;
}

form {
  gap: 14px;
}

label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}

input {
  min-height: 44px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(19 91 236 / 14%);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}

.check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--accent-dark);
}

.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  h1 {
    font-size: 2.55rem;
  }

  .agreement-page {
    grid-template-columns: 1fr;
  }

  .approval-card {
    position: static;
  }
}
