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

:root {
    --primary-color: #007AFF;
    --primary-hover: #0056b3;
    --text-color: #1d1d1f;
    --text-secondary: #6e6e73;
    --background: #ffffff;
    --surface: #f5f5f7;
    --border: #d2d2d7;
    --max-width: 800px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0a84ff;
        --primary-hover: #409cff;
        --text-color: #f5f5f7;
        --text-secondary: #a1a1a6;
        --background: #000000;
        --surface: #1c1c1e;
        --border: #38383a;
    }
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

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

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-hover);
}

/* Main content */
main {
    margin-bottom: 3rem;
}

/* Card grid for landing page */
.legal-links h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    display: block;
    background-color: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

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

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* Legal content styles */
.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

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

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

.legal-content strong {
    font-weight: 600;
}

/* Footer styles */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Support page styles */
.support-content section {
    margin-bottom: 3rem;
}

.contact-section {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-button * {
    text-decoration: none !important;
}

.contact-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.contact-button.secondary {
    background-color: var(--surface);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.contact-button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.button-icon {
    font-size: 1.1rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

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

.faq-item a:hover {
    text-decoration: underline;
}

.more-help {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.more-help h2 {
    margin-bottom: 1rem;
}

.more-help p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

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

    .contact-section,
    .more-help {
        padding: 1.5rem;
    }

    .faq-section h2 {
        font-size: 1.25rem;
    }
}
