@media print {
  @page {
    size: legal portrait;
    margin: 18mm 18mm 20mm 18mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .no-print,
  .topbar,
  .wizard-sidebar,
  .portal-sidebar,
  .portal-workspace-head,
  .agreement-inspector,
  #profTabOverview,
  #profTabPayouts,
  #profTabDomains,
  #profTabProfile,
  #profTabKyc,
  .sticky-action-bar,
  .app-header,
  .step-actions,
  .alert,
  .alert-host {
    display: none !important;
  }

  #profTabAgreement {
    display: block !important;
  }

  .wizard-shell,
  .wizard-workspace,
  .portal-shell,
  .portal-workspace,
  .portal-workspace-body,
  .agreement-reader-layout,
  .agreement-stage,
  .profile-content-wrap,
  .portal-container {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: #ffffff !important;
  }

  .pane-content,
  .panel-card,
  .agreement-sheet-wrap,
  .agreement-paper,
  .surface-card,
  .agreement-wrap,
  .step-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .agreement-doc {
    border: none !important;
    padding: 0 !important;
    font-family: "Times New Roman", "Liberation Serif", Georgia, serif !important;
    font-size: 11pt !important;
    line-height: 1.55 !important;
    color: #000000 !important;
  }

  .agreement-doc-title {
    font-size: 13pt !important;
    line-height: 1.35 !important;
    letter-spacing: 0.05em !important;
  }

  .agreement-clause-block h4 {
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  .agreement-clause-block p,
  .agreement-subclauses {
    font-size: 11pt !important;
    line-height: 1.55 !important;
    text-align: justify !important;
  }

  .agreement-schedule-title {
    font-size: 12pt !important;
  }

  .agreement-schedule-sub {
    font-size: 9.5pt !important;
  }

  .agreement-table {
    font-size: 9.5pt !important;
    line-height: 1.45 !important;
  }

  .agreement-doc .small {
    font-size: 9pt !important;
    line-height: 1.45 !important;
  }

  .agreement-table tr,
  .agreement-clause-block h4,
  .agreement-signoff-grid,
  .signoff-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

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