/* Legacy Page Styles - aligned with site's shared styles */
.legacy {
    background: url('images/legacy_background.jpg') top center/cover no-repeat fixed;
    padding: 80px 0;
}

/* Optional vertical offset under the fixed header */
.legacy .container { margin-top: 6rem; }

/* 2) Typography */
.legacy .legacy-title {
    color: #ff0000; /* red title */
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 30px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.legacy .legacy-text p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.9;
    margin: 0 0 16px;
}

/* 3) Layout */
.legacy .legacy-grid {
    display: grid;
    grid-template-columns: 1fr; /* stacked layout per design */
    gap: 28px;
    align-items: start;
}

/* 4) Content panel */
.legacy .content-panel {
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    padding: 20px 24px;
}

.legacy .content-panel .float-image {
    float: right;
    width: min(44%, 520px);
    margin: 8px 0 12px 20px;
}

.legacy .content-panel::after { content: ""; display: block; clear: both; }

/* 5) Image panel (kept for possible future use) */
.legacy .legacy-image { background: #fff; border: 8px solid rgba(96, 109, 97, 0.3); border-radius: 10px; overflow: hidden; }
.legacy .legacy-image img { display: block; width: 100%; height: auto; }

/* 6) Responsive Design */

/* Large Desktop - 1200px and below */
@media (max-width: 1200px) {
    .legacy .legacy-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .legacy .content-panel {
        padding: 18px 20px;
    }
    
    .legacy .content-panel .float-image {
        width: min(42%, 480px);
        margin: 6px 0 10px 18px;
    }
}

/* Desktop - 992px and below */
@media (max-width: 992px) {
    .legacy {
        padding: 60px 0;
    }
    
    .legacy .container {
        margin-top: 5rem;
    }
    
    .legacy .legacy-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .legacy .legacy-text p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 14px;
    }
    
    .legacy .content-panel {
        padding: 16px 18px;
    }
    
    .legacy .content-panel .float-image {
        width: min(40%, 420px);
        margin: 5px 0 8px 16px;
    }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
    .legacy {
        padding: 50px 0;
    }
    
    .legacy .container {
        margin-top: 4rem;
    }
    
    .legacy .legacy-title {
        font-size: 1.9rem;
        margin-bottom: 18px;
    }
    
    .legacy .legacy-text p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    
    .legacy .content-panel {
        padding: 14px 16px;
    }
    
    .legacy .legacy-grid {
        gap: 20px;
    }
}

/* Mobile - 576px and below */
@media (max-width: 576px) {
    .legacy {
        padding: 40px 0;
    }
    
    .legacy .container {
        margin-top: 3rem;
        padding: 0 15px;
    }
    
    .legacy .legacy-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .legacy .legacy-text p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    .legacy .content-panel {
        padding: 12px 14px;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .legacy .content-panel .float-image {
        float: none;
        width: 100%;
        margin: 10px 0;
        display: block;
    }
    
    .legacy .legacy-grid {
        gap: 15px;
    }
}