﻿
.btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 8px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 5% 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -20%;
        width: 80%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

    .page-hero h1 {
        font-size: 56px;
        font-weight: 800;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }

    .page-hero p {
        font-size: 20px;
        max-width: 700px;
        margin: 0 auto;
        opacity: 0.95;
        position: relative;
        z-index: 1;
    }

/* Last Updated */
.last-updated {
    text-align: center;
    padding: 20px 5%;
    background: var(--white);
    color: var(--gray);
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

/* Table of Contents */
.toc-section {
    padding: 40px 5%;
    background: var(--white);
}

.toc-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--light);
    border-radius: 16px;
    padding: 30px;
}

    .toc-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

.toc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.toc-link {
    color: var(--primary);
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: color 0.3s;
}

    .toc-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Privacy Content */
.privacy-content {
    padding: 60px 5%;
    background: var(--white);
}

.privacy-container {
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

    .privacy-section h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary);
        display: inline-block;
    }

    .privacy-section h3 {
        font-size: 20px;
        font-weight: 600;
        margin: 20px 0 15px;
        color: var(--dark);
    }

    .privacy-section p {
        color: var(--gray);
        line-height: 1.8;
        margin-bottom: 15px;
    }

    .privacy-section ul, .privacy-section ol {
        margin: 15px 0 15px 25px;
        color: var(--gray);
        line-height: 1.8;
    }

    .privacy-section li {
        margin-bottom: 8px;
    }

.highlight-box {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

    .data-table th, .data-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #e2e8f0;
    }

    .data-table th {
        background: var(--light);
        font-weight: 600;
        color: var(--dark);
    }

    .data-table td {
        color: var(--gray);
    }

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

    .cookie-table th, .cookie-table td {
        padding: 12px;
        text-align: left;
        border: 1px solid #e2e8f0;
    }

    .cookie-table th {
        background: var(--light);
        font-weight: 600;
    }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
    }

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

        .nav-links.active {
            display: flex;
        }

    .page-hero h1 {
        font-size: 36px;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .privacy-section h2 {
        font-size: 24px;
    }

    .data-table, .cookie-table {
        font-size: 12px;
    }
}

/* ============================================ */
/* URDU LANGUAGE SPECIFIC STYLES - RTL SUPPORT */
/* FOR PRIVACY POLICY PAGE */
/* ============================================ */

