/* ==========================================================================
   PRIVACY POLICY PAGE SPECIFIC STYLES
   ========================================================================== */

/* ==========================================================================
   PAGE SETUP
   ========================================================================== */
.privacy-page {
    background: var(--color-darker);
    min-height: 100vh;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.privacy-hero {
    padding: 10rem 4rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--dark-gradient);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Background Effects */
.privacy-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: 0;
}

.privacy-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    top: -20%;
    right: -10%;
    animation: float 25s ease-in-out infinite;
    z-index: 0;
}

/* Lock Icon Animation Background */
.lock-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 0;
}

.lock-bg svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-purple);
    fill: none;
    stroke-width: 1;
    animation: rotate3d 20s ease-in-out infinite;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge span:first-child {
    font-size: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.last-updated {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-gray);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ==========================================================================
   CONTENT SECTION
   ========================================================================== */
.content-section {
    padding: 4rem 2rem;
    background: var(--color-darker);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    position: relative;
}

/* ==========================================================================
   TABLE OF CONTENTS (SIDEBAR)
   ========================================================================== */
.toc {
    position: sticky;
    top: 6rem;
    height: fit-content;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.toc h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc h3::before {
    content: '📑';
    font-size: 1.5rem;
}

.toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: block;
    transition: var(--transition-smooth);
    position: relative;
    padding-left: 1.75rem;
}

.toc li a::before {
    content: '→';
    position: absolute;
    left: 0.5rem;
    color: var(--color-purple);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-light);
    transform: translateX(5px);
}

.toc li a:hover::before {
    opacity: 1;
}

.toc li a.active {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-purple);
    border-left: 3px solid var(--color-purple);
}

/* ==========================================================================
   PRIVACY CONTENT
   ========================================================================== */
.privacy-content {
    max-width: 800px;
}

.content-block {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.content-block h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-light);
    position: relative;
    padding-bottom: 1rem;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.content-block h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--color-light);
}

.content-block h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.content-block p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-block ul {
    list-style: none;
    margin-bottom: 2rem;
}

.content-block ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    line-height: 1.6;
}

.content-block ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-purple);
    font-weight: bold;
}

.content-block ul li strong {
    color: var(--color-light);
    font-weight: 600;
}

/* ==========================================================================
   SPECIAL BOXES
   ========================================================================== */
.highlight-box {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.highlight-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.highlight-box ul {
    margin-bottom: 0;
}

.highlight-box.important {
    background: rgba(245, 87, 108, 0.1);
    border-color: rgba(245, 87, 108, 0.3);
}

.highlight-box.important::before {
    background: var(--secondary-gradient);
}

.info-box {
    background: rgba(254, 225, 64, 0.1);
    border: 1px solid rgba(254, 225, 64, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   RIGHTS GRID
   ========================================================================== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.right-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.right-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-purple);
}

.right-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================================================
   CONTACT INFO
   ========================================================================== */
.contact-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.contact-info a {
    color: var(--color-purple);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-info a:hover {
    color: var(--color-light);
    text-decoration: underline;
}

/* ==========================================================================
   LINKS & ANCHORS
   ========================================================================== */
.privacy-content a {
    color: var(--color-purple);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.privacy-content a:hover {
    color: var(--color-light);
}

.privacy-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-purple);
    transition: width 0.3s ease;
}

.privacy-content a:hover::after {
    width: 100%;
}

/* ==========================================================================
   SCROLL PROGRESS INDICATOR
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0;
    transition: width 0.1s ease;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    z-index: 100;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.back-to-top::before {
    content: '↑';
    font-size: 1.5rem;
    font-weight: bold;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1) rotate(120deg); 
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9) rotate(240deg); 
    }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes rotate3d {
    0%, 100% { 
        transform: rotateY(-30deg) rotateX(-10deg); 
    }
    50% { 
        transform: rotateY(30deg) rotateX(-10deg); 
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc {
        position: static;
        margin-bottom: 2rem;
    }

    .toc ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .privacy-hero {
        padding: 8rem 2rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .content-section {
        padding: 3rem 1.5rem;
    }

    .toc {
        padding: 1.5rem;
    }

    .toc ul {
        grid-template-columns: 1fr;
    }

    .content-block h2 {
        font-size: 1.75rem;
    }

    .content-block h3 {
        font-size: 1.25rem;
    }

    .highlight-box {
        padding: 1.5rem;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .privacy-hero {
        padding: 7rem 1rem 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .content-block ul li {
        padding-left: 1.5rem;
    }

    .right-card {
        padding: 1rem;
    }
}