/* Annetts & Orchard — policy pages. Loads after /processes/process.css (nav, hero, footer, buttons). */
.policy-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }

.toc { position: sticky; top: 1.25rem; font-size: 13px; }
.toc .label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.6rem; }
.toc ol { list-style: none; counter-reset: toc; border-left: 2px solid var(--border); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 4px 0 4px 12px; color: var(--muted); text-decoration: none; line-height: 1.4; margin-left: -2px; border-left: 2px solid transparent; }
.toc a::before { content: counter(toc) ". "; }
.toc a:hover, .toc a.on { color: var(--blue); border-left-color: var(--teal); }
.toc .btn { margin-top: 1rem; }

.doc { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: 3px; padding: 2rem 2.4rem 2.4rem; max-width: 820px; }
.doc section { scroll-margin-top: 16px; }
.doc section + section { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc h2 { font-size: 19px; color: var(--blue); letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.doc h2 .n { color: var(--teal); margin-right: 8px; }
.doc h3 { font-size: 14px; color: var(--blue); margin: 1.1rem 0 0.4rem; }
.doc p, .doc li { font-size: 14px; line-height: 1.65; }
.doc p { margin-bottom: 0.7rem; }
.doc ul, .doc ol.rules { margin: 0.2rem 0 0.8rem 0; padding-left: 1.3rem; }
.doc li { margin-bottom: 0.3rem; padding-left: 0.2rem; }
.doc ul li::marker { color: var(--teal); }
.doc ol.rules li::marker { color: var(--blue); font-weight: 700; }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0.4rem 0 0.4rem; padding: 0 !important; list-style: none; counter-reset: pr; }
.principles li { counter-increment: pr; background: #f2f8fc; border-left: 3px solid var(--teal); padding: 10px 12px 10px 40px !important; position: relative; margin: 0 !important; border-radius: 2px; }
.principles li::before { content: counter(pr); position: absolute; left: 12px; top: 10px; font-weight: 700; color: var(--blue); }
.principles b { color: var(--blue); }

.callout { font-size: 14px; }
.callout p { margin: 0; }
.dont { background: #fdf3f2; border-left-color: #b3261e; }

table.reg { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0.8rem; font-size: 13px; }
table.reg th { text-align: left; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); padding: 6px 8px; }
table.reg td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; line-height: 1.5; }
table.reg td:first-child { font-weight: 700; color: var(--blue); width: 28%; }
.yes { color: #1d7a3a; font-weight: 700; }
.no  { color: #b3261e; font-weight: 700; }

.chip.draft { margin-left: 4px; vertical-align: 1px; }

@media (max-width: 900px) {
  .policy-wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .principles { grid-template-columns: 1fr; }
  .doc { padding: 1.4rem 1.2rem; }
}
@media (max-width: 600px) {
  table.reg, table.reg tbody, table.reg tr, table.reg td { display: block; width: 100% !important; }
  table.reg thead { display: none; }
  table.reg tr { border-bottom: 2px solid var(--border); padding: 6px 0; }
  table.reg td { border: 0; padding: 3px 0; }
}

.doc .callout li { padding-left: 0.2rem !important; }
.doc .callout li::before { content: none; }

/* Staff acknowledgement (signature page for DocuSign) */
.ack { margin-top: 2.5rem; padding: 1.8rem; border: 2px solid var(--blue); border-radius: 3px; }
.ack h2 { margin-bottom: 0.4rem; }
.ack > p:first-of-type { font-size: 12px; color: var(--muted); margin-bottom: 1rem; }
.ack-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; margin-top: 1.6rem; }
.ack-field.sig { grid-column: 1 / -1; }
.ack-box { height: 64px; border-bottom: 1.5px solid var(--text); }
.ack-field.sig .ack-box { height: 110px; }
.ack-field span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 600px) { .ack-fields { grid-template-columns: 1fr; } }

/* ---------- Print / PDF ---------- */
.print-head, .print-title, .print-meta { display: none; }

@page {
  size: A4;
  margin: 18mm 18mm 20mm;
  @bottom-left  { content: "Annetts & Orchard Ltd  \00b7  AI Policy  \00b7  Version 1.0"; font: 7.5pt Arimo, sans-serif; color: #5f717e; }
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 7.5pt Arimo, sans-serif; color: #5f717e; }
}

@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; display: block; }
  nav, .hero, footer, .toc { display: none !important; }
  main { padding: 0; max-width: none; }
  .policy-wrap { display: block; }
  .doc { border: 0; padding: 0; max-width: none; }

  .print-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 10pt; border-bottom: 2pt solid var(--blue); }
  .print-head img { height: 46pt; }
  .print-head div { font-size: 8pt; color: var(--muted); text-align: right; line-height: 1.5; }
  .print-title { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 22pt; color: var(--blue); margin: 18pt 0 10pt; letter-spacing: -0.01em; }
  .print-meta { display: table; width: 100%; border-collapse: collapse; font-size: 8.5pt; margin-bottom: 16pt; border-top: 0.75pt solid var(--border); }
  .print-meta th, .print-meta td { text-align: left; padding: 4pt 6pt; border-bottom: 0.75pt solid var(--border); }
  .print-meta th { color: var(--muted); font-weight: 700; width: 15%; background: #f5f8fb; }
  .print-meta td { width: 35%; }

  .doc section + section { margin-top: 14pt; padding-top: 0; border-top: 0; }
  .doc h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 13.5pt; margin-bottom: 5pt; break-after: avoid; }
  .doc h3 { font-size: 10pt; margin: 9pt 0 3pt; break-after: avoid; }
  .doc p, .doc li { font-size: 9.5pt; line-height: 1.5; }
  .doc p { margin-bottom: 5pt; }
  .doc li { margin-bottom: 2pt; }
  .doc ul, .doc ol.rules { margin-bottom: 5pt; }
  .doc li, .doc p { orphans: 3; widows: 3; }

  .principles { grid-template-columns: 1fr 1fr; gap: 5pt; }
  .principles li { padding: 6pt 8pt 6pt 24pt !important; break-inside: avoid; }
  .principles li::before { left: 8pt; top: 6pt; }

  .callout { padding: 7pt 9pt; }
  table.reg { font-size: 8.5pt; break-inside: avoid; }
  table.reg th { font-size: 7.5pt; padding: 4pt 6pt; }
  table.reg td { padding: 5pt 6pt; }
  table.reg tr { break-inside: avoid; }
  .chip { display: none; }

  .ack { break-before: page; break-inside: avoid; margin-top: 0; padding: 22pt 24pt 26pt; border-width: 1.5pt; }
  .ack h2 { font-size: 16pt; }
  .ack > p:first-of-type { font-size: 9pt; }
  .ack p { font-size: 10.5pt; line-height: 1.6; }
  .ack-fields { gap: 26pt 28pt; margin-top: 30pt; }
  .ack-box { height: 60pt; }
  .ack-field.sig .ack-box { height: 110pt; }
  .ack-field span { font-size: 8pt; }
}
