/* ==========================================================================
   NovaDevz Company - Shared Legal Pages Stylesheet (Privacy Policy & Terms of Service)
   ========================================================================== */

/* Design System Tokens */
:root {
    --primary-color: #2D5BFF;
    --secondary-color: #1E3A8A;
    --dark-bg: #0A0E27;
    --accent-color: #458BC9;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-body: #4B5563;
    --white: #FFFFFF;
    --light-bg: #F0F4FF;
    --card-bg: #FAFBFC;
    --info-green: #10B981;
    --warning-amber: #F59E0B;
}

/* Base Container Alignment */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. Hero Section (.legal-hero)
   ========================================================================== */
.legal-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.legal-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Decorative Floating Shapes */
.legal-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.legal-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.legal-shape-1 {
    width: 320px;
    height: 320px;
    background: var(--primary-color);
    top: -100px;
    right: -80px;
    animation: floatLegal1 7s ease-in-out infinite;
}

.legal-shape-2 {
    width: 220px;
    height: 220px;
    background: var(--secondary-color);
    bottom: -60px;
    left: -60px;
    animation: floatLegal2 9s ease-in-out infinite;
}

.legal-shape-3 {
    width: 160px;
    height: 160px;
    background: var(--accent-color);
    top: 45%;
    left: 6%;
    animation: floatLegal1 6s ease-in-out infinite reverse;
}

@keyframes floatLegal1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-22px) rotate(6deg);
    }
}

@keyframes floatLegal2 {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-18px) scale(1.05);
    }
}

/* Last Updated Badge (.legal-updated) */
.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(45, 91, 255, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(45, 91, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
}

.legal-updated i {
    font-size: 0.85rem;
}

/* Hero Title (.legal-hero-title) */
.legal-hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--dark-bg);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Hero Description (.legal-hero-description) */
.legal-hero-description {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}


/* ==========================================================================
   2. Main Content Section (.legal-content-section & .legal-content-wrapper)
   ========================================================================== */
.legal-content-section {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
}

.legal-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}


/* ==========================================================================
   3. Table of Contents (.legal-toc)
   ========================================================================== */
.legal-toc {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.legal-toc h3 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-toc h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-toc-list li {
    margin: 0;
    padding: 0;
}

.legal-toc-list a {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}

.legal-toc-list a i {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.legal-toc-list a:hover {
    color: var(--primary-color);
    background: rgba(45, 91, 255, 0.05);
    padding-left: 0.85rem;
}

.legal-toc-list a:hover i {
    transform: translateX(3px);
}


/* ==========================================================================
   4. Section Cards & Layout (.legal-section)
   ========================================================================== */

/* Smooth Scroll-Triggered Fade-In Animation */
.legal-section {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.legal-section.visible,
.legal-section.active,
.legal-section.in-view,
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Header (Number + Title Row) */
.legal-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

/* Section Number Badge (.section-number) */
.section-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45, 91, 255, 0.25);
    flex-shrink: 0;
}

/* Section Title (.legal-section h2) */
.legal-section h2 {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--dark-bg);
    margin: 0;
    line-height: 1.3;
}

/* Section Body (.legal-section-body) */
.legal-section-body {
    padding-left: 4rem;
}

/* Section Paragraph */
.legal-section-body p,
.legal-section p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

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


/* ==========================================================================
   5. Highlight, Info, and Warning Boxes
   ========================================================================== */

/* Highlight Box (.legal-highlight) */
.legal-highlight {
    background: rgba(45, 91, 255, 0.04);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    color: #374151;
    font-size: 0.975rem;
    line-height: 1.7;
}

.legal-highlight p {
    margin-bottom: 0.5rem;
}

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

/* Info Box (.legal-info-box) - Green Accent for Tips */
.legal-info-box {
    background: rgba(16, 185, 129, 0.04);
    border-left: 4px solid var(--info-green);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    color: #1F2937;
    font-size: 0.975rem;
    line-height: 1.7;
}

.legal-info-box i {
    color: var(--info-green);
    margin-right: 0.5rem;
}

