/*
    Public site (logged-out pages): home, terms, privacy, FAQ, refunds.
    Shared by Views/Home/Index.cshtml and Views/Shared/_PublicLayout.cshtml, so the nav and
    footer look the same everywhere. Page-specific styles stay inline in each page.
*/
*, *::before, *::after { box-sizing: border-box; }
:root {
    --purple: #7854F7;
    --purple-dark: #5c3de8;
    --purple-deep: #1a0e3b;
    --purple-light: #f5f3ff;
    --green: #10b981;
    --text: #1a1a2e;
    --muted: #6b7280;
    --border: #e5e7eb;
}
html { scroll-behavior: smooth; }
body { font-family: "Inter", sans-serif; color: var(--text); margin: 0; background: #fff; }
a { text-decoration: none; }

/* ── Navbar ── */
.lp-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
}
.lp-nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.lp-nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.lp-nav-brand img { width: 38px; height: 38px; border-radius: 10px; }
.lp-nav-brand span { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.lp-nav-links { display: flex; align-items: center; gap: 2rem; }
.lp-nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.lp-nav-links a:hover { color: var(--purple); }
.lp-nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-nav-login {
    font-size: 0.875rem; font-weight: 600; color: var(--purple); background: none;
    border: 1.5px solid var(--purple); border-radius: 10px; padding: 0.5rem 1.25rem;
    transition: background 0.2s, color 0.2s;
}
.btn-nav-login:hover { background: var(--purple-light); }
.btn-nav-signup {
    font-size: 0.875rem; font-weight: 600; color: #fff;
    background: var(--purple); border: none; border-radius: 10px; padding: 0.5rem 1.25rem;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-nav-signup:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.lp-nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); }
@media (max-width: 768px) {
    .lp-nav-links { display: none; }
    .lp-nav-toggle { display: block; }
    .lp-nav-actions { display: none; }
    .lp-nav.is-open .lp-nav-inner { flex-wrap: wrap; height: auto; padding: 0.9rem 0; gap: 0.75rem; }
    .lp-nav.is-open .lp-nav-links,
    .lp-nav.is-open .lp-nav-actions { display: flex; flex-basis: 100%; flex-wrap: wrap; gap: 1rem; }
}

/* ── Footer ── */
.lp-footer { background: #0f0626; color: rgba(255,255,255,0.65); }
.lp-footer-inner { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; }
.lp-footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.lp-footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.lp-footer-brand span { font-size: 1.1rem; font-weight: 800; color: #fff; }
.lp-footer p { font-size: 0.85rem; line-height: 1.6; max-width: 280px; }
.lp-footer-heading { font-size: 0.8rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.lp-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.lp-footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-partners { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-top: 2rem; max-width: 820px; }
.lp-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.lp-footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; max-width: none; }

/* ── Legal / help pages (terms, privacy, FAQ, refunds) ── */
.lp-doc-head { background: var(--purple-light); padding: 3.5rem 1.5rem 2.5rem; border-bottom: 1px solid var(--border); }
.lp-doc-head-inner, .lp-doc { max-width: 820px; margin: 0 auto; }
.lp-doc-head h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.lp-doc-head p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.lp-doc { padding: 2.5rem 1.5rem 4rem; font-size: 0.95rem; line-height: 1.75; }
.lp-doc h2 { font-size: 1.2rem; font-weight: 800; margin: 2.25rem 0 0.6rem; letter-spacing: -0.01em; }
.lp-doc h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.lp-doc ul, .lp-doc ol { padding-left: 1.25rem; }
.lp-doc li { margin-bottom: 0.35rem; }
.lp-doc a { color: var(--purple); }
.lp-doc a:hover { text-decoration: underline; }
.lp-doc table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 0.75rem 0 1rem; }
.lp-doc th, .lp-doc td { border: 1px solid var(--border); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.lp-doc th { background: #fafafa; font-weight: 700; }
.lp-doc-toc { background: #fafafa; border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.lp-doc-toc ol { margin: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .lp-doc-toc ol { columns: 1; } }
.lp-doc-note { background: var(--purple-light); border-left: 3px solid var(--purple); border-radius: 8px; padding: 0.85rem 1rem; margin: 1rem 0; }

/*
    Placeholder for a legal fact the operator has not confirmed yet (company name, RC number,
    address, privacy contact). Deliberately loud so it cannot ship unnoticed. Filled from
    AppSettings:Legal* in appsettings.json - once set, this style never renders.
*/
.lp-confirm { background: #fef3c7; color: #92400e; border: 1px dashed #f59e0b; border-radius: 4px; padding: 0 0.3rem; font-weight: 600; font-size: 0.9em; }

/* FAQ accordion (native details/summary) */
.lp-faq-group { margin-top: 2rem; }
.lp-faq-group > h2 { margin-top: 0; }
.lp-faq details { border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; background: #fff; }
.lp-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--purple); font-weight: 800; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq details > div { margin-top: 0.6rem; color: #374151; }
.lp-faq details > div p:last-child { margin-bottom: 0; }
