/*

Cartório Molina
Website: https://cartoriomolina.com.br
Author: Cloudbe
Copyright 2023

*/

:root {
    --ink: #141316;
    --muted: #5b5b61;
    --paper: #ffffff;
    --accent: #000;
    --line: #c8c8ce;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fafafa;
    color: var(--ink);
    font-family: "Crimson Pro", "Times New Roman", serif;
}

.page-wrap {
    max-width: 860px;
    margin: 32px auto 48px;
    padding: 0 16px;
}

.page {
    background: var(--paper);
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 24px;
    padding: 18mm 16mm 20mm;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(20, 19, 22, 0.12);
    position: relative;
}

h1 {
    font-size: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 18px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    margin-bottom: 18px;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: 13px;
}

.field-grid .full {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 11px;
    color: var(--muted);
}

.line {
    border-bottom: 1px solid var(--line);
    height: 18px;
}

.paragraph {
    font-size: 13.5px;
    line-height: 1.55;
    text-align: justify;
    margin: 0 0 16px;
}

.section-title {
    margin: 22px 0 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 12px;
}

.row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: 13px;
}

.row .span-2 {
    grid-column: span 2;
}

.note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.signature {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: 13px;
}

.signature .line {
    height: 22px;
}

.footer-center {
    text-align: center;
    font-size: 12px;
    margin-top: 6px;
    color: var(--muted);
}

.print-area {
    text-align: center;
    margin-top: 16px;
}

.print-button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    letter-spacing: 0.4px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(43, 77, 62, 0.2);
}

.print-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(43, 77, 62, 0.25);
}

@media print {
    body {
        background: #fff;
    }

    .page-wrap {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .page {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        width: auto;
        min-height: auto;
        padding: 18mm 16mm 20mm;
        page-break-after: always;
    }

    .page:last-of-type {
        page-break-after: auto;
    }

    .print-area {
        display: none;
    }
}