.v8-contract {
  --v8-navy: #102f67;
  --v8-blue: #1769c2;
  --v8-cyan: #3dc7ed;
  --v8-pale: #e9f5fc;
  --v8-line: #8bb6df;
  --v8-ink: #25384d;
  --v8-muted: #58708a;
  display: grid;
  gap: 22px;
  color: var(--v8-ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.v8-sheet {
  position: relative;
  width: min(100%, 210mm);
  min-height: 297mm;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e4ee;
  box-shadow: 0 12px 34px rgba(16, 47, 103, .12);
}

.v8-sheet-header {
  height: 23mm;
  padding: 2.5mm 16mm;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8mm;
  color: #fff;
  background: var(--v8-navy);
}

.v8-sheet-header img {
  width: 37mm;
  height: 18mm;
  object-fit: contain;
}

.v8-company {
  text-align: right;
  font-size: 6.2pt;
  line-height: 1.42;
}

.v8-company small {
  display: block;
  color: var(--v8-cyan);
  font-size: 5.1pt;
}

.v8-sheet-body {
  padding: 6mm 18mm 18mm;
  font-size: 7.15pt;
  line-height: 1.28;
}

.v8-sheet-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 13mm;
  padding: 3.1mm 16mm 0;
  color: #a9d8ef;
  background: var(--v8-navy);
  font-size: 4.7pt;
}

.v8-sheet-footer .v8-page {
  float: right;
}

.v8-sheet-footer small {
  display: block;
  margin-top: 1.2mm;
  color: #6f91b1;
  font-size: 4.2pt;
}

.v8-title-box,
.v8-section-title {
  border: .45pt solid var(--v8-line);
  border-left: 2.2pt solid var(--v8-blue);
  background: var(--v8-pale);
}

.v8-title-box {
  margin-bottom: 2.2mm;
  padding: 3.4mm 4mm 3.2mm;
  border: .8pt solid var(--v8-blue);
  border-right-width: 2.2pt;
  border-left-width: 2.2pt;
  text-align: center;
}

.v8-title-box.v8-draft {
  background: #fff4d8;
}

.v8-title-box .v8-kind {
  color: var(--v8-navy);
  font-weight: 800;
  font-size: 10.4pt;
  line-height: 1.22;
  text-transform: uppercase;
}

.v8-title-box .v8-service-name {
  margin-top: 1.1mm;
  color: var(--v8-blue);
  font-weight: 800;
  font-size: 12.2pt;
  line-height: 1.18;
  text-transform: uppercase;
}

.v8-date {
  margin: 0 0 2mm;
}

.v8-section-title {
  margin: 2.1mm 0 2.25mm;
  padding: 2.1mm 4mm;
  color: var(--v8-navy);
  font-weight: 800;
  font-size: 7.1pt;
  line-height: 1.2;
  text-transform: uppercase;
}

.v8-section-title.v8-draft {
  background: #fff4d8;
}

.v8-parties,
.v8-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border: .45pt solid var(--v8-line);
}

.v8-party {
  min-width: 0;
  padding: 3mm;
  background: #f8fbfe;
}

.v8-party + .v8-party {
  border-left: .45pt solid var(--v8-line);
}

.v8-party-label {
  margin-bottom: .7mm;
  color: var(--v8-navy);
  font-weight: 800;
  font-size: 6.6pt;
}

.v8-party p,
.v8-contract-copy p {
  margin: 0 0 1.45mm;
  text-align: justify;
}

.v8-clause {
  break-inside: avoid;
}

.v8-clause .v8-section-title {
  margin-top: 1.8mm;
}

.v8-clause p {
  margin: 0 0 1.45mm;
  text-align: justify;
}

.v8-signatures {
  margin-top: 2.2mm;
  border-color: var(--v8-blue);
}

.v8-signature-box {
  display: grid;
  grid-template-rows: 7mm 34mm 19mm;
  min-width: 0;
}

.v8-signature-box + .v8-signature-box {
  border-left: .45pt solid var(--v8-blue);
}

.v8-signature-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3mm;
  color: #fff;
  background: var(--v8-navy);
  font-weight: 800;
  font-size: 8pt;
  line-height: 1.2;
  text-align: center;
}

.v8-signature-area {
  display: flex;
  align-items: center;
  padding: 0 3mm;
}

.v8-signature-area img {
  display: block;
  width: 40mm;
  max-width: 100%;
  height: 12.5mm;
  object-fit: contain;
  object-position: left center;
}

.v8-signature-data {
  align-self: end;
  padding: 1.2mm 3mm 2.1mm;
  color: var(--v8-ink);
  font-size: 6.25pt;
  line-height: 1.24;
}

