/**
 * Info Pages Stylesheet
 * =====================
 * Custom styling for About, Contact, Privacy, Terms pages
 * Uses .info-page and .about-* namespace for consistent styling
 */

/* ==========================================================================
   CSS Variables (Info Pages)
   ========================================================================== */
:root {
    --info-max-width: 900px;
    --info-accent: #0066cc;
    --info-accent-hover: #0052a3;
    --info-text: #1a2a3a;
    --info-text-light: #5a6a7a;
    --info-bg: #f0f5f9;
    --info-surface: #ffffff;
    --info-border: #d0dde8;
    --info-gradient-start: #1e3a5f;
    --info-gradient-end: #2980b9;
}

/* ==========================================================================
   About Page Container
   ========================================================================== */
.about-page {
    max-width: var(--info-max-width);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.about-page h1 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--info-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */
.about-intro,
.about-stats,
.about-features,
.about-sources,
.about-tech {
    background: var(--info-surface);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--info-border);
    box-shadow: 0 4px 16px rgba(26, 42, 58, 0.06);
}

.about-page section h2 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--info-text);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--info-accent);
    display: inline-block;
}

.about-page section p {
    color: var(--info-text-light);
    line-height: 1.8;
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.about-page section p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   About Intro - Special Styling
   ========================================================================== */
.about-intro {
    background: linear-gradient(135deg, var(--info-gradient-start) 0%, var(--info-gradient-end) 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(26, 58, 92, 0.25);
}

.about-intro h2 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.about-intro p,
.about-page .about-intro p {
    color: white;
    font-size: 1.15rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.about-stats .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-stats .stat {
    background: linear-gradient(135deg, #e8f4fd 0%, #dbeafe 100%);
    padding: 1.5rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.about-stats .stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.about-stats .stat-value {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--info-accent);
    display: block;
    line-height: 1.2;
}

.about-stats .stat-label {
    color: var(--info-text-light);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Features List
   ========================================================================== */
.about-features ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.about-features li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    color: var(--info-text);
    line-height: 1.6;
    border-bottom: 1px solid var(--info-border);
}

.about-features li:last-child {
    border-bottom: none;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--info-accent), #4a9eff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.about-features li strong {
    color: var(--info-text);
    font-weight: 700;
}

/* ==========================================================================
   Sources and Tech Sections - Alternating Accents
   ========================================================================== */
.about-sources {
    border-left: 4px solid var(--info-accent);
}

.about-tech {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-tech a {
    color: var(--info-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.about-tech a:hover {
    color: var(--info-accent-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Links within sections
   ========================================================================== */
.about-page section a {
    color: var(--info-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-page section a:hover {
    color: var(--info-accent-hover);
    text-decoration: underline;
}

.about-intro a {
    color: #90cdf4;
}

.about-intro a:hover {
    color: white;
}

/* ==========================================================================
   Privacy Policy Specific - em styling
   ========================================================================== */
.about-page>p>em {
    color: var(--info-text-light);
    font-style: italic;
    display: block;
    margin-bottom: 2rem;
    text-align: center;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .about-page {
        padding: 2rem 1.5rem 3rem;
    }

    .about-page h1 {
        font-size: 1.75rem;
    }

    .about-intro,
    .about-stats,
    .about-features,
    .about-sources,
    .about-tech {
        padding: 1.5rem;
    }

    .about-stats .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-page {
        padding: 1.5rem 1rem;
    }

    .about-stats .stat-grid {
        grid-template-columns: 1fr;
    }

    .about-features li {
        padding-left: 2rem;
    }

    .about-features li::before {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
}