/* ================================================================
   JUNKDROP LEGAL PAGES STYLESHEET (Actual Logo Color Theme)
   ================================================================
   Logo Colors Extracted:
   - Junk: Dark Charcoal / Slate Black (#2C3036, #1C1E22)
   - Drop & Dumpster Arrow: Vibrant Warm Orange (#F3791B, #FF8324)
   ================================================================ */

:root {
    --logo-orange: #F3791B;
    --logo-orange-hover: #E0670A;
    --logo-orange-light: #FF943B;
    --logo-orange-pale: rgba(243, 121, 27, 0.08);
    --logo-charcoal: #2C3036;
    --logo-charcoal-dark: #1A1C20;
    --logo-charcoal-light: #3D424A;
    --logo-charcoal-pale: rgba(44, 48, 54, 0.06);
    --logo-bg-soft: #F8F9FA;
}


.bg-danger {
    background-color:#F3791B
}

.text-danger {
    color:#F3791B
}

.text-dark{
    color:#F3791B
}


/* Reading Progress Bar */
.legal-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(243, 121, 27, 0.15);
    z-index: 9999;
}

.legal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--logo-orange) 0%, #FF943B 50%, var(--logo-charcoal) 100%);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Modern Hero Section - Actual Logo Palette */
.legal-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 28, 32, 0.9) 0%, rgba(44, 48, 54, 0.85) 60%, rgba(18, 20, 23, 0.92) 100%), url('../../assets/images/home-banner-premium.png');
    background-size: cover;
    background-position: center top;
    padding: 37px 0 20px;
    overflow: hidden;
    color: #ffffff;
    border-bottom: 4px solid var(--logo-orange);
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(243, 121, 27, 0.35) 0%, rgba(255, 148, 59, 0.12) 45%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(61, 66, 74, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgb(243 121 27);
    backdrop-filter: blur(12px);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ff9647;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(243, 121, 27, 0.2);
}

.legal-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.legal-hero-title .gradient-text {
    background: linear-gradient(135deg, #FFB067 0%, var(--logo-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Legal Switcher Tabs - Logo Charcoal & Orange Styling */
.legal-tab-switcher {
    display: inline-flex;
    background: rgba(18, 20, 23, 0.7);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(243, 121, 27, 0.3);
    backdrop-filter: blur(12px);
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.legal-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 26px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.legal-tab-btn.active {
    background: linear-gradient(135deg, var(--logo-orange) 0%, #FF943B 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(243, 121, 27, 0.45);
}

/* Legal Search Input */
.legal-search-box {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.legal-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 30px;
    background: #ffffff;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--logo-charcoal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    outline: none;
}

.legal-search-input:focus {
    background: #ffffff;
    border-color: var(--logo-orange);
    box-shadow: 0 10px 35px rgba(243, 121, 27, 0.35);
}

.legal-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--logo-orange);
    font-size: 16px;
}

/* Key Highlights Strip */
.legal-highlights-strip {
    margin-top: -45px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.legal-highlight-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px;
    border: 1px solid rgba(243, 121, 27, 0.15);
    box-shadow: 0 12px 35px rgba(44, 48, 54, 0.07);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.legal-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(243, 121, 27, 0.18);
    border-color: var(--logo-orange);
}

.legal-highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(243, 121, 27, 0.12) 0%, rgba(44, 48, 54, 0.06) 100%);
    color: var(--logo-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.legal-highlight-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--logo-charcoal);
    margin-bottom: 2px;
}

.legal-highlight-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

/* Sticky TOC Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(44, 48, 54, 0.1);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(44, 48, 54, 0.05);
}

.legal-toc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--logo-charcoal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(243, 121, 27, 0.2);
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.legal-toc-item {
    margin-bottom: 4px;
}

.legal-toc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.25s ease;
}

.legal-toc-link:hover {
    color: var(--logo-orange);
    background: rgba(243, 121, 27, 0.06);
    transform: translateX(4px);
}

.legal-toc-link.active {
    background: linear-gradient(90deg, rgba(243, 121, 27, 0.12) 0%, rgba(44, 48, 54, 0.04) 100%);
    color: var(--logo-orange-hover);
    font-weight: 700;
    border-left: 3px solid var(--logo-orange);
}

.legal-toc-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(44, 48, 54, 0.08);
    color: var(--logo-charcoal);
}

/* Sidebar Actions & Help Box */
.legal-sidebar-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.legal-btn-outline {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(44, 48, 54, 0.2);
    background: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--logo-charcoal);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.legal-btn-outline:hover {
    background: var(--logo-charcoal);
    color: #ffffff;
    border-color: var(--logo-charcoal);
}

