/* AlphaPDF Legal Site — Dark Theme Default */

:root {
    --bg: #0B0F19;
    --surface: #0F172A;
    --text: #F8FAFC;
    --text-secondary: #94A3B8;
    --border: #1E293B;
    --link: #60A5FA;
    --link-hover: #93C5FD;
    --accent: #EF4444;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #F9FAFB;
        --surface: #FFFFFF;
        --text: #0F172A;
        --text-secondary: #64748B;
        --border: #E2E8F0;
        --link: #2563EB;
        --link-hover: #1D4ED8;
        --accent: #EF4444;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.nav {
    background: var(--surface);
    border-bottom: 2px solid var(--accent);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-title {
    color: var(--accent);
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: var(--border);
    color: var(--link);
    text-decoration: none;
}

/* Back link */
.back {
    display: inline-block;
    color: var(--link);
    text-decoration: none;
    margin: 20px 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back:hover {
    color: var(--link-hover);
}

/* Article content */
.article {
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

h1 {
    color: var(--accent);
    font-size: 2.4em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    line-height: 1.2;
}

h2 {
    color: var(--link);
    font-size: 1.6em;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

h3 {
    color: var(--text);
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}

p {
    margin-bottom: 16px;
    color: var(--text);
}

em {
    color: var(--text-secondary);
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Lists */
ul,
ol {
    margin: 16px 0 16px 24px;
}

li {
    margin: 10px 0;
    color: var(--text);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background: var(--border);
    font-weight: 600;
    color: var(--text);
}

/* Cards */
.card {
    display: block;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    border-color: var(--link);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.card h3 {
    color: var(--link);
    margin: 0 0 8px 0;
}

.card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95em;
}

/* Info boxes */
.info-box {
    background: rgba(96, 165, 250, 0.1);
    border-left: 4px solid var(--link);
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #F59E0B;
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

.success-box {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22C55E;
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Pricing */
.pricing-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0;
}

.pricing-card.premium {
    border-color: var(--link);
    background: rgba(96, 165, 250, 0.05);
}

.pricing-card.free {
    border-color: #22C55E;
    background: rgba(34, 197, 94, 0.05);
}

.price {
    font-size: 3em;
    font-weight: 700;
    color: var(--link);
    margin-bottom: 16px;
    line-height: 1.1;
}

.price-period {
    font-size: 0.35em;
    color: var(--text-secondary);
    font-weight: 400;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.feature-list li::before {
    content: "✓ ";
    color: #22C55E;
    font-weight: 700;
    margin-right: 10px;
}

.feature-list li.disabled::before {
    content: "✗ ";
    color: var(--accent);
}

/* Grid for homepage cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 2px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    margin: 8px 0;
}

footer a {
    color: var(--link);
}

/* Responsive */
@media (max-width: 768px) {
    .nav .container {
        flex-direction: column;
        text-align: center;
    }

    .article {
        padding: 24px;
    }

    h1 {
        font-size: 2em;
    }

    .price {
        font-size: 2.2em;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    table,
    th,
    td {
        font-size: 0.95em;
    }
}

/* Print */
@media print {
    .nav,
    footer,
    .back {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .article {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}
