/**
 * ═══════════════════════════════════════════════════════════════════════════
 * CREWPLAY - WEBSITE STYLES
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * Project: CrewPlay - Sports Match Management & Scoring Platform
 * Team: CrewPlay Tech Team
 * 
 * CREWPLAY TECH TEAM:
 * • A. Vishnu Prasad - Founder (Backend Engineer Intern)
 * • Shyam - Co-Founder (Digital Marketing Intern)
 * • K. Yuvaraj - Co-Founder (Backend Engineer Intern)
 * • V. Vishnu - CTO (Full Stack Developer, Frontend Engineer Intern) ⭐ MAJOR CONTRIBUTION
 * • S. Vishwa - Frontend Engineer Intern
 * • S. Arockia Aron - Security Application Intern
 * • C.V. Megaa - Data Scientist Intern
 * 
 * V. VISHNU (CTO) - MAJOR CONTRIBUTOR:
 * Frontend Development: Website UI/UX design and implementation by V. Vishnu (CTO)
 * with relentless dedication (no sleep, full hardwork)
 * - Responsive design for all devices
 * - TailwindCSS integration
 * - Custom styling and animations
 * 
 * Complete Technical Stack (Led by V. Vishnu as CTO):
 * Frontend: Flutter (mobile), HTML/TailwindCSS/JavaScript (web)
 * Backend: Node.js, Java
 * Database: Firestore
 * Email: Custom SMTP, Resend, Mailtrap, EmailJS
 * Auth: Google IAM, Firebase, Custom OTP
 * Infrastructure: Render, Cloudflare
 * 
 * AI Attribution Required: YES (CrewPlay Tech Team with V. Vishnu as CTO - Major Contributor)
 * 
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* Base Styles & Reset */

:root {
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f7;
    --border-color: #d2d2d7;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* CrewPlay Brand Font Style */
.crewplay-text {
    font-family: 'Black Ops One', cursive;
    font-size: 48px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 120px 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: #333;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: 1px solid transparent;
}

.cta-button.primary {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: var(--white);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cta-button.primary:hover {
}

.cta-button.primary:hover::before {
    opacity: 0;
}

.cta-button.primary:active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    border: 1px solid var(--black);
    color: var(--black);
}

.cta-button.secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin: 0;
    min-height: 100px;
    max-width: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
    justify-content: center;
}

.logo img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--black);
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.cta-button):after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--black);
    transition: var(--transition);
}

.nav-links a:not(.cta-button):hover:after {
    width: 100%;
}

.nav-links .cta-button {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-links .cta-button:hover {
}

.nav-links .cta-button:hover::before {
    opacity: 0;
}

.nav-links .cta-button:active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    height: 40px;
    width: 42px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    margin: 0;
    position: absolute;
    transition: var(--transition);
    left: 0;
}

.hamburger span:nth-child(1) {
    top: 10%;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 10%;
}

