/* ============================================
   LEGAL PAGES — Terms & Privacy Policy
   Premium Design — Pink (#A52673) + White
   Shared CSS for both pages
   ============================================ */

.legal-page {
    --lp-pink: #A52673;
    --lp-pink-dark: #8B1E5A;
    --lp-pink-light: #C23E8E;
    --lp-pink-pale: #f8eaf3;
    --lp-pink-rgb: 165, 38, 115;
    --lp-white: #ffffff;
    --lp-dark: #1a0e14;
    --lp-gray: #6b5e66;
    --lp-gray-light: #9a8f94;
    --lp-radius: 20px;
    --lp-radius-sm: 14px;
    --lp-transition: 0.4s cubic-bezier(.4, 0, .2, 1);
    --lp-shadow-sm: 0 2px 12px rgba(165,38,115,.06);
    --lp-shadow-md: 0 8px 32px rgba(165,38,115,.08);
    --lp-shadow-lg: 0 20px 60px rgba(165,38,115,.12);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}


/* ============================================
   HERO SECTION
   ============================================ */
.legal-hero {
    position: relative;
    padding: 170px 0 120px;
    background: linear-gradient(160deg, #2d0a1e 0%, #5a1840 30%, var(--lp-pink) 55%, var(--lp-pink-light) 85%, #e85bb0 100%);
    overflow: hidden;
    color: var(--lp-white);
    text-align: center;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(255,255,255,.06) 0%, transparent 50%);
    z-index: 1;
}

.legal-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
}

/* Hero Orbs */
.legal-hero-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.legal-hero-orb--1 {
    width: 350px; height: 350px;
    top: -100px; left: -60px;
    background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
    animation: lpOrbFloat 14s ease-in-out infinite;
}

.legal-hero-orb--2 {
    width: 250px; height: 250px;
    bottom: -80px; right: -40px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    animation: lpOrbFloat 18s ease-in-out infinite 3s;
}

.legal-hero-orb--3 {
    width: 150px; height: 150px;
    top: 25%; right: 12%;
    background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
    animation: lpOrbFloat 12s ease-in-out infinite 1.5s;
}

@keyframes lpOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -25px) scale(1.04); }
    66% { transform: translate(-12px, 12px) scale(0.97); }
}

.legal-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

/* Breadcrumb */
.legal-breadcrumb {
    margin-bottom: 24px;
}

.legal-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.legal-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.legal-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,.9);
    font-size: 0.88rem;
    font-weight: 500;
}

.legal-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.4);
}

/* Hero Badge */
.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 28px;
}

.legal-hero-badge i {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Hero Title */
.legal-hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -1.5px;
}

.legal-hero-subtitle {
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255,255,255,.78);
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================
   CONTENT SECTION
   ============================================ */
.legal-content {
    padding: 100px 0 120px;
    background: #fff;
    position: relative;
}


/* ============================================
   SIDEBAR — Table of Contents
   ============================================ */
.legal-sidebar {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1.5px solid rgba(165,38,115,.07);
    border-radius: var(--lp-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--lp-shadow-md);
}

.legal-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--lp-pink) 0%, var(--lp-pink-light) 100%);
    color: #fff;
}

.legal-sidebar-header i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.legal-sidebar-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

/* TOC Navigation */
.legal-toc {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    max-height: 480px;
    overflow-y: auto;
}

.legal-toc::-webkit-scrollbar {
    width: 4px;
}

.legal-toc::-webkit-scrollbar-track {
    background: transparent;
}

.legal-toc::-webkit-scrollbar-thumb {
    background: rgba(165,38,115,.15);
    border-radius: 10px;
}

.legal-toc-link {
    display: flex;
    align-items: center;
    padding: 10px 28px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--lp-gray);
    text-decoration: none;
    transition: var(--lp-transition);
    border-left: 3px solid transparent;
    position: relative;
}

.legal-toc-link:hover {
    color: var(--lp-pink);
    background: rgba(165,38,115,.03);
    border-left-color: rgba(165,38,115,.2);
}

.legal-toc-link.active {
    color: var(--lp-pink);
    background: rgba(165,38,115,.06);
    border-left-color: var(--lp-pink);
    font-weight: 600;
}

