/**
 * Timer Legal Pages Shared Styles
 * Author: AtivoLabs
 * Version: 2.0.0 — Visual overhaul to match landing page aesthetics
 * Used by: privacy.aspx, terms.aspx, gdpr.aspx, boc.aspx
 */

/* ====== LEGAL PAGE BODY ====== */
.timer-legal-body {
    margin: 0;
    padding: 0;
    font-family: var(--timer-font-family);
    background: var(--timer-gray-50);
    line-height: 1.7;
    color: var(--timer-gray-700);
    overflow-x: hidden;
    max-width: 100vw;
}

/* ====== LEGAL MAIN WRAPPER ====== */
/* 7. Background → Subtle Radial Gradient */
.timer-legal-wrapper {
    width: 100%;
    min-height: 100vh;
    background: var(--timer-gray-50);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(157, 62, 245, 0.03) 0%, transparent 70%);
    padding-top: 80px;
}

/* ====== LEGAL CONTAINER ====== */
.timer-legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--timer-space-8) var(--timer-space-4);
    background: var(--timer-white);
    box-shadow: 0 0 50px rgba(157, 62, 245, 0.05);
    border-radius: var(--timer-radius-2xl);
    margin-top: var(--timer-space-8);
    margin-bottom: var(--timer-space-8);
}

/* ====== LEGAL CONTENT WRAPPER ====== */
.timer-legal-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* ====== LEGAL HEADER ====== */
.timer-legal-header {
    text-align: center;
    margin-bottom: var(--timer-space-12);
    padding-bottom: var(--timer-space-8);
    border-bottom: 1px solid var(--timer-gray-200);
}

.timer-legal-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--timer-space-3);
    text-decoration: none;
    margin-bottom: var(--timer-space-6);
    transition: transform var(--timer-transition-fast);
}

    .timer-legal-brand:hover {
        transform: translateY(-2px);
    }

.timer-legal-logo {
    width: 48px;
    height: 48px;
}