/* Mobile Logo Responsiveness */
@media (max-width: 768px) {
    .logo img {
        height: 70px;
        width: 70px;
    }

    .crewplay-text {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px;
        width: 60px;
    }

    .crewplay-text {
        font-size: 28px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.subheadline {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #333;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    background-color: var(--light-gray);
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

/* How It Works Section */
.how-it-works {
    background-color: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

/* Social Proof Section */
.social-proof {
    background-color: var(--light-gray);
    text-align: center;
}

.proof-card {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.proof-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.proof-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.proof-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.proof-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
}

.founder-note {
    max-width: 700px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #333;
}

.founder-name {
    font-weight: 600;
    color: var(--black);
}

/* Social Links Section */
.social-links {
    background-color: var(--light-gray);
    text-align: center;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.social-button i {
    font-size: 1.25rem;
}

/* JIT Innovation Hub logo */
.proof-icon.jit-logo-wrapper img {
    max-width: 200px;
    height: auto;
    margin: 1rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Threads icon fix */
.fa-threads {
    background: linear-gradient(45deg, #000000, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    vertical-align: middle;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    text-align: center;
    margin-top: 3rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.contact-info a:hover {
    text-decoration: underline;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #25D366;
    color: white !important;
    border-radius: 30px;
    font-weight: 500;
    margin-top: 1rem;
    text-decoration: none !important;
    transition: var(--transition);
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none !important;
}

/* Form Messages */
.form-message {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 2px solid;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideDownSmooth 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.form-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.form-message.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #16a34a;
    color: #166534;
}

.form-message.success::before {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.form-message.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #dc2626;
    color: #991b1b;
}

.form-message.error::before {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.message-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.message-content i.fa-check-circle {
    color: #16a34a;
    filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.3));
}

.message-content i.fa-exclamation-circle {
    color: #dc2626;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
}

.message-text {
    flex: 1;
}

.message-text .main-message {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.message-text .sub-message {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.form-message.success .message-text .sub-message {
    color: #15803d;
}

.form-message.error .message-text .sub-message {
    color: #b91c1c;
}

/* Add subtle background pattern */
.form-message::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.03;
    background: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
}

@keyframes slideDownSmooth {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .form-message {
        margin-bottom: 1.5rem;
        padding: 1.25rem 1.5rem;
    }

    .message-content {
        gap: 0.75rem;
        font-size: 1rem;
    }

    .message-content i {
        font-size: 1.25rem;
    }
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #a1a1a6;
    transition: var(--transition);
    font-size: 0.8125rem;
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-icons a {
    color: #a1a1a6;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
}

.footer-bottom p {
    color: #86868b;
    font-size: 0.875rem;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }
    
    .navbar .container {
        padding: 0 20px;
        position: relative;
    }

    section {
        padding: 100px 0 60px;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 24px;
        width: 42px;
        z-index: 1001;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 80px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
    }

    .founder-note {
        flex-direction: column;
        text-align: center;
    }

    .founder-avatar {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .subheadline {
        font-size: 1.25rem;
    }

    section {
        padding: 80px 0;
    }

    .features-grid,
    .steps,
    .proof-grid {
        grid-template-columns: 1fr;
    }
}

.social-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-right: 8px;
}

/* Legal Pages Styles - Terms & Privacy Policy */
.legal-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 160px 24px 120px;
}

.legal-hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.legal-hero-icon {
    font-size: 4rem;
    color: #1e40af;
    margin-bottom: 20px;
}

.legal-hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: #1e293b;
}

.legal-hero-subtitle {
    font-size: 20px;
    color: #64748b;
    font-weight: 400;
    margin-bottom: 20px;
}

.legal-updated-date {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin-bottom: 60px;
}

.legal-intro-section {
    background-color: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 60px;
    border: 1px solid #e2e8f0;
}

.legal-intro-section p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.legal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.legal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.legal-card-icon {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 20px;
    text-align: center;
}

.legal-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.legal-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #334155;
}

.legal-card p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

.legal-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.legal-card li {
    font-size: 15px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.5;
}

.legal-full-width {
    grid-column: 1 / -1;
    background-color: #1e40af;
    color: white;
    border: 1px solid #1e40af;
}

.legal-full-width .legal-card-icon {
    color: white;
}

.legal-full-width h2,
.legal-full-width h3 {
    color: white;
}

.legal-full-width p,
.legal-full-width li {
    color: #dbeafe;
}

.legal-contact-info {
    margin-top: 20px;
}

.legal-contact-info p {
    margin-bottom: 12px;
    font-size: 16px;
}

.legal-contact-info a {
    color: #dbeafe;
    text-decoration: none;
}

.legal-contact-info a:hover {
    text-decoration: underline;
}

.legal-contact-note {
    font-size: 14px;
    color: #c7d2fe;
    margin-top: 16px;
    font-style: italic;
}

.legal-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

.legal-footer p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 8px;
}

/* Legal Pages Table of Contents */
.legal-toc {
    position: sticky;
    top: 120px;
    width: 250px;
    margin-left: 40px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.legal-toc h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 8px;
}

.legal-toc a {
    display: block;
    padding: 6px 12px;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
}

.legal-toc a:hover,
.legal-toc a.active {
    background-color: #f1f5f9;
    color: #1e40af;
    text-decoration: none;
}

.legal-toc a.active {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 500;
}

/* Legal Pages Layout with TOC */
.legal-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.legal-main-content {
    flex: 1;
    min-width: 0;
}

/* Legal Pages Responsive */
@media (max-width: 1024px) {
    .legal-content-wrapper {
        flex-direction: column;
    }

    .legal-toc {
        position: static;
        width: 100%;
        margin-left: 0;
        margin-bottom: 40px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .legal-wrapper {
        padding: 120px 20px 80px;
    }

    .legal-hero-section {
        margin-top: 40px;
    }

    .legal-hero-section h1 {
        font-size: 36px;
    }

    .legal-hero-subtitle {
        font-size: 18px;
    }

    .legal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-card {
        padding: 24px;
    }

    .legal-intro-section {
        padding: 24px;
        margin-bottom: 40px;
    }

    .legal-intro-section p {
        font-size: 16px;
    }

    .legal-toc {
        padding: 20px;
    }

    .legal-toc h3 {
        font-size: 15px;
    }

    .legal-toc a {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .legal-wrapper {
        padding: 100px 16px 60px;
    }

    .legal-hero-section h1 {
        font-size: 28px;
    }

    .legal-hero-icon {
        font-size: 3rem;
    }

    .legal-card {
        padding: 20px;
    }

    .legal-card-icon {
        font-size: 2rem;
    }

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

/* Confetti and Crown Animation */
.crown-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 50px;
    font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.confetti-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 25px;
    font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
    will-change: transform, opacity;
}

.sparkle-burst {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 30px;
    font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
}

/* Mobile adjustments for emoji animations */
@media (max-width: 768px) {
    .crown-particle {
        font-size: 35px;
    }
    
    .confetti-particle {
        font-size: 18px;
    }
    
    .sparkle-burst {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .crown-particle {
        font-size: 28px;
    }
    
    .confetti-particle {
        font-size: 15px;
    }
    
    .sparkle-burst {
        font-size: 18px;
    }
}

@keyframes crownFall {
    0% {
        transform: translate(0, -100px) rotate(0deg) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, -50px) rotate(0deg) scale(1.2);
    }
    15% {
        transform: translate(var(--swing), 50px) rotate(25deg) scale(1);
    }
    30% {
        transform: translate(calc(var(--swing) * -0.5), 200px) rotate(-15deg) scale(1.1);
    }
    50% {
        transform: translate(var(--swing), 400px) rotate(30deg) scale(0.9);
    }
    75% {
        transform: translate(calc(var(--swing) * 0.3), 600px) rotate(-20deg) scale(0.8);
    }
    100% {
        transform: translate(0, 100vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes confettiFall {
    0% {
        transform: translate(0, -80px) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        transform: translate(var(--x-drift), 100vh) rotate(var(--rotation)) scale(0.2);
        opacity: 0;
    }
}

@keyframes sparkleExplode {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(var(--explode-x), var(--explode-y)) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--explode-x) * 1.5), calc(var(--explode-y) * 1.5)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
    }
}

.crown-particle {
    animation: crownFall ease-in-out forwards, pulse 0.5s ease-in-out infinite;
}

.confetti-particle {
    animation: confettiFall ease-out forwards;
}

.sparkle-burst {
    animation: sparkleExplode ease-out forwards;
}
