/* ============================================================================
 * Public site stylesheet (home / terms / privacy / contact)
 *
 * Loads after base.css (fonts + reset live there). Recreates
 * docs/html/design_handoff_nicosoft_payment (Home + Site.dc) with classes
 * instead of inline styles — the CSP forbids style attributes.
 * ========================================================================== */

html { scroll-behavior: smooth; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- Header -------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 57px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 10, 10, .72);
    backdrop-filter: blur(12px);
}

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

.brand-mark {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #34D399;
    align-items: center;
    justify-content: center;
    flex: none;
}

.brand-name { font-size: 15px; letter-spacing: -0.02em; font-weight: 600; }
.brand-name span { color: #8A8A8A; font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 22px; height: 100%; }

.site-nav a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: 13.5px;
    text-decoration: none;
    transition: color .15s;
    color: #8A8A8A;
    border-bottom: 1.5px solid transparent;
}

.site-nav a:hover { color: #FAFAFA; }
.site-nav a.active { color: #FAFAFA; border-bottom-color: #34D399; }

.header-side { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.header-tag {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: #737373;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 3px 10px;
}

.btn-console {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #0A0A0A;
    background: #FAFAFA;
    border-radius: 8px;
    padding: 7px 13px;
    text-decoration: none;
    transition: background .15s;
}

.btn-console:hover { background: #E4E4E4; }

/* ---- Home hero ----------------------------------------------------------- */

.hero { flex: 1; display: flex; align-items: center; }

.hero-inner { max-width: 1120px; width: 100%; margin: 0 auto; padding: 32px 40px; }

.hero-copy { max-width: 660px; }

.hero-copy h1 { font-size: 54px; line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; margin: 0; }

.hero-copy p { font-size: 17px; line-height: 1.6; color: #9A9A9A; max-width: 500px; margin: 26px 0 0; }

.hero-cta { margin-top: 34px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    background: #34D399;
    color: #06231A;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.btn-primary:hover { background: #6EE7B7; }

/* ---- Legal (terms / privacy) --------------------------------------------- */

.legal-grid {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
}

.legal-toc {
    border-right: 1px solid rgba(255, 255, 255, .06);
    padding: 44px 20px 60px;
    position: sticky;
    top: 57px;
    height: calc(100vh - 57px);
    overflow: auto;
}

.toc-title {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5A5A5A;
    margin-bottom: 12px;
}

.legal-toc a {
    display: flex;
    gap: 9px;
    font-size: 12.5px;
    color: #8A8A8A;
    text-decoration: none;
    padding: 5px 0;
    line-height: 1.45;
}

.legal-toc a:hover { color: #FAFAFA; }

.legal-toc .num { font-family: 'Geist Mono', monospace; color: #4A4A4A; }

.legal-main { padding: 52px 56px 110px; min-width: 0; max-width: 800px; }

.eyebrow {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #34D399;
}

.legal-main h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 0; }

.updated { font-family: 'Geist Mono', monospace; font-size: 12px; color: #737373; margin-top: 12px; }

.legal-intro { font-size: 15px; line-height: 1.75; color: #B4B4B4; margin: 20px 0 0; }

.legal-section { scroll-margin-top: 76px; padding-top: 40px; }

.legal-section h2 {
    font-size: 18.5px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 11px;
}

.legal-section h2 .num { font-family: 'Geist Mono', monospace; font-size: 13px; color: #34D399; }

.legal-section p { font-size: 14.5px; line-height: 1.75; color: #A9A9A9; margin: 13px 0 0; }

.bullets { margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.bullets li { list-style: none; display: flex; gap: 11px; font-size: 14.5px; line-height: 1.7; color: #A9A9A9; }

.bullets li::before { content: "—"; color: #34D399; flex: none; margin-top: 1px; }

/* ---- Contact ------------------------------------------------------------- */

.contact-main { flex: 1; }

.contact-inner { max-width: 760px; margin: 0 auto; padding: 48px 40px 80px; }

.contact-inner h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 0; }

.contact-inner > p { font-size: 15.5px; line-height: 1.6; color: #A1A1A1; max-width: 520px; margin: 16px 0 0; }

.contact-card {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: #0F0F0F;
    padding: 28px;
    margin-top: 32px;
    max-width: 480px;
}

.contact-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(52, 211, 153, .12);
    color: #34D399;
    align-items: center;
    justify-content: center;
}

.contact-card h2 { font-size: 17px; font-weight: 600; margin: 18px 0 0; }

.contact-card p { font-size: 13.5px; line-height: 1.6; color: #8A8A8A; margin: 8px 0 18px; }

.btn-mail {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Geist Mono', monospace;
    font-size: 14px;
    color: #0A0A0A;
    background: #34D399;
    border-radius: 9px;
    padding: 10px 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}

.btn-mail:hover { background: #6EE7B7; }

/* ---- Footer -------------------------------------------------------------- */

.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 34px 24px; margin-top: auto; }

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

.footer-brand { display: flex; align-items: center; gap: 9px; }

.footer-brand .brand-mark { width: 18px; height: 18px; border-radius: 5px; }

.footer-brand span:last-child { font-size: 13.5px; color: #8A8A8A; }

.footer-links { display: flex; gap: 20px; }

.footer-links a { font-size: 13px; color: #8A8A8A; text-decoration: none; transition: color .15s; }

.footer-links a:hover { color: #FAFAFA; }

.footer-note { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: #5A5A5A; }

/* ---- Responsive ----------------------------------------------------------- */

@media (max-width: 860px) {
    .legal-grid { grid-template-columns: 1fr; }
    .legal-toc { display: none; }
    .legal-main { padding: 40px 24px 80px; }
    .hero-copy h1 { font-size: 38px; }
    .site-header { gap: 18px; }
}
