/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Color Variables for White-Blue Theme */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --secondary-blue: #60a5fa;
    --accent-blue: #0ea5e9;
    --light-blue: #dbeafe;
    --very-light-blue: #eff6ff;
    
    --white: #ffffff;
    --light-gray: #f8fafc;
    --border-gray: #e2e8f0;
    --medium-gray: #cbd5e1;
    
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

/* Clean White Background */
html {
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overscroll-behavior: none;
    -webkit-overscroll-behavior: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

/* Enhanced text elements */
p {
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.015em;
    color: var(--text-medium);
}

/* Code and monospace elements */
code, pre, .monospace {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-weight: 500;
    letter-spacing: 0.025em;
    background: var(--light-gray);
    color: var(--primary-blue);
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* Modern button typography */
button, .btn, .btn-primary, .btn-secondary {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Clean overscroll fixes */
body::before {
    content: '';
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--white);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100vh;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--white);
    z-index: -1;
}

/* Prevent pull-to-refresh and bouncing */
.no-scroll {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Selection styling */
::selection {
    background: var(--light-blue);
    color: var(--primary-blue-dark);
    }
    
::-moz-selection {
    background: var(--light-blue);
    color: var(--primary-blue-dark);
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Remove outline for mouse users but keep for keyboard users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Improved focus for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Clean tap highlight */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ===== HEADER STYLES ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.logo:hover {
    transform: translateY(-1px);
    color: var(--primary-blue-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-blue);
    background: var(--very-light-blue);
}

.nav-links a.active {
    color: var(--primary-blue);
    background: var(--light-blue);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 0.7rem 1rem 0.7rem 3rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.connect-btn {
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.connect-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.connect-btn.active {
    background: var(--primary-blue-dark);
    box-shadow: var(--shadow-md);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--white) 50%, var(--light-blue) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: var(--primary-blue);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

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

.hero-content h1 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CANVAS STYLES ===== */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 6rem 2rem;
    background: var(--white);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-container h2 {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-blue);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--light-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
    }

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-medium);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-blue) 50%, transparent 100%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

/* Brand Section */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-blue);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-gray);
}

.footer-social .social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 8px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 4px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding: 2rem 0;
    background: rgba(248, 250, 252, 0.5);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

.footer-badge i {
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ===== MAIN CONTENT WRAPPER ===== */
.main-content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== MARKETPLACE STYLES ===== */
.marketplace-hero {
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--white) 100%);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.marketplace-hero .hero-content h1 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.marketplace-hero .hero-content p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.marketplace-stats {
    padding: 3rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.filters-section {
    padding: 2rem;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-gray);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-option {
    background: var(--white);
    color: var(--text-medium);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-option:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.filter-option.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.marketplace-grid {
    padding: 2rem 2rem 4rem;
    background: var(--white);
    flex: 2;
    overflow-y: auto;
}

.grid-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.grid-header h2 {
    color: var(--text-dark);
}

.view-options {
    display: flex;
    gap: 0.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-btn.active,
.view-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.nft-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.nft-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-blue);
}

.nft-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
}

.nft-card:hover .nft-image img {
    transform: scale(1.05);
}

