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

:root {
    --bg-primary: #18181b;
    --bg-secondary: #27272a;
    --bg-tertiary: #3f3f46;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --border: #3f3f46;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 60px 0;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.app-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Legal links section */
.legal-links {
    flex: 1;
    padding: 40px 0;
}

.legal-links h2 {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.legal-links nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.link-button {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.link-button:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.link-button .icon {
    font-size: 1.5rem;
    margin-right: 16px;
}

.link-button .text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

footer .contact a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Legal document pages */
.document-page {
    padding: 20px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 32px;
    padding: 8px 0;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link::before {
    content: '←';
    margin-right: 8px;
}

.document-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.document-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.document-header .last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Document content */
.document-content h2 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.document-content h3 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.document-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.document-content ul, 
.document-content ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.document-content li {
    margin-bottom: 8px;
}

.document-content strong {
    color: var(--text-primary);
}

.document-content a {
    color: var(--accent);
    text-decoration: none;
}

.document-content a:hover {
    text-decoration: underline;
}

.document-content .highlight-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
}

.document-content .highlight-box p {
    margin-bottom: 0;
}

.document-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* Contact section in documents */
.contact-section {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
}

.contact-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.contact-section p {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .app-name {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .link-button {
        padding: 16px 20px;
    }
    
    .document-header h1 {
        font-size: 1.5rem;
    }
}
