:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #4f46e5;
    --accent-hover: #6366f1;
    --border: #2a2a2a;
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(79, 70, 229, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

/* Main page specific styles */
body.home {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f0f0f 100%);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Home page container */
.container.home {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* Legal pages container */
.container.legal {
    max-width: 800px;
    padding: 2rem 1.5rem;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 0 40px var(--glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    padding: 8px;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--glow);
}

/* Legal page logo */
.logo.small {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: block;
    padding: 0;
    box-shadow: none;
    background: none;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-section {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 600px;
}

.cta-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow);
    margin-bottom: 2rem;
}

.cta-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    min-width: 200px;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
}

.cta-email {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    width: 100%;
}

.feature {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Partners section */
.partners-section {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    width: 100%;
}

.partners-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 4px 16px var(--shadow);
    overflow: hidden;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--accent);
}

.partner-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: var(--border);
}

.partner-card:hover .thumbnail-image {
    transform: scale(1.05);
}

.partner-info {
    padding: 1.5rem;
    text-align: center;
}

.partner-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.partner-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Legal page specific styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.content {
    margin-bottom: 4rem;
}

.intro {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section {
    margin-bottom: 3rem;
}

.section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    letter-spacing: -0.025em;
}

.section p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.section ul, .section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.section li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: normal;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

/* Legal page footer */
.footer.legal {
    background: transparent;
    padding-top: 2rem;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Legal page footer links */
.footer.legal .footer-links {
    margin-bottom: 0;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--accent-hover);
}

.separator {
    color: var(--text-muted);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .container.legal {
        padding: 1.5rem 1rem;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro, .contact-info {
        padding: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    .partners-section h2 {
        font-size: 1.6rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .partner-thumbnail {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .section h3 {
        font-size: 1.2rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }

    .cta-card {
        padding: 1.5rem 1rem;
    }

    .cta-card h2 {
        font-size: 1.3rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .partners-section h2 {
        font-size: 1.4rem;
    }

    .partner-thumbnail {
        height: 160px;
    }

    .partner-info {
        padding: 1rem;
    }
}