@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@300..800&display=swap');

:root {
    color-scheme: light;
    --background: #f0f4f8;
    --page: #ffffff;
    --surface: #e7f1fb;
    --text: #14213d;
    --muted: #475569;
    --primary: #0f4c81;
    --accent: #58a6ff;
    --border: #d1d9e6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--background);
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 20px auto 40px;
    padding: 0;
    min-height: calc(100vh - 60px);
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: transparent;
}

/* Page Layout */
.page {
    width: 210mm;
    min-height: auto;
    margin: 10px auto 20px;
    padding: 24mm;
    background: var(--page);
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.brand .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.page-header h1 {
    font-family: 'Parkinsans', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 14px;
    line-height: 1.05;
    color: var(--primary);
}

.lead {
    max-width: 36rem;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
}

.page-body {
    /* flex: 1; */
}

.page-footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--muted);
}

/* Sections */
.section {
    margin-bottom: 28px;
}

.section:last-of-type {
    margin-bottom: 0;
}

.section h2 {
    font-family: 'Parkinsans', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 14px;
    color: var(--primary);
}

.section h3 {
    font-family: 'Parkinsans', sans-serif;
    font-size: 1.25rem;
    margin: 24px 0 4px 0;
    color: var(--primary);
}

.section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 12px;
    text-align: justify;
}

.section ul,
.section ol {
    margin: 8px 0 16px 24px;
    line-height: 1.4;
}

.section li {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 1rem;
}

/* Grid Layouts */
.grid-1 {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Cards */
.card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 0 22px;
}

.card h3 {
    font-family: 'Parkinsans', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0 12px;
    color: var(--primary);
}

.card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-number {
    font-family: 'Parkinsans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Policy Sections */
.policy-section {
    margin: 16px 0 0;
    padding: 16px 20px 4px 20px;
    background: #f9fbff;
    border: 2px solid var(--border);
    border-radius: 12px;
}

.policy-section h4 {
    font-family: 'Parkinsans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.policy-section p,
.policy-section ul {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

.policy-section ul {
    margin-left: 24px;
}

.policy-section li {
    margin-bottom: 6px;
}

.zero-tolerance {
    background: #fef2f2;
    border-color: var(--danger);
}

.zero-tolerance h4 {
    color: var(--danger);
}

.info-box {
    background: #f0f7ff;
    border-left: 4px solid var(--accent);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0 0;
}

.info-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.logo-container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container img {
    height: 50px;
    object-fit: contain;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 0;
    font-size: 0.95rem;
}

th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
}

tr:nth-child(even) {
    background: var(--surface);
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0;
}

.contact-item {
    background: var(--surface);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 2px 0;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

strong {
    color: var(--primary);
    font-weight: 600;
}

/* Print Styles */
@media print {
    body {
        margin: 0;
        background: white;
    }

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

    .page:first-child {
        page-break-before: avoid;
    }

    /* .section,
    .card,
    .policy-section,
    .stat-card,
    .info-box {
        page-break-inside: avoid;
    }

    .grid-2,
    .grid-3,
    .contact-grid {
        page-break-inside: avoid;
    }

    .section ul,
    table {
        page-break-inside: avoid;
    } */

    @page {
        size: A4;
        margin: 16mm;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .page {
        width: calc(100% - 32px);
        padding: 20px;
    }

    .grid-1,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}