/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ─────────────────────────────────── */
:root {
    --primary:      #4F46E5;
    --primary-dark: #3730A3;
    --primary-bg:   #EEF2FF;
    --text:         #111827;
    --muted:        #6B7280;
    --border:       #E5E7EB;
    --surface:      #F9FAFB;
    --white:        #ffffff;
    --radius:       12px;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:    0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Base ──────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Nav ───────────────────────────────────────────── */
.fv-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.fv-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.fv-brand-mark {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.fv-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    line-height: 1.2;
}

.fv-brand-tagline {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 400;
    display: block;
    line-height: 1;
}

.fv-nav-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.fv-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--white);
    transition: border-color .15s, color .15s, box-shadow .15s;
    font-family: var(--font);
}

.fv-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ── Page content wrapper ──────────────────────────── */
.fv-page {
    flex: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
    width: 100%;
}

/* ── Typography for policy pages ───────────────────── */
.fv-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.fv-page .fv-page-meta {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.fv-page h2,
.fv-page h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.fv-page p {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

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

.fv-page li {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

.fv-page hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.fv-page a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.fv-page a:hover {
    text-decoration: underline;
}

.fv-page strong {
    font-weight: 600;
    color: var(--text);
}

/* Bootstrap container override for policy pages */
.container.my-4 {
    max-width: 820px;
    padding: 3.5rem 1.5rem 4rem;
}

.container.my-4 h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.container.my-4 h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.container.my-4 p {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.container.my-4 ul,
.container.my-4 ol {
    margin-bottom: 1rem;
}

.container.my-4 li {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

.container.my-4 hr {
    border-color: var(--border);
    margin: 2rem 0;
}

.container.my-4 a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.container.my-4 a:hover { text-decoration: underline; }

.container.my-4 strong {
    font-weight: 600;
    color: var(--text);
}

.container.my-4 .col-md-12.py-5 {
    padding-top: 0 !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

/* ── Footer ────────────────────────────────────────── */
.fv-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.fv-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fv-footer-copy {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: var(--font);
}

.fv-footer-policy {
    display: flex;
    gap: 1.25rem;
}

.fv-footer-policy a {
    font-size: 0.825rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
    font-family: var(--font);
}

.fv-footer-policy a:hover { color: var(--primary); }

.fv-footer-links {
    display: flex;
    gap: 0.5rem;
}

.fv-footer-link {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}

.fv-footer-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* ── Utilities ─────────────────────────────────────── */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
    .fv-nav-inner { height: 60px; }
    .fv-footer-inner { flex-direction: column; align-items: flex-start; }
    .fv-footer-policy { flex-wrap: wrap; gap: 0.75rem; }
    .container.my-4 { padding: 2rem 1.25rem 3rem; }
}

@media (max-width: 480px) {
    .fv-nav-actions .fv-btn-ghost:first-child { display: none; }
}
