/* Root variables matching app theme */
:root {
    /* Light theme colors */
    --bg-primary: #FAFAFA;
    --bg-surface: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --primary-color: #5B7FFF;
    --primary-light: #E8EDFF;
    --border-color: #E5E5E5;
    --success-color: #4CAF82;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #121212;
        --bg-surface: #1E1E1E;
        --bg-secondary: #2A2A2A;
        --text-primary: #F5F5F5;
        --text-secondary: #A0A0A0;
        --text-muted: #666666;
        --primary-color: #7B9FFF;
        --primary-light: #2A3552;
        --border-color: #333333;
        --success-color: #5DC492;
    }
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
}

/* Header */
header {
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Main content */
main {
    flex: 1;
    padding: 48px 0;
}

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

.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Products section */
.products {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.link:hover {
    opacity: 0.8;
}

.link::after {
    content: '→';
    font-size: 18px;
}

.link.external::after {
    content: '↗';
    font-size: 16px;
}

/* Privacy page specific */
.privacy-page {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.intro-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.intro-section p {
    color: var(--text-primary);
    font-size: 16px;
}

.policy-section {
    margin-bottom: 32px;
}

.policy-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.policy-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    margin-top: 16px;
}

.policy-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.policy-section ul {
    margin-left: 24px;
    margin-bottom: 12px;
}

.policy-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.policy-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.permission-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.permission-item h3 {
    margin-top: 0;
}

.permission-item p {
    margin-bottom: 0;
}

.contact-info {
    background: var(--primary-light);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.footer-note {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-top: 48px;
    text-align: center;
}

.footer-note p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 12px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .page-title {
        font-size: 28px;
    }

    main {
        padding: 32px 0;
    }

    .hero {
        padding: 32px 0;
    }

    .tagline {
        font-size: 18px;
    }

    .product-card {
        padding: 24px;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
