/* ============================================================
   DEPARTMENT OF JUSTICE - AMTLICHE DOKUMENTENAUSGABE (DRUCK & PDF)
   ============================================================ */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.45;
    margin: 0;
    padding: 0;
  }

  .no-print,
  .site-header,
  .site-footer,
  .rp-topbar,
  .main-nav-bar,
  .admin-sidebar,
  .admin-topbar,
  .flash-messages-container,
  .btn,
  .action-bar {
    display: none !important;
  }

  .legal-document-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10mm 15mm !important;
    box-shadow: none !important;
    border: none !important;
  }

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

/* Standalone & Screen Preview Styles for Judicial Documents */
.legal-document-container {
  background: #ffffff;
  color: #111111;
  max-width: 840px;
  margin: 30px auto;
  padding: 45px 55px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid #d2d6dc;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.5;
  position: relative;
}

.doc-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 72px;
  font-weight: 700;
  color: rgba(11, 31, 58, 0.04);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 6px;
  z-index: 1;
}

.legal-doc-header {
  text-align: center;
  border-bottom: 2px solid #1a202c;
  padding-bottom: 18px;
  margin-bottom: 25px;
}

.legal-doc-seal {
  width: 75px;
  height: 75px;
  margin: 0 auto 10px auto;
}

.legal-doc-republic {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 13pt;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
}

.legal-doc-court {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 15pt;
  font-weight: bold;
  margin-top: 4px;
}

.legal-doc-meta-table {
  width: 100%;
  margin-bottom: 25px;
  font-size: 11pt;
  border-collapse: collapse;
}

.legal-doc-meta-table td {
  padding: 4px 0;
  vertical-align: top;
}

.legal-doc-meta-label {
  font-weight: bold;
  width: 160px;
}

.legal-doc-title-box {
  text-align: center;
  margin: 25px 0;
  padding: 12px;
  border-top: 1px solid #718096;
  border-bottom: 1px solid #718096;
}

.legal-doc-type {
  font-size: 15pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.legal-doc-parties {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 18px;
  margin-bottom: 25px;
  font-size: 11pt;
}

.legal-doc-section-title {
  font-size: 12pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 25px;
  margin-bottom: 10px;
  border-bottom: 1px solid #cbd5e0;
  padding-bottom: 3px;
}

.legal-doc-content {
  text-align: justify;
  margin-bottom: 20px;
  white-space: pre-line;
}

.legal-doc-signature-block {
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.legal-doc-signature {
  text-align: center;
  width: 280px;
}

.signature-line {
  border-bottom: 1px solid #000000;
  height: 50px;
  margin-bottom: 6px;
}

.signature-title {
  font-weight: bold;
  font-size: 11pt;
}

.signature-sub {
  font-size: 9pt;
  color: #4a5568;
}

.legal-doc-footer {
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
  font-size: 8.5pt;
  color: #718096;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-verification-box {
  background: #f7fafc;
  border: 1px dashed #cbd5e0;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 9pt;
}
