/* Legacy Section */
.legacy-section {
    padding: 5rem 20px;
    background: linear-gradient(135deg, #2d5016 0%, #1a3310 100%);
    position: relative;
    overflow: hidden;
}

.legacy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.2;
}

.legacy-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legacy-title-about {
    font-size: 2rem !important;
    font-weight: 500;
    color: #ffffff !important;
    text-align: center;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
}

.legacy-subtitle {
    font-size: 0.9rem !important;
    color: #e8f5e9;
    text-align: center;
    margin: 0 0 50px 0;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin: 0 0 12px 0;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555555;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .legacy-title {
        font-size: 1.8rem;
    }

    .legacy-subtitle {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .legacy-section {
        padding: 60px 20px;
    }

    .legacy-title {
        font-size: 1.6rem;
    }

    .legacy-subtitle {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-card {
        padding: 30px 20px;
    }
}

/* Mac-specific font size reduction */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    @supports (-webkit-appearance: none) and (not (transform: translateZ(0))) {
        .legacy-title {
            font-size: 2rem !important;
        }
        
        .legacy-subtitle {
            font-size: 0.92rem !important;
        }
        
        .stat-number {
            font-size: 2.25rem !important;
        }
        
        .stat-label {
            font-size: 0.78rem !important;
        }
    }
}
