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

:root {
    --primary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --neural-color: rgba(59, 130, 246, 0.1);
    --neural-active: rgba(59, 130, 246, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
}

#neuralCanvas {
    width: 100%;
    height: 100%;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    padding: 20px 24px;
    margin-top: 22px;
    background: rgba(14, 14, 14, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(14px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-app-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.title-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.background-neural-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(280px, 60vw, 480px);
    height: clamp(80px, 12vw, 100px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    z-index: 1;
    opacity: 0.25;
    pointer-events: none;
}

.neural-layer {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.8vw, 7px);
    z-index: 2;
    align-items: center;
}

.neuron {
    width: clamp(3px, 0.4vw, 4px);
    height: clamp(3px, 0.4vw, 4px);
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    opacity: 0.3;
    position: relative;
}

.neuron.active {
    background: rgba(59, 130, 246, 0.6);
    opacity: 0.8;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
    transform: scale(1.5);
}

.neuron.dormant {
    opacity: 0.1;
    transform: scale(0.8);
}

.neuron.excited {
    background: rgba(96, 165, 250, 0.4);
    opacity: 0.5;
    animation: neuronExcite 1s ease-in-out infinite;
}

.neural-connections {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    stroke: rgba(59, 130, 246, 0.05);
    stroke-width: clamp(0.2, 0.04vw, 0.3);
    fill: none;
    transition: all 0.3s ease;
}

.connection-line.active {
    stroke: rgba(59, 130, 246, 0.4);
    stroke-width: clamp(0.8, 0.12vw, 1);
    animation: connectionPulse 0.6s ease-in-out;
}

.connection-line.weak {
    stroke: rgba(59, 130, 246, 0.02);
    stroke-width: clamp(0.1, 0.025vw, 0.2);
}

.connection-line.strong {
    stroke: rgba(59, 130, 246, 0.15);
    stroke-width: clamp(0.3, 0.06vw, 0.4);
}

@keyframes neuronExcite {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes connectionPulse {
    0% { 
        stroke-width: 0.5;
        opacity: 0.3;
    }
    50% { 
        stroke-width: 2;
        opacity: 1;
    }
    100% { 
        stroke-width: 1.5;
        opacity: 0.8;
    }
}

@keyframes signalFlow {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

.ai-emphasis {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: aiGlow 2s ease-in-out infinite alternate;
}

.powered-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    position: relative;
    font-size: 1em;
    margin: 0 0.1em;
    text-transform: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

@keyframes aiGlow {
    from {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 40px rgba(59, 130, 246, 0.3);
    }
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 50px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: -0.005em;
}

.status {
    margin-bottom: 16px;
}

.status-text {
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.9;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.download-section {
    padding: 24px 0 32px 0;
}

.store-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 14px 20px;
    transition: all 0.25s ease;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.9;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-line1 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1;
    font-weight: 300;
    opacity: 0.8;
}

.store-line2 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2px;
}

.legal-page {
    max-width: 900px;
}

.legal-main {
    align-items: flex-start;
}

.legal-content {
    width: 100%;
    text-align: left;
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 18px;
    padding: 36px;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.legal-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.legal-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.8);
    margin-bottom: 10px;
}

.legal-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: #9dd0ff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.legal-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-section {
    margin: 26px 0;
}

.legal-section h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-list {
    margin-left: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-actions {
    margin-top: 32px;
}

.legal-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 10px 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    transition: all 0.25s ease;
}

.legal-link:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.footer {
    padding: 24px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(59, 130, 246, 0.08);
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.7;
    margin-top: 40px;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 8px;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 12px 14px;
        margin-top: 12px;
        border-radius: 24px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .legal-app-logo {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }
    
    .app-name {
        font-size: 1rem;
    }
    
    .main {
        padding: 40px 0;
    }
    
    .title-container {
        margin-bottom: 40px;
        padding: 30px 0;
    }
    
    .background-neural-network {
        opacity: 0.2;
        padding: 8px;
    }
    
    .subtitle {
        font-size: 1.05rem;
        margin-bottom: 35px;
    }
    
    .status-text {
        font-size: 0.8rem;
    }
    
    .download-section {
        padding: 20px 16px;
        margin: 0 -8px;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .store-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .store-icon {
        width: 26px;
        height: 26px;
    }
    
    .store-line1 {
        font-size: 0.7rem;
    }
    
    .store-line2 {
        font-size: 0.95rem;
    }

    .legal-content {
        padding: 24px;
    }

    .legal-section {
        margin: 22px 0;
    }
}

@media (max-width: 480px) {
    .download-section {
        border-radius: 16px;
        padding: 25px 15px;
    }
}

@media (min-width: 1200px) {
    .background-neural-network {
        width: min(480px, 40vw);
        height: min(100px, 8vw);
    }
    
    .neuron {
        width: 4px;
        height: 4px;
    }
    
    .neural-layer {
        gap: 6px;
    }
    
    .connection-line {
        stroke-width: 0.3;
    }
    
    .connection-line.active {
        stroke-width: 1;
    }
    
    .connection-line.weak {
        stroke-width: 0.2;
    }
    
    .connection-line.strong {
        stroke-width: 0.4;
    }
}
