/* ==========================================================================
   Pivot Health – compliance UI (DPDP Act 2023 / NMC alignment)
   Footer disclaimers, form consent blocks, cookie consent banner.
   Plain CSS so it works on every page, with or without Tailwind.
   ========================================================================== */

/* ---------- Footer disclaimers ---------- */
.pv-disclaimers {
    max-width: 56rem;
    margin: 1.5rem auto 0;
    padding: 1rem 1rem 0;
    border-top: 1px solid rgba(15, 118, 110, 0.18);
    text-align: left;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #4b5563;
}
.pv-disclaimers p { margin: 0 0 0.6rem; }
.pv-disclaimers strong { color: #1f2937; }
.pv-disclaimers a { color: #c2410c; text-decoration: underline; }
.pv-footer-links { margin-top: 0.25rem; text-align: center; }
.pv-footer-links a,
.pv-footer-links button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 0.8rem;
    color: #c2410c;
    cursor: pointer;
    text-decoration: underline;
}

/* Stand-alone footer for pages that had none */
.pv-mini-footer {
    background: #f0fdfa;
    padding: 2rem 1rem;
    text-align: center;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.pv-mini-footer .pv-copy { font-size: 0.85rem; color: #6b7280; margin: 0; }
.pv-mini-footer .pv-nav a { color: #f97316; margin: 0 0.35rem; font-size: 0.9rem; }

/* ---------- Form privacy notice + consent ---------- */
.pv-consent {
    margin: 0 0 1.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
}
.pv-consent .pv-notice {
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.pv-consent label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 0.6rem;
    cursor: pointer;
}
.pv-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    accent-color: #0d9488;
}
.pv-consent a { text-decoration: underline; }
/* Dark (contact section) variant */
.pv-consent--dark { color: #e5e7eb; }
.pv-consent--dark a { color: #fdba74; }
/* Light (assessment page) variant */
.pv-consent--light { color: #374151; }
.pv-consent--light .pv-notice { background: #f0f9ff; border-color: #bae6fd; }
.pv-consent--light a { color: #0369a1; }

/* ---------- Content notes (testimonial / evidence pages) ---------- */
.pv-content-note {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #4b5563;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

/* ---------- Cookie consent banner ---------- */
.pv-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2147483000;
    max-width: 44rem;
    margin: 0 auto;
    background: #ffffff;
    color: #1f2937;
    border-radius: 0.9rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    border: 1px solid #e5e7eb;
    padding: 1.15rem 1.25rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}
.pv-cookie[hidden] { display: none; }
.pv-cookie h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.35rem; color: #0f172a; }
.pv-cookie p { margin: 0 0 0.85rem; }
.pv-cookie a { color: #0369a1; text-decoration: underline; }
.pv-cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pv-cookie button {
    font: inherit;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
    border: 1px solid #0f766e;
}
/* Accept and Reject are deliberately given equal visual weight */
.pv-cookie .pv-btn-primary { background: #0f766e; color: #fff; }
.pv-cookie .pv-btn-secondary { background: #fff; color: #0f766e; }
.pv-cookie .pv-btn-link { background: none; border-color: transparent; color: #0369a1; text-decoration: underline; padding-left: 0.25rem; padding-right: 0.25rem; }
.pv-cookie button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

.pv-cookie-prefs { margin: 0 0 0.9rem; border-top: 1px solid #e5e7eb; }
.pv-cookie-prefs[hidden] { display: none; }
.pv-cookie-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.pv-cookie-row strong { display: block; color: #0f172a; }
.pv-cookie-row span { color: #6b7280; font-size: 0.8rem; }
.pv-cookie-row input { width: 1.15rem; height: 1.15rem; accent-color: #0f766e; flex: 0 0 auto; margin-top: 0.2rem; }

@media (max-width: 480px) {
    .pv-cookie { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 1rem; }
    .pv-cookie-actions button { flex: 1 1 100%; }
}
