:root {
    --bg-color: #f3f4f6;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --accent-color: #2563eb;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.nav-links a {
    margin-left: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Layout */
.container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    flex: 1;
}

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

/* Home Page Specific */
.hero-card {
    background: var(--card-bg);
    padding: 4rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

p.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: inline-block;
    background-color: var(--text-main);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    margin: 0.5rem;
}

.button:hover {
    background-color: #000000;
}

.button.outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.button.outline:hover {
    background-color: #f3f4f6;
}

.support-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Legal Pages (Terms & Privacy) */
.content-area {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

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

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: block;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .container {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .hero-card,
    .content-area {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .legal-section h1 {
        font-size: 1.75rem;
    }
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    font-size: 0.9375rem;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--bg-color);
    width: 30%;
    font-weight: 600;
}
