:root {
    --primary-green: #00ac3e;
    --vibrant-green: #88d498;
    --theme-blue: #007aff;
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html,
body {
    height: 100%;
    width: 100%;
    font-family: var(--font-family);
    overflow: hidden;
    background-color: var(--vibrant-green);
}

.container {
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 12% 0 20%;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 20;
    animation: fadeInSlide 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-screenshot {
    position: fixed;
    right: 22%;
    top: 50%;
    transform: translateY(-50%);
    height: 85vh;
    max-width: 40vw;
    object-fit: contain;
    z-index: 5;
    animation: fadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.1));
}

.logo-container {
    margin-bottom: 24px;
}

.app-name {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.slogan {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 24px;
}

.slogan span {
    background: linear-gradient(90deg, #b280ff, #007aff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img {
    height: 56px;
    width: auto;
}

.legal-footer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legal-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer a:hover {
    color: var(--primary-green);
}

.legal-footer .divider {
    margin: 0 8px;
    opacity: 0.5;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translate(30px, -50%);
    }

    100% {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@media (max-width: 1024px) {
    .container {
        justify-content: center;
        padding: 40px 20px;
    }

    .app-screenshot {
        display: none;
        /* Hide for mobile to keep focus on CTA */
    }

    .glass-card {
        max-width: 400px;
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .app-name {
        font-size: 38px;
    }

    .slogan {
        font-size: 16px;
    }

    .app-store-btn img {
        height: 50px;
    }
}

/* Legal Pages Styles */
.legal-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.legal-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    animation: fadeInSlide 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.legal-content {
    overflow-y: auto;
    padding-right: 20px;
    text-align: left;
    color: var(--text-primary);
    line-height: 1.6;
}

.legal-content h1 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-green);
}

.legal-content h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 16px;
    opacity: 0.9;
}

.legal-content ul {
    padding-left: 20px;
}

.back-home {
    margin-top: 32px;
    display: inline-block;
    color: var(--theme-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.back-home:hover {
    opacity: 0.7;
}

/* Custom Scrollbar */
.legal-content::-webkit-scrollbar {
    width: 6px;
}

.legal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.legal-content::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 40px 20px;
    }

    .legal-content h1 {
        font-size: 24px;
    }
}