/* Urdu Font Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* Main Urdu Container */
#lang-ur {
    font-family: 'Noto Nastaliq Urdu', 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
}

    /* ===== NAVIGATION RTL ===== */
    #lang-ur .nav-links {
        flex-direction: row-reverse;
    }

    #lang-ur .nav-container {
        direction: rtl;
    }

    #lang-ur .logo {
        direction: ltr;
        display: inline-block;
    }

    /* ===== LANGUAGE DROPDOWN RTL ===== */
    #lang-ur .language-dropdown {
        direction: ltr;
    }

    #lang-ur .dropdown-content {
        right: auto;
        left: 0;
    }

    /* ===== PAGE HERO SECTION RTL ===== */
    #lang-ur .page-hero {
        direction: rtl;
    }

        #lang-ur .page-hero h1,
        #lang-ur .page-hero p {
            text-align: center;
        }

    /* ===== LAST UPDATED SECTION RTL ===== */
    #lang-ur .last-updated {
        direction: rtl;
        text-align: center;
    }

    /* ===== TABLE OF CONTENTS SECTION RTL ===== */
    #lang-ur .toc-section {
        direction: rtl;
    }

    #lang-ur .toc-container {
        direction: rtl;
        text-align: right;
    }

        #lang-ur .toc-container h2 {
            text-align: right;
        }

    #lang-ur .toc-grid {
        direction: rtl;
    }

    #lang-ur .toc-link {
        text-align: right;
        display: block;
    }

    /* ===== PRIVACY CONTENT RTL ===== */
    #lang-ur .privacy-content {
        direction: rtl;
    }

    #lang-ur .privacy-container {
        direction: rtl;
    }

    /* ===== PRIVACY SECTIONS RTL ===== */
    #lang-ur .privacy-section {
        direction: rtl;
        text-align: right;
    }

        #lang-ur .privacy-section h2 {
            text-align: right;
            border-bottom: 2px solid var(--primary);
            display: inline-block;
        }

        #lang-ur .privacy-section h3 {
            text-align: right;
        }

        #lang-ur .privacy-section p {
            text-align: right;
        }

        /* Lists in Privacy Section */
        #lang-ur .privacy-section ul,
        #lang-ur .privacy-section ol {
            margin: 15px 25px 15px 0;
            text-align: right;
        }

        #lang-ur .privacy-section li {
            text-align: right;
            margin-bottom: 8px;
        }

    /* Highlight Box */
    #lang-ur .highlight-box {
        border-left: none;
        border-right: 4px solid var(--primary);
        text-align: right;
    }

    /* ===== DATA TABLES RTL ===== */
    #lang-ur .data-table {
        width: 100%;
        border-collapse: collapse;
        direction: rtl;
    }

        #lang-ur .data-table th,
        #lang-ur .data-table td {
            text-align: right;
            padding: 12px;
            border-bottom: 1px solid #e2e8f0;
        }

        #lang-ur .data-table th {
            background: var(--light);
            font-weight: 600;
        }

    /* ===== COOKIE TABLES RTL ===== */
    #lang-ur .cookie-table {
        width: 100%;
        border-collapse: collapse;
        direction: rtl;
        display: table;
    }

        #lang-ur .cookie-table th,
        #lang-ur .cookie-table td {
            text-align: right;
            padding: 12px;
            border: 1px solid #e2e8f0;
        }

        #lang-ur .cookie-table th {
            background: var(--light);
            font-weight: 600;
        }

    /* ===== BACK TO TOP BUTTON RTL ===== */
    #lang-ur .back-to-top {
        right: auto;
        left: 30px;
    }

    /* ===== FOOTER RTL ===== */
    #lang-ur .footer {
        direction: rtl;
    }

    #lang-ur .footer-grid {
        direction: rtl;
    }

    #lang-ur .footer-col {
        text-align: right;
    }

    #lang-ur .footer-bottom {
        text-align: center;
    }

    /* ===== KEEP EMAILS, PHONES, NUMBERS LTR ===== */
    #lang-ur .footer-col a[href^="mailto:"],
    #lang-ur .footer-col a[href^="tel:"] {
        direction: ltr;
        display: inline-block;
    }

/* ===== MOBILE RESPONSIVE RTL ===== */
@media (max-width: 768px) {
    #lang-ur .nav-links {
        flex-direction: column;
        text-align: center;
    }

    #lang-ur .dropdown-content {
        left: 50%;
        right: auto;
        transform: translateX(50%);
    }

    #lang-ur .page-hero h1 {
        font-size: 36px;
    }

    #lang-ur .toc-grid {
        grid-template-columns: 1fr;
    }

    #lang-ur .footer-grid {
        direction: rtl;
    }

    #lang-ur .footer-col {
        text-align: center;
    }

    #lang-ur .privacy-section h2 {
        font-size: 24px;
        display: block;
        text-align: center;
    }

    #lang-ur .privacy-section ul,
    #lang-ur .privacy-section ol {
        margin: 15px 20px 15px 0;
    }

    #lang-ur .highlight-box {
        text-align: center;
        border-right: none;
        border-left: none;
        border-top: 4px solid var(--primary);
    }

    #lang-ur .data-table,
    #lang-ur .cookie-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }

        #lang-ur .data-table th,
        #lang-ur .data-table td,
        #lang-ur .cookie-table th,
        #lang-ur .cookie-table td {
            text-align: center;
        }
}

/* ===== FIX TABLE OF CONTENTS LINKS HOVER ===== */
#lang-ur .toc-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== FIX PRIVACY SECTION HEADINGS ===== */
#lang-ur .privacy-section h2 {
    display: inline-block;
}

/* ===== FIX HIGHLIGHT BOX ICON POSITION ===== */
#lang-ur .highlight-box i {
    margin-left: 0;
    margin-right: 0;
}

/* ===== FIX SCROLLBAR FOR RTL (Optional) ===== */
#lang-ur ::-webkit-scrollbar {
    width: 10px;
}

