/* ===========================
   Conway Safety Solutions
   Professional Fire Safety Website
   =========================== */

/* Root Variables */
:root {
    --primary-color: #FF4500;  /* Fire orange - professional yet memorable */
    --secondary-color: #1E3A8A; /* Deep blue - trust and professionalism */
    --accent-color: #FFA500;    /* Lighter orange for accents */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --background: #FFFFFF;
    --background-light: #F9FAFB;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #E03E00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    background: #1a2332; /* Dark navy from banner */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 120px;
    width: auto;
    display: block;
}

.logo-text {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: white;
    letter-spacing: 2px;
    margin-top: 1px;
    font-weight: 300;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--primary-color);
    margin-top: 2px;
    font-style: italic;
}

/* Fallback text logo (hidden when image is available) */
.logo h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
    display: none; /* Hidden when using image logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.nav-menu .cta-button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
}

.nav-menu .cta-button:hover {
    background: #E03E00;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
}

/* Brand Banner */
.brand-banner {
    background: #1a2332;
    padding: 1.5rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-img {
    width: auto;
    height: 120px;
    object-fit: contain;
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(255, 69, 0, 0.85)), url('../images/fire-safety-assessment-steps.png') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,138.7C672,128,768,128,864,138.7C960,149,1056,171,1152,165.3C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subheadline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
}

/* Trust Indicators */
.trust-indicators {
    background: var(--background-light);
    padding: 60px 0;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.indicator {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.indicator:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.indicator i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.indicator p {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

/* Section Styles */
.section-title {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    color: var(--secondary-color);
}

.mission-box {
    background: var(--background-light);
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    border-radius: 8px;
}

.mission-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.about-text li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    max-height: 500px;
}

/* Feature Images Section */
.feature-images {
    padding: 60px 0;
    background: var(--background-light);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.feature-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.feature-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: white;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1rem;
}

.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Industries Section */
.industries {
    padding: 80px 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Flip Card Container */
.industry-card {
    background: transparent;
    perspective: 1000px;
    min-height: 520px;
    height: auto;
    position: relative;
}

.industry-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.industry-card.flipped .industry-card-inner {
    transform: rotateY(180deg);
}

.industry-card-front, .industry-card-back {
    position: absolute;
    width: 100%;
    min-height: 520px;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.industry-card-back {
    transform: rotateY(180deg);
    padding: 30px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.industry-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.industry-card:hover .industry-overlay {
    background: rgba(255, 69, 0, 0.7);
}

.industry-overlay i {
    font-size: 3rem;
    color: white;
}

.industry-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
}

.industry-card p {
    padding: 0 1.5rem 4rem;
    margin-bottom: 0;
}

/* Front button styling for flip cards */
.industry-card-front .btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto !important;
    max-width: 180px !important;
    min-width: 140px !important;
    padding: 14px 32px;
    font-weight: 600;
}

/* Back Button for flipped cards */
.back-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF5500 0%, #FF7A00 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: auto !important;
    max-width: 180px !important;
    min-width: 140px !important;
    justify-content: center;
}

.back-button:after {
    content: "←";
    font-size: 18px;
    font-weight: bold;
    margin-left: 8px;
}

.back-button:hover {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%) !important;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.back-button:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.3);
}

/* Back Card Styling */
.industry-card-back h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding: 0;
}

.industry-card-back h4 {
    color: var(--primary-blue);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.industry-card-back ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.industry-card-back li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.industry-card-back li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-orange);
    font-weight: bold;
}

/* Removed duplicate back-button styles - see primary definition above */

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    display: block;
}

/* Alert Styles for Formspree Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-info li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.contact-info li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.contact-details {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    max-width: 100%;
}

.contact-details h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    margin-top: 0.1rem;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-item strong {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: inline-block;
    cursor: pointer;
}

.contact-item a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Special handling for email links */
.contact-item a[href^="mailto:"] {
    word-break: break-all;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .contact-item {
        font-size: 0.85rem;
    }
    
    .contact-item a {
        font-size: 0.8rem;
    }
}

/* Old contact-details p styles for backwards compatibility */
.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details p i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer Certifications */
.footer-certifications {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin: 2rem 0;
}

.certifications-content {
    text-align: center;
}

.certifications-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
}

.certification-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.certification-item {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-2px);
}

.certification-item img {
    max-height: 80px;
    width: auto;
    display: block;
}

.footer-column h3,
.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .logo-img {
        height: 45px;
    }
    
    .logo-text {
        display: none; /* Hide text on mobile to save space */
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a2332;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Sections */
    .hero {
        padding: 60px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .service-card,
    .industry-card {
        padding: 1.5rem;
    }
}
/* ===========================
   Legal Pages Styling
   =========================== */

.legal-page {
    padding: 120px 0 80px;
    min-height: calc(100vh - 400px);
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-page .last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.legal-content h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.legal-content ul {
    margin: 1.5rem 0 2rem 2rem;
    list-style-type: none;
}

.legal-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.legal-content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-content ul li strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* First h2 after h1 needs less top margin */
.legal-content h2:first-of-type {
    margin-top: 2rem;
}

/* Add visual separation between major sections */
.legal-content h2:not(:first-of-type) {
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 0 20px;
    }
    
    .legal-content ul {
        margin-left: 1rem;
    }
}

/* Lazy Loading Styles */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* Placeholder for lazy loaded images */
.lazy-load {
    background: #f3f4f6;
    min-height: 200px;
}

/* Image loading animation */
@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-loaded {
    animation: imageFadeIn 0.5s ease-out;
}
