/* ==========================================================================
   Cleanavida Cleaning Services — Deluxe Legal Pages Styles (Terms, Privacy, 404)
   Palette: Baby Blue (#F4FAFF, #E6F3FF, #4BA3E8, #2B82C9) & Cleanavida Navy (#0B254E)
   ========================================================================== */

.legal-page-hero {
    background: linear-gradient(180deg, #D9EEFF 0%, #EBF6FF 60%, #F8FCFF 100%);
    border-bottom: 1px solid #CFE8FF;
    padding: 100px 0 60px;
    text-align: center;
    color: #0B254E;
    position: relative;
    overflow: hidden;
}

.legal-page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 300px;
    background: radial-gradient(circle, rgba(75, 163, 232, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: #FFFFFF;
    border: 1px solid #9ECEFF;
    color: #1B65A6;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(43, 130, 201, 0.1);
}

.legal-badge i,
.legal-badge svg {
    width: 16px;
    height: 16px;
    color: #2B82C9;
}

.legal-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    color: #0B254E;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.legal-hero-subtitle {
    font-size: 1.18rem;
    color: #2C4365;
    max-width: 720px;
    margin: 0 auto 12px;
    line-height: 1.6;
    font-weight: 400;
}

.legal-hero-meta {
    font-size: 0.88rem;
    color: #1B65A6;
    font-weight: 600;
    margin: 0;
}

/* Page Body & Container */
.legal-page-section {
    background: #F4FAFF;
    min-height: 80vh;
    padding: 60px 0 100px;
    position: relative;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-card {
    background: #FFFFFF;
    border: 1.5px solid #CFE8FF;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(11, 37, 78, 0.08);
    padding: 55px 50px;
    position: relative;
}

/* Section styling inside card */
.legal-section-block {
    margin-bottom: 45px;
}

.legal-section-block:last-child {
    margin-bottom: 0;
}

.legal-h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    color: #0B254E;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #E6F3FF;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.legal-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #E6F3FF, #CFE8FF);
    border: 1px solid #9ECEFF;
    color: #0B254E;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    flex-shrink: 0;
}

.legal-h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1B65A6;
    margin: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-card p {
    color: #2C4365;
    line-height: 1.85;
    font-size: 1.02rem;
    margin-bottom: 16px;
}

.legal-card strong {
    color: #0B254E;
    font-weight: 700;
}

.legal-list {
    list-style: none;
    margin: 18px 0 24px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-list li {
    position: relative;
    padding-left: 28px;
    color: #2C4365;
    line-height: 1.8;
    font-size: 1rem;
}

.legal-list li::before {
    content: "✦";
    position: absolute;
    left: 4px;
    top: 0;
    color: #2B82C9;
    font-size: 0.88rem;
}

/* Contact Info Box */
.legal-contact-card {
    background: #F4FAFF;
    border: 1.5px solid #9ECEFF;
    border-radius: 16px;
    padding: 32px 30px;
    margin-top: 24px;
    box-shadow: 0 10px 25px rgba(11, 37, 78, 0.06);
    position: relative;
    overflow: hidden;
}

.legal-contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #4BA3E8 0%, #0B254E 100%);
}

.legal-contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.legal-contact-header i,
.legal-contact-header svg {
    width: 24px;
    height: 24px;
    color: #2B82C9;
}

.legal-contact-header h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: #0B254E;
    margin: 0;
}

.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.legal-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #2C4365;
    font-size: 0.96rem;
    line-height: 1.6;
}

.legal-contact-item i,
.legal-contact-item svg {
    width: 18px;
    height: 18px;
    color: #2B82C9;
    margin-top: 3px;
    flex-shrink: 0;
}

.legal-contact-item a {
    color: #1B65A6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.legal-contact-item a:hover {
    color: #0B254E;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page-hero {
        padding: 85px 0 45px;
    }

    .legal-hero-title {
        font-size: 2.3rem;
    }

    .legal-hero-subtitle {
        font-size: 1.05rem;
    }

    .legal-card {
        padding: 35px 22px;
        border-radius: 16px;
    }

    .legal-h2 {
        font-size: 1.4rem;
    }

    .legal-contact-card {
        padding: 24px 18px;
    }

    .legal-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   404 Deluxe Error Page Styles
   ========================================================================== */
.error-page-section {
    background: linear-gradient(180deg, #E6F3FF 0%, #F4FAFF 100%);
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 100px;
    position: relative;
    overflow: hidden;
}

.error-page-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 450px;
    background: radial-gradient(circle, rgba(75, 163, 232, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.error-card {
    background: #FFFFFF;
    border: 1.5px solid #CFE8FF;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(11, 37, 78, 0.12);
    padding: 60px 48px;
    text-align: center;
    max-width: 720px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.error-code {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 7.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0 20px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0B254E 0%, #2B82C9 50%, #7BC0FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 25px rgba(43, 130, 201, 0.2));
}

.error-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: #0B254E;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.error-desc {
    color: #2C4365;
    font-size: 1.12rem;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.error-actions .btn-gold-solid,
.error-actions .btn-gold-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-gold-solid {
    background: linear-gradient(135deg, #0B254E 0%, #2B82C9 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(11, 37, 78, 0.25);
    border: none;
}

.btn-gold-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(43, 130, 201, 0.38);
}

.btn-gold-outline {
    background: #E6F3FF;
    color: #0B254E !important;
    border: 1.5px solid #9ECEFF;
}

.btn-gold-outline:hover {
    background: #CFE8FF;
    border-color: #4BA3E8;
    color: #0B254E !important;
    transform: translateY(-2px);
}

.error-support-bar {
    padding-top: 25px;
    border-top: 1px solid #E6F3FF;
    color: #2C4365;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.error-support-bar a {
    color: #1B65A6;
    font-weight: 700;
    text-decoration: none;
}

.error-support-bar a:hover {
    color: #0B254E;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .error-card {
        padding: 40px 24px;
        border-radius: 18px;
    }
    .error-code {
        font-size: 5rem;
    }
    .error-title {
        font-size: 1.7rem;
    }
    .error-desc {
        font-size: 1rem;
    }
    .error-actions {
        flex-direction: column;
    }
    .error-actions .btn-gold-solid,
    .error-actions .btn-gold-outline {
        width: 100%;
        justify-content: center;
    }
}
