/* File: /JobMail_AI/policy/policy.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color-policy: #5e72e4; /* Main accent color */
    --secondary-color-policy: #f4f7f6; /* Light background */
    --text-color-policy: #3a3f51; /* Dark text for readability */
    --text-muted-policy: #6c757d; /* Lighter text for less emphasis */
    --heading-color-policy: #323d6f; /* Slightly darker blue for headings */
    --border-color-policy: #e0e7ff; /* Light border color */
    --card-bg-policy: #ffffff;
    --card-shadow-policy: 0 4px 15px rgba(0, 0, 0, 0.08);
    --font-family-base: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.75; /* Increased for better readability */
    color: var(--text-color-policy);
    background-color: var(--secondary-color-policy);
    margin: 0;
    padding: 25px; /* Add some padding around the body */
    display: flex; /* For centering the container */
    justify-content: center; /* For centering the container */
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
}

.policy-container {
    max-width: 850px; /* Slightly wider */
    width: 100%; /* Ensure it's responsive */
    margin: 20px auto;
    background-color: var(--card-bg-policy);
    padding: 35px 45px; /* Increased padding */
    border-radius: 10px; /* Softer radius */
    box-shadow: var(--card-shadow-policy);
    border-top: 5px solid var(--primary-color-policy); /* Accent border on top */
    position: relative; /* Ensure absolute children (back button) are positioned inside */
}

h1 {
    color: var(--primary-color-policy);
    /* border-bottom: 2px solid var(--primary-color-policy); */
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700; /* Bolder for main heading */
    font-size: 2em; /* Larger main heading */
    text-align: center;
}

h2 {
    color: var(--heading-color-policy);
    margin-top: 35px;
    margin-bottom: 18px;
    font-weight: 600; /* Bolder subheadings */
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color-policy);
    padding-bottom: 8px;
}

h1:first-of-type, h2:first-of-type {
    margin-top: 0; /* Remove top margin for the very first heading */
}


p {
    margin-bottom: 18px; /* Increased spacing */
    color: var(--text-color-policy); /* Using main text color */
    font-size: 0.95rem;
}

ul, ol { /* Added ol for completeness */
    margin-left: 0; /* Reset default */
    margin-bottom: 20px;
    padding-left: 25px; /* Indent list items */
    list-style-position: outside; /* Ensure markers are outside */
}

li {
    margin-bottom: 10px;
    color: var(--text-muted-policy);
    font-size: 0.9rem;
}

li::marker { /* Style list markers */
    color: var(--primary-color-policy);
    font-weight: bold;
}

a {
    color: var(--primary-color-policy);
    text-decoration: none;
    font-weight: 500; /* Make links slightly bolder */
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #4d61d0; /* Darken on hover */
    text-decoration: underline;
}

strong {
    font-weight: 600;
    color: var(--text-color-policy);
}

/* Footer-like section for policy pages (optional) */
.policy-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color-policy);
    text-align: center;
    font-size: 0.85em;
    color: var(--text-muted-policy);
}

.policy-footer a {
    margin: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    .policy-container {
        padding: 25px 20px;
        margin: 10px auto;
    }
    h1 {
        font-size: 1.75em;
    }
    h2 {
        font-size: 1.35em;
    }
}

/* Back to home button used in policy pages */
.back-home-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: 2px solid #638ecb;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-home-btn:hover {
    background: #638ecb;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 142, 203, 0.3);
}

.back-home-btn svg {
    width: 20px;
    height: 20px;
    fill: #638ecb;
    transition: fill 0.3s ease;
}

.back-home-btn:hover svg {
    fill: white;
}

@media (max-width: 768px) {
    .back-home-btn { top: 1rem; right: 1rem; width: 36px; height: 36px; }
    .back-home-btn svg { width: 18px; height: 18px; }
}