.legal-help-card {
    background: linear-gradient(135deg, var(--logo-charcoal) 0%, var(--logo-charcoal-light) 100%);
    border-radius: 20px;
    padding: 22px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(44, 48, 54, 0.3);
}

.legal-help-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
    background: rgba(243, 121, 27, 0.4);
    border-radius: 50%;
    filter: blur(18px);
}

.legal-help-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.legal-help-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.legal-help-btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--logo-orange) 0%, #FF943B 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(243, 121, 27, 0.4);
    transition: all 0.25s ease;
}

.legal-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 121, 27, 0.6);
    color: #ffffff;
}

/* Legal Content Section Cards */
.legal-card-section {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(44, 48, 54, 0.08);
    padding: 36px 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 30px rgba(44, 48, 54, 0.03);
    transition: all 0.3s ease;
    position: relative;
    scroll-margin-top: 110px;
}

.legal-card-section:hover {
    box-shadow: 0 15px 40px rgba(44, 48, 54, 0.08);
    border-color: rgba(243, 121, 27, 0.25);
}

.legal-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(243, 121, 27, 0.15);
}

.legal-section-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--logo-charcoal) 0%, var(--logo-charcoal-light) 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(44, 48, 54, 0.25);
    border: 1px solid rgba(243, 121, 27, 0.4);
}

.legal-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--logo-charcoal);
    margin: 0;
}

.legal-section-body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #4a5568;
    line-height: 1.75;
}

.legal-section-body p {
    margin-bottom: 16px;
}

.legal-section-body p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.legal-list-item {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.legal-list-item::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--logo-orange);
    font-size: 14px;
}

/* Modern Callout Alerts - Logo Palette */
.legal-callout {
    border-radius: 16px;
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.legal-callout-info {
    background: rgba(44, 48, 54, 0.05);
    border-left: 4px solid var(--logo-charcoal);
    color: var(--logo-charcoal);
}

.legal-callout-warning {
    background: rgba(243, 121, 27, 0.08);
    border-left: 4px solid var(--logo-orange);
    color: #A34800;
}

.legal-callout-success {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid #10b981;
    color: #065f46;
}

.legal-callout-icon {
    font-size: 20px;
    margin-top: 2px;
}

.legal-callout-content {
    font-size: 14px;
    line-height: 1.6;
}

.legal-callout-content strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Accordion for sub-clauses */
.legal-accordion-item {
    border: 1px solid rgba(44, 48, 54, 0.1);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.legal-accordion-header {
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--logo-charcoal);
    user-select: none;
}

.legal-accordion-header:hover {
    background: rgba(243, 121, 27, 0.05);
}

.legal-accordion-body {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid rgba(44, 48, 54, 0.08);
    font-size: 14px;
    color: #64748b;
    display: none;
}

.legal-accordion-item.active .legal-accordion-body {
    display: block;
}

.legal-accordion-item.active .legal-accordion-icon {
    transform: rotate(180deg);
}

.legal-accordion-icon {
    transition: transform 0.25s ease;
    color: var(--logo-orange);
}

/* Was this helpful feedback widget */
.legal-feedback-card {
    background: linear-gradient(135deg, #f8fafc 0%, rgba(243, 121, 27, 0.04) 100%);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(243, 121, 27, 0.18);
    margin-top: 40px;
}

.legal-feedback-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--logo-charcoal);
    margin-bottom: 12px;
}

.legal-feedback-btns {
    display: inline-flex;
    gap: 12px;
}

.legal-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(44, 48, 54, 0.15);
    background: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--logo-charcoal);
    cursor: pointer;
    transition: all 0.25s ease;
}

.legal-feedback-btn:hover {
    background: var(--logo-orange);
    color: #ffffff;
    border-color: var(--logo-orange);
}

/* Responsive queries */
@media (max-width: 991px) {
    .legal-sidebar {
        position: static;
        margin-bottom: 40px;
    }
    .legal-hero-title {
        font-size: 2.2rem;
    }
    .legal-card-section {
        padding: 24px 20px;
    }
}

@media (max-width: 576px) {
    .legal-hero-title {
        font-size: 1.8rem;
    }
    .legal-hero {
        padding: 50px 0 70px;
    }
    .legal-tab-switcher {
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
    }
    .legal-tab-btn {
        justify-content: center;
    }
}
