/* ==========================================================================
   Ploce Design Studio — print.css
   --------------------------------------------------------------------------
   Print styling for the legal pages. It is linked with media="print", so
   these rules only apply when a page is printed or saved as a PDF.

   Goals: black text on white, no navigation or decoration, one clean
   column, visible link URLs, and no clause split across a page break.
   ========================================================================== */

@media print {
  /* Black on white. Re-point the brand tokens so every rule below follows. */
  :root {
    --bark:        #000;
    --cream:       #fff;
    --cream-deep:  #fff;
    --cream-soft:  #000;
    --bark-soft:   #000;
    --reed-olive:  #000;
    --line:        #999;
    --line-strong: #666;
    --straw:       #000;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Hide everything that is not the document itself. */
  .site-header,
  .site-nav,
  .nav-toggle,
  .preloader,
  .skip-link,
  .site-footer,
  .legal-toc,
  .legal-backtotop,
  .to-top,
  .form-consent,
  .weave-divider,
  .placeholder-banner {
    display: none !important;
  }

  /* One clean column, no fixed widths or margins. */
  .container {
    width: auto;
    margin: 0;
  }
  .legal-layout {
    display: block;
  }
  .legal-body {
    max-width: none;
  }

  /* Print the page title and dates without decoration. */
  .page-head {
    padding-block: 0 1rem;
    border-bottom: 1px solid #000;
  }
  .legal-meta dt {
    color: #000;
  }
  .legal-summary {
    background: none;
    border: 1px solid #000;
    border-left: 4px solid #000;
  }

  /* Show where a link points, except for same-page anchors. */
  a[href]:not([href^="#"])::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  /* Keep headings with the clause that follows, and avoid splitting a
     clause over a page break where there is room to move it. */
  h1,
  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
  p,
  li,
  address {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Placeholders print as a dashed outline instead of a colour fill. */
  .placeholder {
    background: none !important;
    outline: 1px dashed #000;
    padding: 0 0.15em;
  }
}
