/* --- POLICY PAGE STYLES --- */

.policy-section {
    padding: 60px 0 100px;
    background-color: #fff;
}

.policy-section .container {
    max-width: 90%; /* Keeping your 90% preference */
    margin: 0 auto;
}

/* Dynamic Intro: Only adds space if it contains text */
.policy-intro p:empty {
    display: none;
}

.policy-intro {
    margin-bottom: 40px;
}

.policy-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    /* Your consistent branding update */
    border-left: 4px solid var(--light-green);
    padding-left: 20px; 
    text-align: justify;
    margin: 0; /* Keeps it tight within the intro div */
}

/* Table of Contents */
.policy-toc {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 50px;
    border: 1px solid #eee;
}

.policy-toc h4 {
    color: var(--dark-green);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.policy-toc ul {
    list-style: none;
    padding: 0;
}

.policy-toc li {
    margin-bottom: 10px;
}

.policy-toc a {
    text-decoration: none;
    color: var(--light-green);
    font-weight: 500;
    transition: color 0.3s;
}

.policy-toc a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Content Segments */
.policy-segment {
    margin-bottom: 50px;
    scroll-margin-top: 100px; /* Crucial: Prevents header from covering the title when jumping */
}

.policy-segment h3 {
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.policy-segment p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
    text-align: justify; /* Consistent with your Directors page */
}

.policy-segment ul, 
.policy-segment ol {
    padding-left: 25px;
    color: #444;
}

.policy-segment li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.policy-segment a {
    color: var(--light-green);
    text-decoration: none;
    font-weight: 500;
}

.policy-segment a:hover {
    text-decoration: underline;
    color: var(--dark-green);
}

/* --- POLICY OUTRO --- */

/* Ensures the section disappears if there's no text */
.policy-outro:empty,
.policy-outro p:empty {
    display: none;
}

.policy-outro {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee; /* Light line to signal the end of the document */
}

.policy-outro p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    font-style: italic; /* Distinguishes it from the formal policy text */
}