/* =============================================
   Shared styles for legal pages & about us
   ============================================= */

/* Page Hero Banner */
.page-hero {
    background: linear-gradient(135deg, #1a3c72 0%, #2a5298 100%);
    padding: 2.8rem 1rem 2.5rem;
    color: white;
    text-align: center;
}

.page-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.82rem;
    opacity: 0.7;
}

.page-breadcrumb a {
    color: white;
    text-decoration: none;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

/* =============================================
   Content Container
   ============================================= */
.legal-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

/* Intro lead paragraph */
.legal-intro {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.75;
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface-2);
    border-left: 4px solid #3681F7;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

/* Section headings */
.legal-wrapper h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-wrapper h2::before {
    content: attr(data-num);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #3681F7;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Paragraphs */
.legal-wrapper p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.legal-wrapper a {
    color: var(--color-primary, #3681F7);
    text-decoration: none;
}

.legal-wrapper a:hover {
    text-decoration: underline;
}

/* Numbered list items (for disclaimer) */
.legal-wrapper .legal-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.legal-item-num {
    font-weight: 700;
    color: #3681F7;
    font-size: 1rem;
    min-width: 22px;
}

.legal-item-body strong {
    color: #1a2e4a;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.legal-item-body p {
    margin: 0;
    font-size: 0.9rem;
}

/* Contact block */
.legal-contact-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface-2);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.legal-contact-block .contact-icon {
    width: 44px;
    height: 44px;
    background: #3681F7;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.legal-contact-block h6 {
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.legal-contact-block p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-body);
}

/* Divider */
.legal-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 2rem 0;
}

/* =============================================
   About Us specific
   ============================================= */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.about-stat-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: var(--bg-surface-3);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.about-stat-card .stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3681F7;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.about-stat-card .stat-label {
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-default);
}

.about-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.about-tool-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-heading);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.about-tool-chip:hover {
    background: var(--bg-surface-2);
    border-color: var(--color-primary, #3681F7);
    color: var(--color-primary, #3681F7);
    text-decoration: none;
}

.about-tool-chip i {
    font-size: 0.85rem;
    color: #3681F7;
    width: 16px;
    text-align: center;
}

.about-mission-card {
    padding: 1.5rem;
    background: var(--bg-surface-2);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.about-mission-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.5rem;
    }

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

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

@media (max-width: 480px) {
    .about-tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    .legal-item {
        flex-direction: column;
        gap: 0.4rem;
    }
}