.nft-rarity {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    color: var(--primary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nft-rarity.verified {
    background: var(--success);
    color: var(--white);
}

.nft-rarity.premium {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
}

.nft-rarity.new {
    background: var(--warning);
    color: var(--white);
}

.nft-info {
    padding: 1.5rem;
}

.nft-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.nft-creator {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nft-creator i {
    color: var(--primary-blue);
}

.nft-price {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.price-section {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.nft-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.rating {
    background: var(--warning);
    color: var(--white);
}

.nft-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.stat {
    color: var(--text-medium);
}

.nft-actions {
    margin-top: 1rem;
}

.nft-actions .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
    font-size: 0.9rem;
}

/* ===== CREATE PAGE STYLES ===== */
.create-hero {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--white) 100%);
    text-align: center;
}

.create-hero .hero-content h1 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.create-form-section {
    padding: 4rem 2rem;
    background: var(--white);
}

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

.create-form {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h3 i {
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

select.form-input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Form validation states */
.form-input.error {
    border-color: var(--error);
    background: #fef2f2;
}

.form-input.success {
    border-color: var(--success);
    background: #f0fdf4;
}

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    color: var(--primary-blue-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-note i {
    color: var(--primary-blue);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-hero {
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--white) 100%);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.profile-hero .hero-content h1 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* ===== DASHBOARD STYLES ===== */
.main-dashboard {
    background: var(--white);
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.welcome-section h1 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.wallet-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-gray);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    flex-wrap: wrap;
    gap: 1rem;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

.wallet-info i {
    color: var(--primary-blue);
}

.disconnect-btn {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.disconnect-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.action-panels {
    margin-bottom: 3rem;
}

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

.action-panel {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.action-panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-blue);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.panel-header h3 {
    color: var(--text-dark);
    margin: 0;
}

.panel-content p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.panel-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.panel-actions .btn-primary,
.panel-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.recent-activity {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: var(--text-dark);
    margin: 0;
}

.view-all-btn {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.activity-list {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    transition: background 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--light-gray);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-icon.text-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-icon.text-primary {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.activity-icon.text-info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
}

.activity-icon.text-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
}

.activity-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

.activity-value {
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.activity-value .success {
    color: var(--success);
}

.activity-value .primary {
    color: var(--primary-blue);
}

.activity-value .info {
    color: var(--accent-blue);
}

.activity-value .danger {
    color: var(--error);
}

.collection-preview {
    margin-bottom: 3rem;
}

.nft-card-preview {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nft-card-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nft-card-preview .nft-image {
    height: 160px;
}

.nft-card-preview h4 {
    color: var(--text-dark);
    margin: 0.75rem 1rem 0.5rem;
    font-size: 1rem;
}

.nft-card-preview p {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0 1rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.add-more-card {
    background: var(--light-gray);
    border: 2px dashed var(--border-gray);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 240px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.add-more-card:hover {
    border-color: var(--primary-blue);
    background: var(--very-light-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.add-more-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.add-more-card p {
    margin: 0;
    font-weight: 600;
}

/* ===== AUTH PAGE STYLES ===== */
.wallet-connection-area {
    margin-bottom: 2rem;
}

.metamask-connect-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.metamask-connect-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.metamask-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.metamask-connect-card:hover .metamask-icon {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

.metamask-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.metamask-content p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.metamask-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

.connection-status-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.status-text h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.status-text p {
    color: var(--text-medium);
    margin: 0;
}

.requirements-card {
    background: var(--very-light-blue);
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    padding: 1.5rem;
}

.requirements-card h4 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-list {
    list-style: none;
    margin-bottom: 1rem;
}

.requirements-list li {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.requirements-list i {
    color: var(--success);
    font-size: 0.9rem;
}

.install-metamask p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: var(--very-light-blue);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.benefit-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.benefit-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.security-notice {
    background: var(--light-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.security-notice i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.notice-content h4 {
    color: var(--primary-blue-dark);
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: var(--primary-blue-dark);
    line-height: 1.6;
    margin: 0;
}

.terms-link {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 600;
}

.terms-link:hover {
    color: var(--primary-blue-dark);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--white);
    color: var(--text-medium);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.page-btn:hover:not(:disabled) {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.page-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-dots {
    color: var(--text-light);
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== TABLET OPTIMIZATIONS ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .nft-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.75rem;
    }
    
    .nft-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .search-box input {
        width: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid,
    .stats-container,
    .panel-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        align-items: stretch;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .grid-header {
        flex-direction: column;
        text-align: center;
    }
    
    .wallet-status {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-numbers {
        order: 2;
    }
    
    .page-btn.prev {
        order: 1;
    }
    
    .page-btn.next {
        order: 3;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .dashboard-container {
        padding: 1rem;
    }
    
    .create-form {
        padding: 2rem 1.5rem;
    }
    
    .metamask-connect-card {
        padding: 1.5rem;
    }
    
    .nft-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nft-image {
        height: 200px;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        text-align: left;
    }
    
    .activity-content {
        order: 2;
    }
    
    .activity-value {
        order: 3;
        align-self: flex-end;
    }
    }
    
/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .floating-elements,
    .btn-primary,
    .btn-secondary,
    .connect-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .create-hero,
    .marketplace-hero,
    .profile-hero {
        background: white !important;
        padding: 2rem 0 !important;
    }
    
    .nft-card,
    .feature-card,
    .stat-item,
    .action-panel {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-gray: #000;
        --text-light: #000;
        --text-medium: #000;
    }
    
    .nft-card,
    .feature-card,
    .stat-item,
    .action-panel {
        border: 2px solid #000;
    }
}

/* Dark mode preference detection */
@media (prefers-color-scheme: dark) {
    /* Users who prefer dark mode will still get the white-blue theme */
    /* but with slightly adjusted contrast for better readability */
    :root {
        --light-gray: #f1f5f9;
        --text-muted: #64748b;
    }
}

/* ===== LEGAL DOCUMENT STYLES ===== */
.legal-document {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.document-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.document-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.last-updated {
    color: var(--text-medium);
    font-size: 1rem;
    font-style: italic;
}

.document-content {
    line-height: 1.8;
    color: var(--text-medium);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.8rem 0;
    font-family: 'Space Grotesk', sans-serif;
}

.legal-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
    list-style-type: disc;
}

.legal-section li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.contact-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

.document-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    background: var(--very-light-blue);
    padding: 2rem;
    border-radius: 8px;
}

.document-footer p {
    font-weight: 500;
    color: var(--text-dark);
    font-style: italic;
}

/* Responsive design for legal documents */
@media (max-width: 768px) {
    .legal-document {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .document-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-section ul {
        margin-left: 1.5rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
}