/* Marginalia Website Styles */

/* Color Variables */
:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --accent: #9333EA;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border: #E5E7EB;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-width {
    max-width: 800px;
}

/* Header */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

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

.logo a {
    color: var(--primary);
    text-decoration: none;
}

.logo a:hover {
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 24px;
    font-style: italic;
}

.hero-description {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.cta-note {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.85;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
    background-color: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Privacy Policy Section */
.privacy-policy {
    padding: 60px 20px;
    background-color: var(--white);
}

.privacy-policy h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.privacy-policy h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.privacy-policy h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--primary);
}

.privacy-policy p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.privacy-policy ul {
    margin-bottom: 16px;
    margin-left: 20px;
}

.privacy-policy li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.6;
}

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

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

.final-note {
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-top: 32px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .privacy-policy h1 {
        font-size: 28px;
    }

    .privacy-policy h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .features, .how-it-works {
        padding: 60px 20px;
    }

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