/*
 * MMR Homecare - Policies Stylesheet
 *
 * This stylesheet provides a consistent, modern, and accessible design for all legal and policy pages,
 * including Privacy Policy, Terms of Service, and Cookies Policy. It aligns with the main website's
 * dark, glassmorphism theme while ensuring readability for important legal content.
 *
 * Key Features:
 * - Dark Theme: A deep, gradient background that matches the main site.
 * - Glassmorphism: Semi-transparent, blurred containers for a modern look.
 * - Accent Color: Uses the brand's signature green (#48bb70) for headings and links.
 * - Readability: Prioritizes clear, legible fonts (Raleway, Montserrat) and structured layouts.
 * - Responsive Design: Adapts gracefully to different screen sizes, from mobile to desktop.
 * - Unified Components: Consistent styling for headers, content sections, tables, and contact info.
 */

/* --- Base & Typography --- */
body {
    background: linear-gradient(180deg, #000000, #2f7654, #000000);
    min-height: 100vh;
    color: #d0d0d0;
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

a {
    color: #48bb70;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #3a9d5d;
    text-decoration: underline;
}

/* --- Logo --- */
.fixed-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.fixed-logo img {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.fixed-logo:hover img {
    transform: scale(1.05);
}

/* --- Main Page Structure --- */
.policy-page {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 80px;
    box-sizing: border-box;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Page Header --- */
.policy-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 28px 20px;
    background: rgba(72, 187, 112, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(72, 187, 112, 0.12);
}

.policy-header h1 {
    font-size: 2.2rem;
    color: #48bb70;
    margin: 0 0 6px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.last-updated {
    color: #a0a0a0;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

/* --- Main Content Area --- */
.policy-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    text-align: left;
}

.policy-section {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(72, 187, 112, 0.09);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    font-size: 1.35rem;
    color: #48bb70;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.policy-section p {
    font-size: 1rem;
    color: #d0d0d0;
    margin-bottom: 12px;
}

.policy-section ul {
    list-style: disc;
    margin: 16px 0 16px 22px;
    padding: 0;
}

.policy-section li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* --- Specific Components --- */

/* Contact Info Box */
.contact-info {
    background: rgba(72, 187, 112, 0.06);
    padding: 18px;
    border-left: 4px solid #48bb70;
    border-radius: 8px;
    margin-top: 12px;
}

.contact-info p {
    margin: 8px 0;
    color: #b0b0b0;
}

.contact-info strong {
    color: #48bb70;
}

/* Cookies Table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(72, 187, 112, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.cookies-table thead {
    background: rgba(72, 187, 112, 0.12);
}

.cookies-table th,
.cookies-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(72, 187, 112, 0.12);
}

.cookies-table th {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    color: #48bb70;
}

.cookies-table td {
    font-family: 'Arimo', sans-serif;
    color: #b0b0b0;
}

/* --- Footer --- */
.footer {
    background: #18072e;
    color: #b0b0b0;
    padding: 50px 20px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(72, 187, 112, 0.12);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 20px;
}

.footer-company .footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #a0a0a0;
}

.footer-contact-info {
    margin-top: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: #48bb70;
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.footer-nav h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #48bb70;
    font-family: 'Sora', sans-serif;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social .social-icon {
    color: #a0a0a0;
    font-size: 1.2rem;
}

.footer-social .social-icon:hover {
    color: #48bb70;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: #707070;
    font-size: 0.9rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-designed-by {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-designed-by .hamza-logo img {
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-designed-by .hamza-logo:hover img {
    opacity: 1;
}


/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 768px) {
    .policy-page {
        padding: 100px 15px 60px;
    }

    .policy-header h1 {
        font-size: 1.9rem;
    }

    .policy-content {
        padding: 26px;
    }

    .policy-section h2 {
        font-size: 1.25rem;
    }

    .policy-section p,
    .policy-section li {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .fixed-logo {
        top: 15px;
        left: 15px;
    }
    
    .fixed-logo img {
        width: 80px;
    }

    .policy-page {
        padding: 80px 10px 40px;
    }

    .policy-header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }

    .policy-header h1 {
        font-size: 1.6rem;
    }

    .policy-content {
        padding: 20px 15px;
    }

    .policy-section h2 {
        font-size: 1.15rem;
    }

    .policy-section p,
    .policy-section li {
        font-size: 0.9rem;
    }

    .cookies-table {
        font-size: 0.85rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 8px 10px;
    }
}
