/* Explain: Layout helpers that define the page rhythm. */
/*
  Explain: Layout helpers that define the page rhythm (bands, page headers, document rows, footer grid).
*/
.section-band {
    border-top: 1px solid var(--border-color);
}

.page-title {
    font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.15;
}

.page-lead {
    margin-top: 1.15rem;
    max-width: 44rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.page-subtitle {
    margin-top: 1rem;
    max-width: 44rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.doc-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
    scroll-margin-top: 6rem;
}

.doc-stack {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.legal-row {
    padding-block: 1.05rem;
    border-top: 1px solid var(--border-color);
}

.legal-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.footer-grid {
    display: grid;
    gap: 2.25rem;
}

@media (min-width: 640px) {
    .legal-row {
        display: grid;
        grid-template-columns: 13.5rem 1fr;
        gap: 1.5rem;
        align-items: baseline;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.7fr 1fr;
        align-items: start;
    }

    .footer-legal {
        justify-self: end;
    }
}