/* ============================================
   LEGAL PAGES STYLING
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    color: #666666;
    line-height: 1.8;
}

.legal-hero {
    position: relative;
    min-height: 400px;
    background-image: url('https://images.unsplash.com/photo-1592417817098-8fd3d9eb14a5?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-hero-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 120px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    font-style: italic;
    color: #A89176;
}

.legal-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.legal-updated {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 40px;
    padding: 10px 20px;
    background: #F8F9FA;
    border-radius: 25px;
    display: inline-block;
    width: 100%;
}

.legal-intro-text {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.8;
}

.legal-content {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    color: #A89176;
    margin: 50px 0 25px 0;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 35px 0 20px 0;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul,
.legal-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 12px;
}

.legal-content a {
    color: #A89176;
    text-decoration: underline;
    transition: color 0.3s;
}

.legal-content a:hover {
    color: #8B7966;
}

.legal-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.contact-box {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #A89176;
}

.contact-box p {
    margin-bottom: 10px;
}

.contact-box ul {
    margin-top: 15px;
}

/* CERTIFICATES PAGE SPECIFIC */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.cert-card {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #E0E0E0;
    transition: all 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #A89176;
}

.cert-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.cert-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cert-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.cert-status {
    display: inline-block;
    padding: 6px 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.standards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.standard-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #F8F9FA;
    border-radius: 12px;
    transition: all 0.3s;
}

.standard-item:hover {
    background: #EEEFF1;
    transform: translateX(5px);
}

.standard-check {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #A89176;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.standard-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.standard-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.info-box {
    background: #fff3cd;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #ffc107;
}

.info-box h3 {
    font-size: 20px;
    color: #856404;
    margin-bottom: 15px;
}

.info-box ul {
    margin: 0;
    padding-left: 25px;
}

.info-box li {
    color: #856404;
    margin-bottom: 10px;
}

/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 968px) {
    .legal-hero {
        min-height: 250px;
        background-attachment: scroll;
    }

    .legal-hero-box {
        padding: 35px 30px;
    }

    .legal-hero-title {
        font-size: 32px;
    }

    .legal-section {
        padding: 50px 0;
    }

    .legal-container {
        padding: 0 20px;
    }

    .legal-content {
        font-size: 14px;
    }

    .legal-content h2 {
        font-size: 26px;
        margin: 40px 0 20px 0;
    }

    .legal-content h3 {
        font-size: 19px;
        margin: 30px 0 15px 0;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cert-card {
        padding: 25px 20px;
    }

    .standard-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .contact-box,
    .info-box {
        padding: 20px;
    }
}

@media (max-width: 374px) {
    .legal-hero-title {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 24px;
    }
}