.legal-info-box p {
    margin-bottom: 0.5rem;
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

/* Warning Box (.legal-warning-box) - Amber Accent */
.legal-warning-box {
    background: rgba(245, 158, 11, 0.04);
    border-left: 4px solid var(--warning-amber);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    color: #1F2937;
    font-size: 0.975rem;
    line-height: 1.7;
}

.legal-warning-box i {
    color: var(--warning-amber);
    margin-right: 0.5rem;
}

.legal-warning-box p {
    margin-bottom: 0.5rem;
}

.legal-warning-box p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   6. Bullet Lists (.legal-list)
   ========================================================================== */
.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0;
}

.legal-list li {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

.legal-list li::before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Direct Icon Fallback Support */
.legal-list li i.fa-check,
.legal-list li .check-icon {
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}


/* ==========================================================================
   7. Call To Action Section (.legal-cta)
   ========================================================================== */
.legal-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

/* CTA Decorative Shapes */
.legal-cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-circle-1 {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -80px;
}

.cta-circle-2 {
    width: 420px;
    height: 420px;
    bottom: -160px;
    right: -100px;
}

.cta-circle-3 {
    width: 160px;
    height: 160px;
    top: 45%;
    right: 12%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.04);
}

.legal-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* CTA Title */
.legal-cta h2,
.legal-cta-title {
    font-family: 'Playfair Display', 'PlayfairDisplay', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.legal-cta p,
.legal-cta-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-family: 'Montserrat', sans-serif;
}

/* CTA Buttons Row */
.legal-cta-buttons,
.legal-cta .btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.legal-cta .btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.legal-cta .btn-white,
.legal-cta .btn-primary-alt {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.legal-cta .btn-white:hover,
.legal-cta .btn-primary-alt:hover {
    background: #F0F4FF;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.legal-cta .btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.legal-cta .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}


/* ==========================================================================
   8. Responsive Breakpoints
   ========================================================================== */

/* Desktop Small / Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .legal-hero-title {
        font-size: 3rem;
    }

    .legal-cta h2,
    .legal-cta-title {
        font-size: 2.6rem;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    .legal-hero {
        padding: 4rem 0 3rem;
    }

    .legal-hero-title {
        font-size: 2.2rem;
    }

    .legal-hero-description {
        font-size: 1.05rem;
    }

    .legal-content-section {
        padding: 3.5rem 0;
    }

    .legal-section-body {
        padding-left: 0;
    }

    .section-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-toc {
        padding: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .legal-cta {
        padding: 4rem 0;
    }

    .legal-cta h2,
    .legal-cta-title {
        font-size: 2.2rem;
    }
}

/* Mobile Devices (480px) */
@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 1.8rem;
    }

    .legal-hero-description {
        font-size: 1rem;
    }

    .legal-updated {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .legal-toc {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .legal-section-body {
        padding-left: 0;
    }

    .legal-section-header {
        gap: 0.75rem;
    }

    .section-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.9rem;
    }

    .legal-section h2 {
        font-size: 1.15rem;
    }

    .legal-highlight,
    .legal-info-box,
    .legal-warning-box {
        padding: 1.15rem;
    }

    .legal-cta {
        padding: 3.5rem 0;
    }

    .legal-cta h2,
    .legal-cta-title {
        font-size: 1.75rem;
    }

    .legal-cta-buttons,
    .legal-cta .btn-row {
        flex-direction: column;
        width: 100%;
    }

    .legal-cta .btn {
        width: 100%;
    }
}
.legal-page{
    padding:80px 0;
    background:#fff;
}

.legal-page .container{
    max-width:900px;
    margin:auto;
}

.legal-page h1{
    font-size:42px;
    margin-bottom:10px;
    color:#111827;
}

.last-updated{
    color:#6b7280;
    margin-bottom:40px;
}

.legal-page h2{
    font-size:24px;
    margin:35px 0 15px;
    color:#2563eb;
}

.legal-page p{
    color:#4b5563;
    line-height:1.9;
    margin-bottom:18px;
}

.legal-page ul{
    margin:0 0 20px 22px;
}

.legal-page li{
    margin-bottom:10px;
    color:#4b5563;
    line-height:1.8;
}

@media (max-width:768px){

    .legal-page{
        padding:60px 0;
    }

    .legal-page h1{
        font-size:32px;
    }

    .legal-page h2{
        font-size:22px;
    }
}