.timer-legal-brand-text {
    font-size: var(--timer-font-size-2xl);
    font-weight: var(--timer-font-weight-bold);
    background: var(--timer-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 9. Page Title → Gradient Text */
.timer-legal-title {
    font-size: var(--timer-font-size-3xl);
    font-weight: var(--timer-font-weight-bold);
    margin: 0;
    margin-bottom: var(--timer-space-3);
    background: var(--timer-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timer-legal-subtitle {
    font-size: var(--timer-font-size-lg);
    color: var(--timer-gray-600);
    margin: 0;
    font-weight: var(--timer-font-weight-normal);
}

.timer-legal-last-updated {
    display: inline-block;
    background: var(--timer-gray-100);
    color: var(--timer-gray-600);
    padding: var(--timer-space-2) var(--timer-space-4);
    border-radius: var(--timer-radius-full);
    font-size: var(--timer-font-size-sm);
    font-weight: var(--timer-font-weight-medium);
    margin-top: var(--timer-space-4);
}

/* ====== LEGAL CONTENT ====== */
.timer-legal-content {
    margin-bottom: var(--timer-space-12);
}

.timer-legal-section {
    margin-bottom: var(--timer-space-10);
}

    .timer-legal-section:last-child {
        margin-bottom: 0;
    }

    /* 3. Section Headings (h2) → Gradient Left Accent */
    .timer-legal-section h2 {
        font-size: var(--timer-font-size-xl);
        font-weight: var(--timer-font-weight-bold);
        color: var(--timer-gray-900);
        margin: 0 0 var(--timer-space-4) 0;
        padding-top: var(--timer-space-2);
        padding-left: var(--timer-space-4);
        border-left: 4px solid transparent;
        border-image: var(--timer-gradient-primary) 1;
    }

    /* 4. Section Headings (h3) → Subtle Purple Dot */
    .timer-legal-section h3 {
        font-size: var(--timer-font-size-lg);
        font-weight: var(--timer-font-weight-semibold);
        color: var(--timer-gray-800);
        margin: var(--timer-space-6) 0 var(--timer-space-3) 0;
        display: flex;
        align-items: center;
        gap: var(--timer-space-2);
    }

    .timer-legal-section h3::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        min-width: 8px;
        border-radius: 50%;
        background: var(--timer-primary);
        opacity: 0.6;
    }

    .timer-legal-section h4 {
        font-size: var(--timer-font-size-base);
        font-weight: var(--timer-font-weight-semibold);
        color: var(--timer-gray-800);
        margin: var(--timer-space-4) 0 var(--timer-space-2) 0;
    }

    .timer-legal-section p {
        margin: 0 0 var(--timer-space-4) 0;
        line-height: 1.8;
    }

        .timer-legal-section p:last-child {
            margin-bottom: 0;
        }

    /* 2. Links → Animated Gradient Underline */
    .timer-legal-section a {
        color: var(--timer-primary);
        text-decoration: none;
        font-weight: var(--timer-font-weight-medium);
        position: relative;
        transition: color var(--timer-transition-fast);
    }

    .timer-legal-section a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background: var(--timer-gradient-primary);
        transition: width 0.3s ease;
    }

    .timer-legal-section a:hover {
        color: var(--timer-primary-dark);
    }

    .timer-legal-section a:hover::after {
        width: 100%;
    }

/* ====== LEGAL LISTS ====== */
/* 1. List Bullets → Custom Teal Circles */
.timer-legal-list {
    margin: var(--timer-space-4) 0;
    padding-left: var(--timer-space-6);
    list-style: none;
}

    .timer-legal-list li {
        margin-bottom: var(--timer-space-3);
        line-height: 1.7;
        position: relative;
        padding-left: var(--timer-space-4);
    }

    .timer-legal-list li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.65em;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #4ecdc4;
    }

        .timer-legal-list li:last-child {
            margin-bottom: 0;
        }

    /* Nested lists */
    .timer-legal-list .timer-legal-list {
        margin-top: var(--timer-space-2);
        margin-bottom: var(--timer-space-2);
    }

    /* Nested list bullets — smaller, lighter */
    .timer-legal-list .timer-legal-list li::before {
        width: 5px;
        height: 5px;
        background: #4ecdc4;
        opacity: 0.6;
    }

/* ====== LEGAL HIGHLIGHTS ====== */
/* 5. Callout Boxes → Larger Radius + Shadow */
.timer-legal-highlight {
    background: var(--timer-blue-50);
    border: 1px solid var(--timer-blue-200);
    border-radius: var(--timer-radius-xl);
    padding: var(--timer-space-4);
    margin: var(--timer-space-6) 0;
    box-shadow: 0 4px 20px rgba(157, 62, 245, 0.06);
}

    .timer-legal-highlight h4 {
        color: var(--timer-blue-800);
        margin-top: 0;
    }

    .timer-legal-highlight p {
        color: var(--timer-blue-700);
        margin-bottom: 0;
    }

/* ====== LEGAL IMPORTANT NOTICE ====== */
.timer-legal-important {
    background: var(--timer-amber-50);
    border: 1px solid var(--timer-amber-200);
    border-left: 4px solid var(--timer-amber-400);
    border-radius: var(--timer-radius-xl);
    padding: var(--timer-space-4);
    margin: var(--timer-space-6) 0;
    box-shadow: 0 4px 20px rgba(157, 62, 245, 0.06);
}

    .timer-legal-important h4 {
        color: var(--timer-amber-800);
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: var(--timer-space-2);
    }

        .timer-legal-important h4 i {
            color: var(--timer-amber-600);
        }

    .timer-legal-important p {
        color: var(--timer-amber-700);
        margin-bottom: 0;
    }

/* ====== SUCCESS / PURPLE CALLOUT VARIANTS ====== */
.timer-legal-success {
    border-radius: var(--timer-radius-xl);
    box-shadow: 0 4px 20px rgba(157, 62, 245, 0.06);
}

.timer-legal-purple {
    border-radius: var(--timer-radius-xl);
    box-shadow: 0 4px 20px rgba(157, 62, 245, 0.06);
}

/* ====== LEGAL CONTACT INFO ====== */
/* 6. Contact Box → Premium Card Treatment */
.timer-legal-contact {
    background: var(--timer-white);
    border: 1px solid var(--timer-gray-200);
    border-radius: var(--timer-radius-2xl);
    padding: var(--timer-space-6);
    margin: var(--timer-space-8) 0;
    text-align: center;
    box-shadow: 0 8px 30px rgba(157, 62, 245, 0.08);
    position: relative;
    overflow: hidden;
}

/* Gradient top border accent */
.timer-legal-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--timer-gradient-primary);
}

    .timer-legal-contact h3 {
        color: var(--timer-gray-900);
        margin-top: var(--timer-space-2);
        margin-bottom: var(--timer-space-4);
    }

    .timer-legal-contact p {
        margin-bottom: var(--timer-space-2);
    }

        .timer-legal-contact p:last-child {
            margin-bottom: 0;
        }

    .timer-legal-contact a {
        color: var(--timer-primary);
        text-decoration: none;
        font-weight: var(--timer-font-weight-medium);
        position: relative;
        transition: color var(--timer-transition-fast);
    }

    .timer-legal-contact a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background: var(--timer-gradient-primary);
        transition: width 0.3s ease;
    }

    .timer-legal-contact a:hover {
        color: var(--timer-primary-dark);
    }

    .timer-legal-contact a:hover::after {
        width: 100%;
    }

/* ====== TABLES ====== */
/* 8. Tables → Gradient Header Accent */
.timer-legal-section table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--timer-space-4) 0;
}

