:root {
  --paper: #ffffff;
  --ink: #162033;
  --muted: #5b6678;
  --rule: #d8dee8;
  --accent: #213a67;
  --bg: #eef2f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.packet-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.packet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.packet-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

.paper {
  background: var(--paper);
  box-shadow: 0 25px 80px rgba(17, 28, 45, 0.12);
  border: 1px solid rgba(22, 32, 51, 0.08);
  padding: 1in 0.9in;
}

.doc-title,
.doc-subtitle,
.center-block,
.signature-line,
.certificate-line {
  text-align: center;
}

.doc-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-subtitle {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-note {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}

h2 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1rem;
}

p {
  margin: 0.55rem 0;
}

ol,
ul {
  margin: 0.4rem 0 0.8rem 1.2rem;
}

li + li {
  margin-top: 0.3rem;
}

.address-block,
.signature-block {
  margin-top: 1.4rem;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.2rem;
}

.signature-rule {
  margin-top: 3rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.45rem;
}

.small-caps {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-break {
  page-break-before: always;
  break-before: page;
}

.fill {
  display: inline-block;
  min-width: 180px;
  border-bottom: 1px solid var(--ink);
  transform: translateY(-2px);
}

.disclosure-lines {
  margin-top: 0.8rem;
}

.disclosure-lines div {
  border-bottom: 1px solid var(--ink);
  min-height: 1.2rem;
  margin-bottom: 0.6rem;
}

.warning-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: #f8fafc;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}

@media print {
  body {
    background: #fff;
  }

  .packet-shell {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .packet-actions {
    display: none;
  }

  .paper {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .paper {
    padding: 1.35rem;
  }

  .signature-grid {
    grid-template-columns: 1fr;
  }
}
