/* ===================================================== */
/* RESET */
/* ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================================== */
/* BODY */
/* ===================================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #0f172a;
}

/* ===================================================== */
/* LEGALS PAGE */
/* ===================================================== */

.legals-page {
    width: 100%;
    padding: 40px 0;
    background: #ffffff;
    min-height: 100vh;
}

/* ===================================================== */
/* CONTAINER */
/* ===================================================== */

.container {
    width: 95%;
    max-width: 1450px;
    margin: auto;
}

/* ===================================================== */
/* LAYOUT */
/* ===================================================== */

.legals-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 25px;
    align-items: start;
}

/* ===================================================== */
/* SIDEBAR */
/* ===================================================== */

.legal-sidebar {
    position: sticky;
    top: 120px;
}

/* ===================================================== */
/* SIDEBAR CARD */
/* ===================================================== */

.sidebar-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.sidebar-card h3 {
    font-size: 21px;
    color: #0f172a;
    margin-bottom: 15px;
}

.sidebar-card p {
    line-height: 2;
    color: #475569;
    font-size: 15px;
}

/* ===================================================== */
/* MAIN CONTENT */
/* ===================================================== */

.legal-content {
    width: 100%;
}

/* ===================================================== */
/* LEGAL CARD */
/* ===================================================== */

.legal-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
}

/* ===================================================== */
/* MENU */
/* ===================================================== */

.legal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.legal-menu button {
    background: #f1f5f9;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: #0f172a;
}

.legal-menu button.active {
    background: #2563eb;
    color: #ffffff;
}

.legal-menu button:hover {
    transform: translateY(-2px);
    background: #2563eb;
    color: #ffffff;
}

/* ===================================================== */
/* CONTENT BOX */
/* ===================================================== */

.legal-box {
    line-height: 2.1;
    color: #334155;
    font-size: 16px;
    text-align: start;
}

.legal-box h2 {
    font-size: 30px;
    margin-bottom: 25px;
    color: #0f172a;
}

.legal-box p {
    margin-bottom: 20px;
}

.legal-box ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.legal-box li {
    margin-bottom: 10px;
}

.important-text {
    background: #eff6ff;
    border-left: 5px solid #2563eb;
    padding: 18px;
    border-radius: 18px;
    color: #1e3a8a;
    font-weight: 700;
}

.contact-box {
    background: #f8fafc;
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid #e2e8f0;
}

.contact-box p {
    margin-bottom: 10px;
}

/* ===================================================== */
/* HERO */
/* ===================================================== */

.legal-hero {
    position: relative;
    height: auto;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 30px;
    background: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0f172a;
    padding: 10px 20px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    line-height: 2;
    max-width: 750px;
}
/* ===================================================== */
/* RTL SYSTEM (CLEAN & PRO) */
/* ===================================================== */

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .legals-layout {
    direction: rtl;
}

html[dir="rtl"] .legal-box,
html[dir="rtl"] .sidebar-card,
html[dir="rtl"] .legal-card {
    text-align: right;
}

html[dir="rtl"] .legal-box ul {
    padding-right: 22px;
    padding-left: 0;
}

html[dir="rtl"] .important-text {
    border-right: 5px solid #2563eb;
    border-left: 0;
}

html[dir="rtl"] .contact-box {
    text-align: right;
}

/* ===================================================== */
/* RESPONSIVE 1200 */
/* ===================================================== */

@media(max-width:1200px) {
    .legals-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        display: none;
    }
}

/* ===================================================== */
/* RESPONSIVE 768 */
/* ===================================================== */

@media(max-width:768px) {
    .legals-page {
        padding: 20px 0;
    }

    .legal-card {
        padding: 25px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .legal-menu {
        flex-direction: column;
    }

    .legal-menu button {
        width: 100%;
    }
}

/* ===================================================== */
/* RESPONSIVE 480 */
/* ===================================================== */

@media(max-width:480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .legal-box h2 {
        font-size: 22px;
    }

    .legal-box {
        font-size: 14px;
    }

    .legal-card {
        padding: 18px;
    }
}