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

:root {
    --primary: #BC002D;
    --primary-dark: #8B0022;
    --text: #1a1a1a;
    --text-light: #666;
    --bg: #fafafa;
    --card-bg: #fff;
    --border: #e0e0e0;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo {
    width: 72px;
    height: 72px;
}

.app-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.1;
}

.app-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Navigation cards for index page */
.legal-nav {
    display: grid;
    gap: 1rem;
}

.nav-card {
    display: block;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(188, 0, 45, 0.1);
}

.nav-card h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.nav-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Document page styles */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.back-link:hover {
    text-decoration: underline;
}

.document {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    flex: 1;
}

.document h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.effective-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.document h2 {
    font-size: 1.3rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.document p {
    margin-bottom: 1rem;
}

.document ul, .document ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.document li {
    margin-bottom: 0.5rem;
}

.document a {
    color: var(--primary);
}

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

.document strong {
    font-weight: 600;
}

.document code {
    background: var(--bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.summary-box {
    background: var(--bg);
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.summary-box h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.summary-box ul {
    margin-bottom: 0;
}

.disclaimer {
    background: #fff8e6;
    border: 1px solid #f0d68a;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #7a6420;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

    header h1 {
        font-size: 2rem;
    }

    .document {
        padding: 1.5rem;
    }

    .document h1 {
        font-size: 1.5rem;
    }
}