.timer-legal-section th {
    text-align: left;
    padding: var(--timer-space-3) var(--timer-space-4);
    font-weight: var(--timer-font-weight-semibold);
    color: var(--timer-gray-800);
    border-bottom: 3px solid transparent;
    border-image: var(--timer-gradient-primary) 1;
}

.timer-legal-section td {
    padding: var(--timer-space-3) var(--timer-space-4);
    border-bottom: 1px solid var(--timer-gray-200);
    color: var(--timer-gray-700);
}

/* ====== LEGAL FOOTER ====== */
/* 10. Footer → Refined Styling */
.timer-legal-footer {
    border-top: none;
    padding-top: var(--timer-space-8);
    text-align: center;
    position: relative;
}

/* Gradient separator line */
.timer-legal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--timer-gradient-primary);
    opacity: 0.3;
}

.timer-legal-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--timer-space-6);
    margin-bottom: var(--timer-space-6);
    flex-wrap: wrap;
}

    .timer-legal-footer-links a {
        color: var(--timer-gray-600);
        text-decoration: none;
        font-weight: var(--timer-font-weight-medium);
        position: relative;
        transition: color var(--timer-transition-fast);
    }

    .timer-legal-footer-links a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background: var(--timer-gradient-primary);
        transition: width 0.3s ease;
    }

    .timer-legal-footer-links a:hover {
        color: var(--timer-primary);
    }

    .timer-legal-footer-links a:hover::after {
        width: 100%;
    }

.timer-legal-footer-note {
    color: var(--timer-gray-500);
    font-size: var(--timer-font-size-sm);
    margin: 0;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {
    .timer-legal-wrapper {
        padding-top: 70px;
    }

    .timer-legal-container {
        padding: var(--timer-space-4);
        margin: var(--timer-space-4);
        border-radius: var(--timer-radius-xl);
    }

    .timer-legal-header {
        margin-bottom: var(--timer-space-8);
        padding-bottom: var(--timer-space-6);
    }

    .timer-legal-title {
        font-size: var(--timer-font-size-2xl);
    }

    .timer-legal-subtitle {
        font-size: var(--timer-font-size-base);
    }

    .timer-legal-section h2 {
        font-size: var(--timer-font-size-lg);
    }

    .timer-legal-section h3 {
        font-size: var(--timer-font-size-base);
    }

    .timer-legal-list {
        padding-left: var(--timer-space-4);
    }

    .timer-legal-footer-links {
        flex-direction: column;
        gap: var(--timer-space-3);
    }

    .timer-legal-contact,
    .timer-legal-highlight,
    .timer-legal-important {
        margin: var(--timer-space-4) 0;
    }

    /* Mobile: table horizontal scroll */
    .timer-legal-section table {
        display: block;
        overflow-x: auto;
    }

    /* Mobile Navigation Menu - Override for legal pages */
    .timer-nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--timer-white) !important;
        flex-direction: column !important;
        padding: var(--timer-space-4) !important;
        gap: var(--timer-space-4) !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all var(--timer-transition-normal) !important;
        box-shadow: var(--timer-shadow-lg) !important;
        border-bottom: 1px solid var(--timer-gray-200) !important;
        z-index: 1000 !important;
    }

        .timer-nav-menu.active {
            transform: translateY(0) !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

    .timer-nav-toggle {
        display: flex !important;
    }

        .timer-nav-toggle span {
            transition: all var(--timer-transition-fast) !important;
        }
}

/* ====== PRINT STYLES ====== */
@media print {
    .timer-legal-body {
        background: white;
    }

    .timer-legal-wrapper {
        background: white;
        background-image: none;
        padding-top: 0;
    }

    .timer-legal-container {
        box-shadow: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }

    .timer-legal-header {
        border-bottom: 2px solid #000;
    }

    .timer-legal-title {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
    }

    .timer-legal-brand-text {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }

    .timer-legal-section h2 {
        border-left: 4px solid #000;
        border-image: none;
    }

    .timer-legal-section h3::before {
        background: #000;
    }

    .timer-legal-list li::before {
        background: #000;
    }

    .timer-legal-contact::before {
        display: none;
    }

    .timer-legal-contact {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .timer-legal-highlight,
    .timer-legal-important {
        box-shadow: none;
    }

    .timer-legal-footer::before {
        background: #000;
    }

    .timer-legal-footer-links a {
        color: #000;
    }

    .timer-legal-footer-links a::after,
    .timer-legal-section a::after,
    .timer-legal-contact a::after {
        display: none;
    }

    .timer-landing-nav {
        display: none !important;
    }
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
    .timer-legal-brand {
        transition: none;
    }

    .timer-legal-section a::after,
    .timer-legal-contact a::after,
    .timer-legal-footer-links a::after {
        transition: none;
    }

    .timer-legal-contact a,
    .timer-legal-section a,
    .timer-legal-footer-links a {
        transition: none;
    }
}
