/* Privacy Policy, Terms, Refund Policy Styles */

/* Hero Section */
.privacy-hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

/* Subtle background to make cards pop in light mode */
body:not(.dark-mode) {
    background-color: #f8f9fc;
    /* Soft grey-blue tint */
}

/* Subtle background accent only in light mode */
body:not(.dark-mode) .privacy-hero {
    background: radial-gradient(circle at top right, rgba(232, 67, 147, 0.08), transparent 50%);
}

.privacy-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.privacy-hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.last-updated {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

/* Intro Section */
.privacy-intro-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Enhanced Light Mode Card Styles */
.intro-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    /* Premium Shadow & Subtle Border */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(232, 67, 147, 0.1);
    border-left: 5px solid var(--brand-pink);
    margin-bottom: 2rem;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.intro-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

/* Privacy Grid Layout */
.privacy-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Policy Card (The "Card Layout") */
.policy-card {
    background-color: #ffffff;
    border-radius: 20px;
    /* Floating card effect with subtle border */
    box-shadow: 0 8px 30px -5px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

/* Card Header - Visual Interest */
.card-header {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    /* Visual Gradient Fade */
    background: linear-gradient(90deg, rgba(232, 67, 147, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-pink);
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(232, 67, 147, 0.15);
    /* Icon glow */
}

.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Card Content */
.card-content {
    padding: 30px;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    margin-top: 32px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content h4:first-child {
    margin-top: 0;
}

.card-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.card-content ul {
    list-style: none;
    padding-left: 10px;
    margin-bottom: 24px;
}

.card-content li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 24px;
    font-size: 1.05rem;
}

/* Animation for the Bullet Bubbles */
@keyframes bulletPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Custom Bullets */
.card-content li::before {
    content: "•";
    color: var(--brand-pink);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
    line-height: 1.5rem;
    animation: bulletPulse 2s infinite ease-in-out;
    /* Pulsing effect */
}

/* TOC Specifics */
.toc-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toc-list {
    padding: 10px 0 10px 20px;
    /* Added padding-left to fix border touching */
    columns: 1;
    /* Single column layout (One by one) */
}

.toc-list li {
    margin-bottom: 16px;
    padding-left: 0;
}

/* Reset ::before for TOC to use numbering */
.toc-list li::before {
    content: none;
}

.toc-list a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.2s;
    display: block;
    position: relative;
    padding-left: 28px;
    /* More space for numbering */
}

/* Custom Numbering Style for TOC Links */
.toc-list li {
    list-style-type: none;
    counter-increment: toc-counter;
}

.toc-list a::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    color: var(--brand-pink);
    font-weight: 700;
}

.toc-list a:hover {
    color: var(--brand-pink);
    transform: translateX(4px);
}

/* ----------------------------------------------------------------
   BACKGROUND ANIMATION (Floating Bubbles)
---------------------------------------------------------------- */

body {
    position: relative;
    /* Ensure overflow is handled if blobs go offscreen */
    overflow-x: hidden;
}

/* Create the floating bubbles using pseudo-elements */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    /* Creates the soft "bubble/glow" effect */
    opacity: 0.4;
    animation: floatBubble 10s infinite alternate ease-in-out;
}

/* Bubble 1: Top Right (Pink/Purple) */
body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--brand-pink), transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

/* Bubble 2: Bottom Left (Purple/Blue) */
body::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-purple), transparent 70%);
    bottom: -100px;
    left: -150px;
    animation-delay: -5s;
    /* Offset animation */
}

@keyframes floatBubble {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(30px, 50px) scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.3;
    }
}

/* Dark Mode Adjustments for Bubbles */
body.dark-mode::before {
    opacity: 0.15;
    /* Subtler in dark mode */
}

body.dark-mode::after {
    opacity: 0.15;
}

/* ----------------------------------------------------------------
   DARK MODE OVERRIDES - Matching the 'Premium Dark' Reference
---------------------------------------------------------------- */

body.dark-mode {
    background-color: #121212;
    /* Deep Black/Grey Background */
}

body.dark-mode .privacy-hero h1 {
    color: #ffffff;
}

body.dark-mode .intro-card {
    background-color: #1E1E1E;
    /* Card Surface */
    border: none;
    /* No borders in dark mode */
    border-left: 5px solid var(--brand-pink);
    box-shadow: none;
    /* Reset light mode shadow */
}

body.dark-mode .intro-card h2 {
    color: #ffffff;
}

body.dark-mode .intro-card p {
    color: #B0B0B0;
}

body.dark-mode .policy-card {
    background-color: #1E1E1E;
    /* Card Surface */
    border: none;
    /* No borders in dark mode */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle divider */
    background: rgba(255, 255, 255, 0.02);
    /* Reset light mode gradient */
}

body.dark-mode .card-icon {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle dark container */
    color: var(--brand-pink);
    box-shadow: none;
}

body.dark-mode .card-header h3 {
    color: #ffffff;
}

body.dark-mode .card-content h4 {
    color: #ffffff;
}

body.dark-mode .card-content p,
body.dark-mode .card-content li {
    color: #B0B0B0;
    /* Premium Light Grey for text */
}

body.dark-mode .toc-list a {
    color: #B0B0B0;
}

body.dark-mode .toc-list a:hover {
    color: #ffffff;
}

/* Keep bullet animation in dark mode */
body.dark-mode .card-content li::before {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .privacy-hero h1 {
        font-size: 2.5rem;
    }

    .intro-card,
    .card-header,
    .card-content {
        padding: 24px;
    }

    .toc-list {
        columns: 1;
    }
}