/* Shared styles for Speak Life WA legal and safeguarding pages.
   Keep this file alongside the existing css/style1.css file. */

.page-header {
    background:
        radial-gradient(circle at 90% 10%, rgba(0, 104, 95, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

.legal-hero {
    padding: 3.5rem 0 2.5rem;
    background:
        radial-gradient(circle at 86% 20%, rgba(0, 104, 95, 0.09), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
    border-bottom: 1px solid var(--border);
}

.legal-page-title {
    max-width: 900px;
    margin: 0.65rem 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 4.8vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: var(--brand-dark);
}

.legal-intro {
    max-width: 780px;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.legal-updated {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.legal-content-section {
    padding: 3.5rem 0 4.5rem;
    background: var(--bg);
}

.legal-layout {
    max-width: 960px;
    margin: 0 auto;
}

.legal-card {
    padding: clamp(1.4rem, 4vw, 3.2rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-card h2 {
    margin: 2.25rem 0 0.8rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    color: var(--brand-dark);
    letter-spacing: -0.025em;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--muted);
}

.legal-card strong {
    color: var(--text);
}

.legal-card ul {
    padding-left: 1.35rem;
}

.legal-card li {
    margin-bottom: 0.45rem;
}

.legal-card a {
    color: var(--brand);
    font-weight: 700;
}

.legal-contact-box,
.legal-alert {
    margin: 1.25rem 0;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
}

.legal-contact-box {
    background: var(--brand-soft);
    border: 1px solid rgba(0, 104, 95, 0.18);
}

.legal-alert {
    background: #fff8e7;
    border: 1px solid #efd99b;
}

.legal-contact-box p,
.legal-alert p {
    margin-bottom: 0.35rem;
}

.legal-contact-box p:last-child,
.legal-alert p:last-child {
    margin-bottom: 0;
}

.legal-footer-inner {
    grid-template-columns: 1fr 1.5fr auto;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 1rem;
}

.footer-legal-links a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus,
.footer-contact a:hover,
.footer-contact a:focus {
    text-decoration: underline;
}

.footer-note {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.68);
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .legal-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact,
    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .legal-hero {
        padding: 2.5rem 0 2rem;
    }

    .legal-content-section {
        padding: 2rem 0 3rem;
    }

    .legal-card {
        border-radius: 16px;
    }

    .footer-legal-links {
        flex-direction: column;
    }
}