*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f8f6;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Page header ── */
.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: #555;
  font-size: 15px;
}

/* ── Questionnaire ── */
.q-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.q-section h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0ee;
}

.question {
  margin-bottom: 28px;
}

.question:last-child {
  margin-bottom: 0;
}

.question.conditional {
  display: none;
}

.q-label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.required {
  color: #b91c1c;
  margin-left: 2px;
}

.q-help {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.options-inline {
  flex-direction: row;
  gap: 24px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.option-label input {
  accent-color: #1a1a1a;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.text-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-top: 8px;
}

.text-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.freetext-field {
  display: none;
  margin: 6px 0 4px 26px;
}

.freetext-input {
  width: 100%;
  max-width: 420px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
}

.freetext-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #1a1a1a;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ── Policy toolbar ── */
.policy-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

/* ── Policy document ── */
.policy {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 48px 56px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11pt;
  line-height: 1.75;
  color: #1a1a1a;
}

.policy-watermark {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #b91c1c;
  border: 2px solid #b91c1c;
  border-radius: 4px;
  padding: 6px 12px;
  margin-bottom: 28px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.policy-header {
  margin-bottom: 32px;
}

.policy-generator {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.policy-header h1 {
  font-size: 22pt;
  font-weight: bold;
  margin: 8px 0 12px;
}

.policy-status {
  font-size: 10pt;
  color: #6b7280;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.policy-meta {
  border-collapse: collapse;
  font-size: 10pt;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.policy-meta th {
  text-align: left;
  padding: 3px 20px 3px 0;
  color: #6b7280;
  font-weight: normal;
}

.policy-meta td {
  padding: 3px 0;
  font-weight: 500;
}

.policy hr {
  border: none;
  border-top: 2px solid #1a1a1a;
  margin: 24px 0;
}

.policy section {
  margin-bottom: 28px;
}

.policy h2 {
  font-size: 13pt;
  font-weight: bold;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e7eb;
}

.policy h3 {
  font-size: 11pt;
  font-weight: bold;
  margin: 18px 0 6px;
}

.policy p {
  margin-bottom: 10px;
}

.policy ul, .policy ol {
  margin: 8px 0 12px 24px;
}

.policy li {
  margin-bottom: 4px;
}

/* ── Acknowledgment block ── */
.ack-block {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ack-field {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-size: 10pt;
}

.ack-field span:first-child {
  white-space: nowrap;
  min-width: 130px;
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ack-line {
  flex: 1;
  border-bottom: 1px solid #1a1a1a;
  height: 22px;
}

/* ── Policy footer ── */
.policy-footer {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  font-size: 9pt;
  color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.policy-footer p {
  margin-bottom: 4px;
}
