/* =========================================================================
   General Legal & Policy Specific Styles (Light Theme)
   ========================================================================= */

.legal-main {
    padding: 120px 0 80px;
    background-color: var(--c-bg-light);
    /* Very light gray */
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--c-text);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.legal-page-title span {
    color: var(--c-gold);
}

.anchor-links-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.anchor-links {
    display: inline-flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.anchor-link {
    display: inline-block;
    padding: 14px 30px;
    background: var(--c-white);
    border: 1px solid #e0e0e0;
    color: var(--c-text);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.anchor-link svg {
    color: var(--c-green);
    /* Using the green color for trust/accessibility */
}

.anchor-link:hover {
    border-color: var(--c-green);
    color: var(--c-green);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.legal-section {
    background: var(--c-white);
    border-top: 4px solid var(--c-green);
    /* Trust color accent */
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    /* For smooth scroll offset */
    scroll-margin-top: 100px;
}

.legal-section-header {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.legal-h2 {
    font-size: 1.6rem;
    color: var(--c-text);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background-color: var(--c-gold);
    /* Warm accent */
    border-radius: 3px;
}

.legal-content {
    color: var(--c-text);
    line-height: 2;
    /* Increased line height for readability */
    font-size: 1.05rem;
    /* Larger font size for older users/parents */
}

.legal-content h3 {
    font-size: 1.25rem;
    color: var(--c-text);
    border-bottom: 2px dashed #eeeeee;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content p {
    margin-bottom: 24px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 12px;
}

/* Specific styling for Security Policy to make it stand out slightly */
#security {
    border-top-color: var(--c-magenta);
    /* Using magenta for IT/Security emphasis if appropriate, or keep green */
}

/* =========================================================================
   Responsive Adjustments
   ========================================================================= */
@media screen and (max-width: 768px) {
    .legal-main {
        padding: 90px 0 50px;
    }

    .legal-container {
        padding: 0 15px;
        /* Slightly less padding on mobile */
    }

    .legal-section {
        padding: 30px 20px;
    }

    .legal-page-title {
        font-size: 1.8rem;
    }

    .anchor-links {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .anchor-link {
        width: 100%;
        justify-content: center;
    }

    .legal-content {
        font-size: 1rem;
    }
}