/* --- 1. Global & Typography Settings (High Readability) --- */

.legal-content, .faq-container {
    max-width: 980px; 
    margin: 40px auto;
    padding: 0 40px; 
    line-height: 1.85; 
    color: #333333; /* Dark Charcoal */
    font-family: 'Arial', sans-serif; /* Clean, professional font */
    font-size: 1.05em; 
}

/* --- 2. Hero Section (Header) Styling - Deep Teal Accent --- */

.legal-hero, .faq-hero {
    /* Deep Teal Gradient - Matches About Us Primary Color */
    background: linear-gradient(145deg, #004d40 0%, #00665c 100%); 
    color: white;
    padding: 80px 20px 50px;
    text-align: center;
    border-bottom: 6px solid #FF8A65; /* Soft Coral Accent */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.legal-hero h1, .faq-hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.legal-hero p, .faq-hero p {
    font-size: 1.2em;
    opacity: 0.9;
}

.legal-tagline {
    font-style: italic;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.15); 
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FF8A65; /* Coral text for contrast */
    font-weight: 500;
}

/* --- 3. Content Headings and Structure --- */

.legal-content h2 {
    font-size: 2.2em;
    color: #004d40; /* Deep Teal Accent */
    margin-top: 50px;
    margin-bottom: 15px;
    /* Clean bottom border for separation */
    border-bottom: 2px solid #26a69a; /* Sea Green Divider */
    padding-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.legal-content h3 {
    font-size: 1.6em;
    color: #26a69a; /* Sea Green Secondary Accent */
    margin-top: 30px;
    margin-bottom: 12px;
    font-weight: 700;
}

.legal-content h4 {
    font-size: 1.2em;
    color: #555; 
    margin-top: 18px;
    margin-bottom: 5px;
    font-weight: 700;
    padding-left: 10px;
}

.legal-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.legal-content ul li {
    padding-left: 1.5em;
    text-indent: -1.5em;
}

.legal-content ul li:before {
    content: "•"; 
    color: #FF8A65; /* Coral bullet point */
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
}

.legal-content strong {
    color: #000;
    font-weight: 700;
}

/* Specific Contact/Grievance Box (Styled as a prominent card) */
.contact-box {
    border: 1px solid #FF8A65;
    padding: 25px;
    margin: 30px 0;
    background-color: #fff8f5; /* Very light coral tint */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #004d40; /* Deep Teal Side Accent */
    line-height: 1.6;
}

/* --- 4. FAQ Specific Styling (Accordion) --- */

.faq-category {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f7fcfc; /* Light Teal Tint */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.category-heading {
    font-size: 1.8em;
    color: #004d40;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #26a69a; 
    font-weight: 700;
}

/* Accordion Item */
.faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.1);
}

.faq-question {
    padding: 18px 25px;
    font-weight: 600;
    color: #004d40;
    cursor: pointer;
    background-color: #ffffff; /* Clean white question background */
    border-left: 4px solid #FF8A65; /* Coral Active Indicator */
    display: block;
    position: relative;
}

.faq-question:after {
    content: "+";
    position: absolute;
    right: 25px;
    font-size: 1.5em;
    color: #26a69a;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.faq-item[open] > .faq-question {
    background-color: #e0f2f1; /* Light Sea Green background when open */
    color: #004d40; 
    border-left: 4px solid #004d40;
}

.faq-item[open] > .faq-question:after {
    content: "–";
    transform: translateY(-50%) rotate(0deg); 
    color: #004d40;
}

.faq-answer {
    padding: 20px 25px;
    background-color: #fcfcfc;
    line-height: 1.7;
    color: #555;
}


/* --- 5. FAQ CTA Section --- */

.cta-section {
    text-align: center;
    background-color: #004d40; /* Deep Teal Background */
    color: white;
    padding: 50px 30px;
    margin-top: 50px;
    border-radius: 10px;
}

.cta-section h3 {
    color: #FF8A65;
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-details a {
    color: #fcfcfc;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #26a69a;
}