/* Sidebar Updated */
.legal-sidebar-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 28px;
    background: var(--lp-pink-pale);
    font-size: 0.82rem;
    color: var(--lp-gray);
    font-weight: 500;
    border-top: 1px solid rgba(165,38,115,.06);
}

.legal-sidebar-updated i {
    color: var(--lp-pink);
    font-size: 0.85rem;
}


/* ============================================
   MAIN CONTENT BLOCKS
   ============================================ */
.legal-main {
    padding-left: 10px;
}

.legal-block {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(165,38,115,.06);
    scroll-margin-top: 100px;
}

.legal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Block Header with Number */
.legal-block-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.legal-block-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(165,38,115,.06) 0%, rgba(165,38,115,.12) 100%);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--lp-pink);
    letter-spacing: -0.5px;
}

.legal-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lp-dark);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* Text */
.legal-text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--lp-gray);
    margin-bottom: 16px;
}

.legal-text:last-child {
    margin-bottom: 0;
}

.legal-text strong {
    color: var(--lp-dark);
    font-weight: 600;
}

/* Lists */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.legal-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--lp-gray);
    border-bottom: 1px solid rgba(165,38,115,.04);
}

.legal-list li:last-child {
    border-bottom: none;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-pink), var(--lp-pink-light));
    opacity: 0.7;
}

.legal-list li strong {
    color: var(--lp-dark);
    font-weight: 600;
}


/* ============================================
   CONTACT CARD
   ============================================ */
.legal-contact-card {
    background: var(--lp-pink-pale);
    border-radius: var(--lp-radius-sm);
    padding: 28px 32px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.legal-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-contact-item i {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lp-pink) 0%, var(--lp-pink-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.legal-contact-item div strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lp-dark);
    margin-bottom: 2px;
}

.legal-contact-item div span {
    font-size: 0.9rem;
    color: var(--lp-gray);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
    .legal-hero-title { font-size: 2.8rem; }
    .legal-heading { font-size: 1.3rem; }
}

@media (max-width: 991px) {
    .legal-hero { padding: 150px 0 100px; }
    .legal-hero-title { font-size: 2.5rem; }
    .legal-content { padding: 80px 0 100px; }

    .legal-sidebar {
        position: static;
        margin-bottom: 40px;
    }

    .legal-toc {
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 6px;
    }

    .legal-toc-link {
        padding: 8px 16px;
        border-left: none;
        border-radius: 50px;
        font-size: 0.82rem;
        background: rgba(165,38,115,.04);
    }

    .legal-toc-link:hover {
        border-left-color: transparent;
        background: rgba(165,38,115,.1);
    }

    .legal-toc-link.active {
        border-left-color: transparent;
        background: var(--lp-pink);
        color: #fff;
    }

    .legal-main { padding-left: 0; }
}

@media (max-width: 767px) {
    .legal-hero { padding: 130px 0 80px; }
    .legal-hero-title { font-size: 2rem; letter-spacing: -1px; }
    .legal-hero-subtitle { font-size: 0.95rem; }
    .legal-content { padding: 60px 0 80px; }

    .legal-block { margin-bottom: 36px; padding-bottom: 36px; }
    .legal-block-header { gap: 14px; }
    .legal-block-number { width: 40px; height: 40px; min-width: 40px; font-size: 0.82rem; border-radius: 12px; }
    .legal-heading { font-size: 1.15rem; }
    .legal-text { font-size: 0.9rem; }
    .legal-list li { font-size: 0.88rem; padding: 8px 0 8px 24px; }
    .legal-list li::before { width: 6px; height: 6px; top: 16px; }

    .legal-contact-card { padding: 22px 24px; }
    .legal-contact-item i { width: 38px; height: 38px; min-width: 38px; font-size: 0.85rem; border-radius: 10px; }
}

@media (max-width: 575px) {
    .legal-hero { padding: 120px 0 70px; }
    .legal-hero-title { font-size: 1.7rem; }
    .legal-hero-badge { font-size: 0.7rem; padding: 8px 18px; }
    .legal-hero-subtitle { font-size: 0.88rem; }

    .legal-content { padding: 48px 0 60px; }
    .legal-sidebar-header { padding: 20px 22px; }
    .legal-sidebar-header h4 { font-size: 0.95rem; }
    .legal-sidebar-updated { padding: 14px 22px; }

    .legal-toc-link { font-size: 0.78rem; padding: 6px 12px; }
}

