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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #1a1a1a;
    color: #f0ece4;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

/* Navigation */
.top-nav {
    background-color: #212121;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0ece4;
    text-decoration: none;
    grid-column: 2;
    justify-self: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    grid-column: 3;
    justify-self: end;
}

.nav-link {
    color: #f0ece4;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #B97C5F;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 4rem 0;
}

/* Home page styles */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #7E7572;
}

.app-store-button {
    display: inline-block;
    background-color: #B97C5F;
    color: #f0ece4;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-size: 1.1rem;
}

.app-store-button:hover {
    background-color: #8F7063;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.feature {
    text-align: center;
}

.feature-title {
    margin-bottom: 1rem;
    color: #f0ece4;
}

.feature-description {
    color: #7E7572;
    line-height: 1.8;
}

.support {
    text-align: center;
    padding: 2rem 0;
}

.support-text {
    color: #7E7572;
    font-size: 0.9rem;
}

.support-email {
    color: #589497;
    text-decoration: none;
}

.support-email:hover {
    text-decoration: underline;
}

/* Legal pages */
.legal-page {
    max-width: none;
}

.legal-page .container {
    max-width: 800px;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    margin-bottom: 0.5rem;
}

.legal-subtitle {
    color: #7E7572;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-content {
    line-height: 1.8;
    text-align: center;
}

.legal-section {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.legal-section h2 {
    margin-bottom: 1.5rem;
    color: #f0ece4;
    text-align: center;
}

.legal-section p {
    margin-bottom: 1rem;
    color: #f0ece4;
    text-align: center;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section em {
    color: #B97C5F;
    font-style: italic;
}

.numbered-list {
    list-style: none;
    counter-reset: item;
    margin: 1.5rem 0;
    padding: 0;
}

.numbered-list li {
    counter-increment: item;
    margin-bottom: 1rem;
    padding-left: 0;
    position: static;
    text-align: center;
}

.numbered-list li::before {
    content: counter(item, decimal-leading-zero) ".";
    position: static;
    margin-right: 0.5rem;
    color: #B97C5F;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #212121;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #f0ece4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #B97C5F;
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-email {
    color: #589497;
    text-decoration: none;
}

.footer-email:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #7E7572;
    font-size: 0.9rem;
}

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

    .nav-container {
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

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

    .main-content {
        padding: 2rem 0;
    }

    .legal-page {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .app-store-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
