.legacy-page .legacy-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.legacy-page #about.legacy-intro {
    padding: 40px 24px;
    background: #00041a;
}

.legacy-page .legacy-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.legacy-page .legacy-intro-copy {
    min-width: 0;
}

.legacy-page .legacy-intro-copy h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-family: 'Jost-Bold', sans-serif;
    font-size: 40px;
    line-height: 1.15;
}

.legacy-page .legacy-intro-copy p {
    max-width: 540px;
    color: #c8d3e0;
    font-family: 'Montserrat-Medium', sans-serif;
    font-size: 20px;
    line-height: 1.55;
}

.legacy-page .legacy-product-image {
    min-width: 0;
}

.legacy-page .legacy-product-image img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.legacy-page .legacy-product-selection {
    padding: 36px 24px;
    background: linear-gradient(160deg, #062B49 0%, #003B71 34%, #005EB8 56%, #003B71 78%, #062B49 100%);
}

.legacy-page .legacy-section-title {
    margin: 0 0 24px;
    color: #ffffff;
    font-family: 'Jost-Bold', sans-serif;
    font-size: 28px;
    line-height: 1.25;
    text-align: center;
}

.legacy-page .legacy-family-grid,
.legacy-page .legacy-resource-grid {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legacy-page .legacy-family-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
}

.legacy-page .legacy-panel {
    min-width: 0;
    background: linear-gradient(180deg, #eaf3fb 0%, #dcecf8 100%);
    border: 1px solid rgba(0, 91, 184, 0.34);
    border-top: 3px solid rgba(0, 114, 206, 0.58);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(6, 43, 73, 0.18);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .legacy-page .legacy-family-card,
    .legacy-page .legacy-resource-card {
        transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-top-color 200ms ease-out;
    }

    .legacy-page .legacy-family-card:hover,
    .legacy-page .legacy-resource-card:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 20px 38px rgba(6, 43, 73, 0.24);
        border-top-color: rgba(0, 114, 206, 0.75);
    }
}

.legacy-page .legacy-family-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
}

.legacy-page .legacy-family-card h3 {
    margin: 0 0 10px;
    color: #0b2239;
    font-family: 'Jost-Bold', sans-serif;
    font-size: 22px;
    line-height: 1.25;
}

.legacy-page .legacy-family-card p {
    color: #3f526b;
    font-family: 'Montserrat-Medium', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.legacy-page .legacy-family-document {
    margin-top: auto;
    padding-top: 18px;
}

.legacy-page .legacy-document-link {
    display: inline-block;
    max-width: 100%;
    color: #24415f;
    font-family: 'Montserrat-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: break-word;
    transform-origin: left center;
    transition: color 0.18s ease, transform 0.18s ease;
}

.legacy-page .legacy-document-link i {
    color: currentColor;
    font-size: 0.95em;
}

.legacy-page .legacy-document-link:hover,
.legacy-page .legacy-document-link:focus {
    color: #0072CE;
    text-decoration: none;
    transform: scale(1.025);
}

.legacy-page .legacy-document-link:focus-visible {
    outline: 2px solid rgba(0, 114, 206, 0.35);
    outline-offset: 2px;
}

.legacy-page .legacy-resource-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(122, 199, 255, 0.38);
}

.legacy-page .legacy-resource-section .legacy-section-title {
    margin-bottom: 10px;
}

.legacy-page .legacy-category-title {
    margin: 0 0 24px;
    color: #ffffff;
    font-family: 'Montserrat-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.legacy-page .legacy-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legacy-page .legacy-resource-card {
    display: flex;
    align-items: center;
    padding: 16px;
}

.legacy-page .legacy-resource-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.legacy-page .legacy-resource-link img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.legacy-page .legacy-resource-link span {
    min-width: 0;
}

/* Center incomplete rows without widening the remaining family cards. */
@media only screen and (min-width: 992px) {
    .legacy-page .legacy-family-card:last-child:nth-child(3n + 1) {
        grid-column: 3 / span 2;
    }
}

@media only screen and (max-width: 991px) {
    .legacy-page #about.legacy-intro {
        padding: 28px 20px;
    }

    .legacy-page .legacy-intro-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .legacy-page .legacy-intro-copy p {
        margin: 0 auto;
        font-size: 18px;
    }

    .legacy-page .legacy-product-image img {
        max-width: 320px;
    }

    .legacy-page .legacy-product-selection {
        padding: 28px 20px;
    }

    .legacy-page .legacy-family-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .legacy-page .legacy-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legacy-page .legacy-family-card {
        padding: 20px;
    }

    .legacy-page .legacy-document-link {
        font-size: 14.4px;
    }
}

@media only screen and (min-width: 601px) and (max-width: 991px) {
    .legacy-page .legacy-family-card:last-child:nth-child(2n + 1) {
        grid-column: 2 / span 2;
    }
}

@media only screen and (max-width: 600px) {
    .legacy-page #about.legacy-intro {
        padding: 28px 18px;
    }

    .legacy-page .legacy-intro-copy h1 {
        font-size: 32px;
    }

    .legacy-page .legacy-section-title {
        font-size: 24px;
    }

    .legacy-page .legacy-product-selection {
        padding: 28px 18px;
    }

    .legacy-page .legacy-family-grid,
    .legacy-page .legacy-resource-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .legacy-page .legacy-family-card {
        grid-column: auto;
        padding: 18px;
    }

    .legacy-page .legacy-resource-section {
        margin-top: 32px;
        padding-top: 28px;
    }
}