.v8-privacy-basic {
  margin-top: 2.4mm;
  padding: 3mm;
  border: .35pt solid var(--v8-line);
  background: var(--v8-pale);
  color: var(--v8-muted);
  font-size: 5pt;
  line-height: 1.25;
  text-align: justify;
}

.v8-service-lead {
  margin: 0 0 1.6mm;
  color: var(--v8-blue);
  font-weight: 800;
  font-size: 10.2pt;
}

.v8-service-intro {
  margin: 0 0 1.8mm;
  font-size: 6.35pt;
}

.v8-scope-table,
.v8-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.v8-scope-table {
  margin-bottom: 2.4mm;
}

.v8-scope-table th,
.v8-scope-table td,
.v8-data-table th,
.v8-data-table td {
  padding: 2.45mm 2.8mm;
  border: .35pt solid var(--v8-line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.v8-scope-table th {
  color: #fff;
  background: var(--v8-navy);
  font-size: 7.65pt;
  text-align: left;
}

.v8-scope-table th:first-child,
.v8-scope-table td:first-child {
  width: 45%;
}

.v8-scope-table td {
  font-size: 7.45pt;
  line-height: 1.22;
}

.v8-scope-table td:last-child {
  font-weight: 800;
}

.v8-scope-table tbody tr:nth-child(even) td {
  background: var(--v8-pale);
}

.v8-data-table {
  margin-bottom: 2mm;
}

.v8-data-table th {
  color: var(--v8-navy);
  background: var(--v8-pale);
  font-size: 7pt;
  text-align: left;
}

.v8-data-table td:first-child {
  width: 35%;
  color: var(--v8-navy);
  font-weight: 800;
  font-size: 7pt;
}

.v8-data-table td:last-child {
  font-weight: 800;
  font-size: 7.85pt;
}

.v8-considerations,
.v8-trace {
  margin: 0 0 1.6mm;
  color: var(--v8-muted);
  font-size: 5pt;
  line-height: 1.25;
  text-align: justify;
}

.v8-dp-subtitle {
  margin: 0 0 2mm;
  color: var(--v8-blue);
  font-weight: 800;
  font-size: 7pt;
  text-align: center;
}

.v8-dp-label {
  margin: 1.5mm 0 .8mm;
  color: var(--v8-navy);
  font-weight: 800;
  font-size: 6.6pt;
}

.v8-dp-copy {
  margin: 0 0 1.4mm;
  font-size: 6.35pt;
  line-height: 1.28;
  text-align: justify;
}

.v8-dp-application {
  margin: 1.8mm 0 0;
  color: var(--v8-muted);
  font-size: 5pt;
  line-height: 1.25;
  text-align: justify;
}

.v8-dp-signatures {
  margin-top: 10mm;
}

.v8-draft-warning {
  margin: 0 0 2mm;
  padding: 2.5mm 3mm;
  border: .45pt solid #ddb64e;
  background: #fff8e8;
  color: #6b4d00;
  font-size: 6.1pt;
  line-height: 1.3;
}

@media (max-width: 850px) {
  .v8-sheet {
    min-height: 0;
  }

  .v8-sheet-header {
    height: auto;
    min-height: 23mm;
    padding-right: 8mm;
    padding-left: 8mm;
  }

  .v8-sheet-body {
    padding-right: 5mm;
    padding-bottom: 19mm;
    padding-left: 5mm;
  }

  .v8-sheet-footer {
    padding-right: 8mm;
    padding-left: 8mm;
  }

  .v8-company {
    font-size: 5.4pt;
  }

  .v8-parties,
  .v8-signatures {
    grid-template-columns: 1fr;
  }

  .v8-party + .v8-party,
  .v8-signature-box + .v8-signature-box {
    border-top: .45pt solid var(--v8-line);
    border-left: 0;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .top,
  .hero,
  .shell,
  .footer {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .print-only > .v8-contract {
    display: block;
  }

  .v8-contract {
    gap: 0;
  }

  .v8-sheet {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0;
    border: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .v8-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .v8-sheet-body {
    padding-right: 18mm;
    padding-left: 18mm;
  }

  .v8-parties,
  .v8-signatures {
    grid-template-columns: 1fr 1fr;
  }

  .v8-party + .v8-party,
  .v8-signature-box + .v8-signature-box {
    border-top: 0;
    border-left: .45pt solid var(--v8-line);
  }

  .v8-title-box,
  .v8-section-title,
  .v8-privacy-basic,
  .v8-scope-table th,
  .v8-scope-table tbody tr:nth-child(even) td,
  .v8-data-table th,
  .v8-signature-head,
  .v8-sheet-header,
  .v8-sheet-footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-only > .print-data-only {
    display: block;
    padding: 12mm;
    color: #182c47;
    font-family: Arial, sans-serif;
  }
}
