/* pages.css - Editorial, Legal & Content Pages for CarDataSales */
:root {
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --accent-blue: #2563eb;
    --accent-blue-light: #eff6ff;
    --accent-green: #16a34a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    text-decoration: none;
}

.nav-cta {
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
}
.nav-cta:hover {
    background: #1d4ed8 !important;
}

/* Page Layout */
.content-wrapper {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumbs a {
    color: var(--text-light);
}
.breadcrumbs a:hover {
    color: var(--accent-blue);
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

/* Typography */
h1.page-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 24px;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin: 32px 0 14px 0;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin: 22px 0 10px 0;
}

p {
    margin-bottom: 16px;
    color: #334155;
    font-size: 15px;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: #334155;
    font-size: 15px;
}
li {
    margin-bottom: 8px;
}

/* Highlights & Callout Boxes */
.callout-box {
    background: #f1f5f9;
    border-left: 4px solid var(--accent-blue);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
    font-size: 14px;
    color: #1e293b;
}
.callout-box strong {
    color: #0f172a;
}

.stats-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.stat-pill {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
}
.stat-pill .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 0.05em;
}
.stat-pill .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-blue);
    margin-top: 4px;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
table.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}
table.content-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
}
table.content-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: #334155;
}
table.content-table tr:last-child td {
    border-bottom: none;
}
table.content-table tr:hover td {
    background: #f8fafc;
}

/* FAQ Box */
.faq-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: #ffffff;
    overflow: hidden;
}
.faq-question {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}
.faq-answer {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 48px 24px 28px 24px;
    margin-top: 64px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-main);
    margin-bottom: 14px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 8px;
}
.footer-col a {
    color: var(--text-light);
    font-size: 13px;
}
.footer-col a:hover {
    color: var(--accent-blue);
    text-decoration: none;
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .content-card {
        padding: 24px 20px;
    }
    h1.page-title {
        font-size: 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