#lang-ur ::-webkit-scrollbar-track {
    background: var(--light);
}

#lang-ur ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* ===== FIX DROPDOWN CONTENT POSITION ===== */
#lang-ur .dropdown-content {
    text-align: right;
}

    #lang-ur .dropdown-content a {
        justify-content: flex-start;
    }

/* ===== FIX LANGUAGE BUTTON DROPDOWN ARROW ===== */
#lang-ur .language-btn .fa-chevron-down {
    transform: rotate(0deg);
}

/* ===== FIX BACK TO TOP BUTTON HOVER ===== */
#lang-ur .back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== ENSURE PROPER WORD WRAPPING ===== */
#lang-ur .privacy-section p,
#lang-ur .privacy-section li,
#lang-ur .highlight-box p,
#lang-ur .toc-link,
#lang-ur .footer-col a,
#lang-ur .data-table td,
#lang-ur .cookie-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== FIX PAGE HERO OVERLAY ===== */
#lang-ur .page-hero::before {
    left: auto;
    right: -20%;
}

/* ===== FIX TOC CONTAINER BACKGROUND ===== */
#lang-ur .toc-container {
    background: var(--light);
}

/* ===== FIX BUTTON ICONS ===== */
#lang-ur .btn-primary i,
#lang-ur .btn-outline i {
    margin-left: 0;
    margin-right: 8px;
}

/* ===== FIX LIST STYLES FOR RTL ===== */
#lang-ur .privacy-section ul {
    padding-right: 0;
}

#lang-ur .privacy-section ol {
    padding-right: 0;
}

/* ===== FIX HIGHLIGHT BOX BORDER ===== */
#lang-ur .highlight-box {
    border-right: 4px solid var(--primary);
    border-left: none;
}

/* ===== FIX PRIVACY SECTION SCROLL MARGIN ===== */
#lang-ur .privacy-section {
    scroll-margin-top: 100px;
}

/* ===== FIX BACK TO TOP BUTTON ANIMATION ===== */
#lang-ur .back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ===== FIX FOOTER BORDER ===== */
#lang-ur .footer-bottom {
    border-top: 1px solid #334155;
}

/* ===== FIX TOC GRID GAP ===== */
#lang-ur .toc-grid {
    gap: 15px;
}

/* ===== FIX PRIVACY SECTION MARGIN ===== */
#lang-ur .privacy-section {
    margin-bottom: 40px;
}

/* ===== FIX HIGHLIGHT BOX MARGIN ===== */
#lang-ur .highlight-box {
    margin: 20px 0;
}

/* ===== FIX LIST ITEM SPACING ===== */
#lang-ur .privacy-section li {
    margin-bottom: 8px;
}

/* ===== FIX DATA TABLE RESPONSIVE ===== */
@media (max-width: 768px) {
    #lang-ur .privacy-section h2 {
        text-align: center;
        display: block;
    }

    #lang-ur .privacy-section h3 {
        text-align: center;
    }

    #lang-ur .privacy-section p {
        text-align: center;
    }

    #lang-ur .privacy-section ul,
    #lang-ur .privacy-section ol {
        text-align: center;
        list-style-position: inside;
    }

    #lang-ur .privacy-section li {
        text-align: center;
    }

    #lang-ur .highlight-box {
        text-align: center;
    }

    #lang-ur .data-table,
    #lang-ur .cookie-table {
        text-align: center;
    }
}

/* ===== FIX TABLE CELL ALIGNMENT ===== */
#lang-ur .data-table td:first-child,
#lang-ur .cookie-table td:first-child {
    font-weight: 600;
}

/* ===== FIX COOKIE TABLE OVERFLOW ===== */
@media (max-width: 768px) {
    #lang-ur .cookie-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    #lang-ur .data-table {
        display: block;
        overflow-x: auto;
    }
}

/* ===== FIX TABLE HEADER BACKGROUND ===== */
#lang-ur .data-table th,
#lang-ur .cookie-table th {
    background: var(--light);
}

/* ===== FIX BORDER COLLAPSE ===== */
#lang-ur .data-table,
#lang-ur .cookie-table {
    border-collapse: collapse;
}