/* Arabic/RTL version of Legal page styles */

/* HERO SECTION */
.legal-hero {
    position: relative;
    height: 100vh;
    /* Full screen height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.legal-hero .container {
    position: relative;
    z-index: 2;
    transform: translateY(-5vh);
}

.legal-hero .hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.legal-hero .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legal-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(137, 91, 0, 0.6) 0%,
            rgba(137, 91, 0, 0.6) 40%,
            rgba(0, 140, 27, 0.6) 100%);
    z-index: 1;
}

.legal-hero .hero-title {
    font-size: clamp(28px, 4vw, 52px);
    color: #ffb41e !important;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.legal-hero .hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: #fff;
    max-width: 800px;
    margin-inline: auto;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0;
    /* RTL override */
}

/* CONTENT SECTION */
.legal-content-section {
    background-color: #fff;
    position: relative;
    z-index: 2;
    min-height: 60vh;
}

.legal-block {
    margin-bottom: 60px;
}

.legal-block:last-child {
    margin-bottom: 0;
}


.legal-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* Adjust title mark position and mirror for RTL */
.legal-title .about-title-mark::after {
    bottom: -12px;
    /* Lifted up from -25px as requested */
    left: -10px;
    /* Flipped from right: -10px in English */
    right: auto !important;
    width: 100px;
    transform: scaleX(-1);
    /* Mirror the arrow/shape */
}


.legal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.legal-text h5 {
    font-size: 18px;
    font-weight: 700;
    color: #008c1b;
    margin-bottom: 10px;
}

.legal-text p {
    margin-bottom: 15px;
}

.legal-text a {
    color: #008c1b;
    text-decoration: none;
    font-weight: 600;
}

.legal-text a:hover {
    text-decoration: underline;
}

/* ANIMATIONS */
[data-reveal] {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

[data-reveal="up"] {
    transform: translateY(40px);
}

.reveal-in {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* RTL Styles */
[dir="rtl"] {
    font-family: "Cairo", sans-serif;
}

.text-dir-start {
    text-align: right !important;
    /* Flipped from left */
}

/* Footer alignment in RTL */
.footer-links {
    padding-right: 0 !important;
}

.footer-arrow {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .legal-hero {
        min-height: 50vh;
        height: auto;
        padding-top: 80px;
        /* Arabic override: 80px vs 100px */
        padding-bottom: 80px;
    }

    .legal-content-section {
        padding-top: 40px;
    }
}

@media (max-width: 575px) {
    .legal-content-section .container {
        padding-inline: 20px;
    }
}