/* Long-form legal / policy pages — compact blog-style reading layout */

:root {
    --document-sticky-offset: 120px;
}

html {
    scroll-padding-top: calc(var(--document-sticky-offset) + 1.25rem);
}

.document-lead {
    color: #6c757d;
    font-size: 1.12rem;
    line-height: 1.6;
    margin: 0 auto 1.25rem;
    max-width: 42rem;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.75rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.document-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.document-layout {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0 3.5rem;
}

.document-prose {
    font-size: 1rem;
    line-height: 1.72;
    color: #495057;
}

.document-prose > *:first-child {
    margin-top: 0;
}

.document-prose > p:first-child {
    font-size: 1.05rem;
    color: #3d4852;
}

.document-prose p {
    margin: 0 0 1rem;
}

.document-prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2.25rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e9ecef;
    letter-spacing: -0.01em;
    scroll-margin-top: calc(var(--document-sticky-offset) + 1.25rem);
}

.document-prose h2:first-child {
    margin-top: 0;
}

.document-prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3370;
    margin: 1.5rem 0 0.5rem;
    scroll-margin-top: calc(var(--document-sticky-offset) + 1.25rem);
}

.document-prose h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.25rem 0 0.5rem;
}

.document-prose ul,
.document-prose ol {
    padding-left: 1.35rem;
    margin: 0 0 1.15rem;
}

.document-prose li {
    margin-bottom: 0.35rem;
}

.document-prose li > ul,
.document-prose li > ol {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.document-prose strong,
.document-prose b {
    color: #1a1a1a;
    font-weight: 600;
}

.document-prose a {
    color: #1e3370;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.document-prose a:hover {
    color: #2a4a9e;
}

.document-prose blockquote {
    border-left: 3px solid #1e3370;
    margin: 1.5rem 0;
    padding: 0.85rem 1.15rem;
    background: #f8f9fa;
    border-radius: 0 6px 6px 0;
    color: #495057;
    font-size: 0.98rem;
}

.document-prose hr {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 2rem 0;
}

.document-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 1.25rem 0;
}

.document-prose th,
.document-prose td {
    border: 1px solid #e9ecef;
    padding: 0.55rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.document-prose th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
}

.document-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.document-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #1e3370;
    font-weight: 500;
    text-decoration: none;
}

.document-footer a:hover {
    text-decoration: underline;
}

.document-cta {
    margin-top: 2rem;
    text-align: center;
}

.document-cta .btn-primary {
    padding: 0.65rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .document-layout {
        padding-top: 1.5rem;
    }

    .document-lead {
        font-size: 1.05rem;
    }

    .document-prose {
        font-size: 0.98rem;
    }
}
