/* 
 * Woza Mmeli - Standard Legal Document Styles 
 * Designed to match the premium document aesthetic 
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@400;700;900&display=swap');

.legal-document-container {
    background-color: white;
    color: #1a1a1a;
    width: 100%;
    max-width: 21cm;
    min-height: 29.7cm;
    margin: 0 auto;
    padding: 2cm;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    font-size: 10.5pt;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Match PDF / print: justified body copy; keep alignment utilities working */
.legal-document-container p {
    text-align: justify;
}

.legal-document-container .text-center,
.legal-document-container .text-center p,
.legal-document-container .doc-header,
.legal-document-container .doc-title-box {
    text-align: center;
}

.legal-document-container .text-left,
.legal-document-container .text-left p {
    text-align: left;
}

.legal-document-container p.text-center {
    text-align: center;
}

.legal-document-container .doc-list li {
    text-align: justify;
}

@media screen and (max-width: 639px) {
    .legal-document-container {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 1rem 1rem 1.5rem;
        font-size: 10pt;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .doc-logo-text {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }

    .doc-title-main {
        font-size: 1.25rem;
    }

    .page-marker {
        position: static;
        text-align: right;
        margin-bottom: 1rem;
    }

    .sig-row {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

    .sig-block {
        width: 100%;
    }
}

@media print {
    @page {
        margin: 12mm 14mm;
    }

    .legal-document-container {
        margin: 0;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 0;
    }

    .page-break {
        page-break-before: always;
    }
    .no-print {
        display: none !important;
    }
    #print-document-content {
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }
}

/* Header & Logo Styles */
.doc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.doc-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    color: #D4AF37; /* Branding gold */
    margin-bottom: 0.2rem;
    line-height: 1;
}

.doc-logo-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.doc-info-text {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.doc-hr {
    border: 0;
    border-top: 1px solid #000;
    margin: 1.5rem 0;
}

/* Title Page Specifics */
.doc-title-box {
    margin: 5rem 0;
    text-align: center;
}

.doc-title-main {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.2rem 0;
    border-top: 2px solid #334155;
    border-bottom: 2px solid #334155;
    display: block;
}

.doc-title-of {
    font-style: italic;
    font-size: 1.4rem;
    margin: 2.5rem 0;
    color: #4b5563;
}

.data-field-block {
    background-color: #f1f5f9;
    border-left: 4px solid #94a3b8;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    width: 100%;
}

.id-number-row {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* Clause Styling */
.clause-block {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.clause-header {
    font-weight: 800;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: block;
    text-transform: none;
}

/* Signature Styles */
.doc-footer-sigs {
    margin-top: 4rem;
    width: 100%;
}

.sig-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 3rem;
}

.sig-block {
    width: 45%;
}

.sig-line {
    border-bottom: 1px dotted #000;
    height: 2rem;
    margin-bottom: 0.5rem;
}

.sig-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #4b5563;
}

.page-marker {
    position: absolute;
    top: 2cm;
    right: 2cm;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Bullet points (gutter aligned with PDF bundle) */
.doc-list {
    list-style: none;
    margin: 0.75rem 0 1rem 0;
    padding: 0 0 0 2.25rem;
}

.doc-list li {
    position: relative;
    margin-bottom: 0.85rem;
    padding-left: 0.35rem;
}

.doc-list li::before {
    content: "•";
    position: absolute;
    left: -1.35rem;
    width: 1rem;
    text-align: center;
    font-weight: bold;
}
