/* =============================================================================
   VIVELEAD LEGAL PAGES STYLESHEET
   Privacy Policy, Terms & Conditions, Refund Policy
   ============================================================================= */

/* =============================================================================
   PAGE WRAPPER
   ============================================================================= */

.vl-legal-page {
    min-height: 100vh;
    background: #ffffff;
}

/* =============================================================================
   HERO / HEADER SECTION
   ============================================================================= */

.vl-legal-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0 48px;
    border-bottom: 1px solid #e2e8f0;
}

.vl-legal-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.vl-legal-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.vl-legal-hero__breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vl-legal-hero__breadcrumb a:hover {
    color: #4051B5;
}

.vl-legal-hero__breadcrumb span {
    color: #94a3b8;
}

.vl-legal-hero__breadcrumb-current {
    color: #334155;
    font-weight: 500;
}

.vl-legal-hero__title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.vl-legal-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vl-legal-hero__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    color: #64748b;
}

.vl-legal-hero__date svg {
    color: #4051B5;
}

.vl-legal-hero__reading-time {
    font-size: 13px;
    color: #64748b;
}

/* =============================================================================
   TABLE OF CONTENTS
   ============================================================================= */

.vl-legal-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 48px;
}

.vl-legal-toc__title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vl-legal-toc__title svg {
    color: #4051B5;
}

.vl-legal-toc__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.vl-legal-toc__item {
    margin: 0 !important;
    padding-left: 0 !important;
}

.vl-legal-toc__item::before {
    display: none !important;
}

.vl-legal-toc__link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.vl-legal-toc__link:hover {
    color: #4051B5;
}

.vl-legal-toc__number {
    color: #4051B5;
    font-weight: 600;
    min-width: 24px;
}

/* =============================================================================
   MAIN CONTENT AREA
   ============================================================================= */

.vl-legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

.vl-legal-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.vl-legal-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 48px 0 20px 0;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
    line-height: 1.4;
}

.vl-legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.vl-legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin: 32px 0 12px 0;
    line-height: 1.5;
}

.vl-legal-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin: 24px 0 8px 0;
}

.vl-legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 16px 0;
}

.vl-legal-content strong {
    font-weight: 600;
    color: #1e293b;
}

.vl-legal-content a {
    color: #4051B5;
    text-decoration: underline;
    text-decoration-color: rgba(64, 81, 181, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.vl-legal-content a:hover {
    text-decoration-color: #4051B5;
}

/* =============================================================================
   LISTS
   ============================================================================= */

.vl-legal-content ul,
.vl-legal-content ol {
    margin: 0 0 24px 0;
    padding-left: 0;
}

.vl-legal-content ul {
    list-style: none;
}

.vl-legal-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
}

.vl-legal-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #4051B5;
    border-radius: 50%;
}

.vl-legal-content ol {
    list-style: none;
    counter-reset: legal-counter;
}

.vl-legal-content ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    counter-increment: legal-counter;
}

.vl-legal-content ol li::before {
    content: counter(legal-counter) ".";
    position: absolute;
    left: 0;
    color: #4051B5;
    font-weight: 600;
}

/* Nested lists */
.vl-legal-content ul ul,
.vl-legal-content ol ol,
.vl-legal-content ul ol,
.vl-legal-content ol ul {
    margin-top: 12px;
    margin-bottom: 0;
}

/* =============================================================================
   HORIZONTAL RULES / SECTION DIVIDERS
   ============================================================================= */

.vl-legal-content hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 48px 0;
}

/* =============================================================================
   CALLOUT BOXES
   ============================================================================= */

.vl-legal-callout {
    background: #f8fafc;
    border-left: 4px solid #4051B5;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.vl-legal-callout p {
    margin: 0;
    color: #334155;
}

.vl-legal-callout p:last-child {
    margin-bottom: 0;
}

/* Warning callout */
.vl-legal-callout--warning {
    background: #fefce8;
    border-left-color: #eab308;
}

/* Important callout */
.vl-legal-callout--important {
    background: #fef2f2;
    border-left-color: #ef4444;
}

/* Info callout */
.vl-legal-callout--info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

/* =============================================================================
   BLOCKQUOTES
   ============================================================================= */

.vl-legal-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #4051B5;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.vl-legal-content blockquote p {
    margin: 0;
    color: #334155;
    font-style: normal;
}

/* =============================================================================
   CONTACT CTA SECTION
   ============================================================================= */

.vl-legal-contact {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-top: 64px;
    text-align: center;
}

.vl-legal-contact__title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.vl-legal-contact__text {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.vl-legal-contact__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #4051B5;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.vl-legal-contact__link span {
    color: #ffffff !important;
}

.vl-legal-contact__link:hover {
    background: #3344a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 81, 181, 0.3);
    color: #ffffff !important;
}

.vl-legal-contact__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #ffffff;
}

/* =============================================================================
   BACK TO TOP BUTTON
   ============================================================================= */

.vl-legal-back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: #4051B5;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(64, 81, 181, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.vl-legal-back-top.visible {
    opacity: 1;
    visibility: visible;
}

.vl-legal-back-top:hover {
    background: #3344a8;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(64, 81, 181, 0.4);
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .vl-legal-hero {
        background: none;
        border-bottom: 2px solid #000;
        padding: 20px 0;
    }

    .vl-legal-hero__breadcrumb,
    .vl-legal-toc,
    .vl-legal-back-top,
    .vl-legal-contact__link {
        display: none;
    }

    .vl-legal-content {
        max-width: 100%;
        padding: 20px 0;
    }

    .vl-legal-content h2 {
        page-break-after: avoid;
    }

    .vl-legal-content p,
    .vl-legal-content li {
        orphans: 3;
        widows: 3;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .vl-legal-hero {
        padding: 60px 0 32px;
    }

    .vl-legal-hero__title {
        font-size: 28px;
    }

    .vl-legal-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .vl-legal-toc__list {
        grid-template-columns: 1fr;
    }

    .vl-legal-content {
        padding: 32px 20px 60px;
    }

    .vl-legal-content h2 {
        font-size: 20px;
        margin: 40px 0 16px 0;
        padding-top: 24px;
    }

    .vl-legal-content h3 {
        font-size: 17px;
    }

    .vl-legal-contact {
        padding: 24px 20px;
    }

    .vl-legal-back-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .vl-legal-hero {
        padding: 48px 0 24px;
    }

    .vl-legal-hero__inner {
        padding: 0 16px;
    }

    .vl-legal-hero__title {
        font-size: 24px;
    }

    .vl-legal-content {
        padding: 24px 16px 48px;
    }

    .vl-legal-content h2 {
        font-size: 18px;
    }

    .vl-legal-content p,
    .vl-legal-content li {
        font-size: 15px;
    }

    .vl-legal-toc {
        padding: 20px 16px;
    }
}
