
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --paper: #fffefa;
  --cream: #f6f2e9;
  --ink: #26231e;
  --gold: #a88a58;
  --muted: #827c71;
  --line: #e7e0d4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: #eae6de;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.85;
}

a { color: inherit; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 5px;
}

.logo span {
  font-size: 9px;
  vertical-align: top;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions a,
.header-actions button {
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 9px 14px;
  cursor: pointer;
}

.header-actions button {
  color: white;
  background: var(--ink);
}

.header-actions button:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.document {
  max-width: 900px;
  margin: 45px auto;
  padding: 85px 95px;
  background: var(--paper);
  box-shadow: 0 12px 45px rgba(0,0,0,.06);
  min-height: 850px;
}

.eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  font-size: clamp(38px, 6vw, 58px);
  margin-bottom: 20px;
}

h1 em, h2 em { color: var(--gold); }

h2 {
  font-size: 29px;
  margin: 40px 0 15px;
}

h3 {
  font-size: 21px;
  margin: 30px 0 10px;
}

p { margin: 0 0 18px; }

ul, ol {
  padding-left: 24px;
  margin: 12px 0 22px;
}

li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.intro {
  color: var(--muted);
  font-size: 15px;
  max-width: 650px;
  margin-bottom: 35px;
}

.gold-line {
  height: 1px;
  background: var(--line);
  margin: 30px 0;
}

.notice {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 25px 0;
}

.notice strong { display: block; margin-bottom: 6px; }

.contact-card {
  background: var(--cream);
  padding: 25px;
  margin-top: 35px;
}

.contact-card p { margin-bottom: 7px; }

.contact-card a {
  color: var(--ink);
  text-decoration-color: var(--gold);
}

.policy-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 25px;
  margin: 35px 0;
}

.policy-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.policy-links a:hover { color: var(--gold); }

.form-field {
  margin: 24px 0;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #aaa294;
  background: transparent;
  padding: 12px 4px;
  font: inherit;
  outline: none;
}

.form-field textarea {
  min-height: 90px;
  border: 1px solid var(--line);
  padding: 12px;
}

.signature-line {
  border-bottom: 1px solid #999184;
  height: 45px;
  margin-bottom: 30px;
}

.document-footer {
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
}

.document-footer a {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 650px) {
  .site-header { padding: 14px 5%; }
  .logo { font-size: 17px; }
  .header-actions { gap: 6px; }
  .header-actions a { display: none; }
  .header-actions button { padding: 8px 10px; }
  .document {
    margin: 12px;
    padding: 45px 25px;
    min-height: auto;
  }
  h1 { font-size: 39px; }
  .policy-links { grid-template-columns: 1fr; }
  .document-footer { flex-direction: column; }
}

@media print {
  @page { size: A4; margin: 18mm; }

  body { background: white; }

  .site-header, .header-actions, .policy-links {
    display: none !important;
  }

  .document {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: auto;
    box-shadow: none;
  }

  h2, h3 { break-after: avoid; }

  p, li {
    orphans: 3;
    widows: 3;
  }

  .document-footer { margin-top: 35px; }
}
