/* ── Revanzator Compliance CSS — namespaced ── */

/* ─ Legacy compat ───────────────────────────────────────────────────────── */
.revc-legal { padding-block: var(--rv-s-5, 40px); }
.revc-legal .rv-container { max-width: 820px; }

/* ─ Legal Page ─────────────────────────────────────────────────────────── */
.revc-legal-page {
    padding: 40px 0 80px;
    /* Fundal și culoare explicite: previn moștenirea color:white din tema dark */
    background: #ffffff;
    color: #0a0a0b;
}
.rv-theme-dark .revc-legal-page {
    background: var(--rv-bg, #0f0f10);
    color: #e5e7eb;
}
.revc-legal-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}
.revc-legal-header {
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding-bottom: 24px;
}
.rv-theme-dark .revc-legal-header {
    border-bottom-color: rgba(255,255,255,.1);
}
.revc-legal__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--rv-accent, #22d3ee);
    text-decoration: none;
    margin-bottom: 16px;
    opacity: .8;
    transition: opacity .15s;
}
.revc-legal__back:hover { opacity: 1; }
.revc-legal-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #050505;
}
.rv-theme-dark .revc-legal-title { color: #f9fafb; }
.revc-legal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: #6b7280;
    flex-wrap: wrap;
}
.rv-theme-dark .revc-legal-meta { color: #9ca3af; }
.revc-legal-meta__sep { opacity: .6; }

/* ─ Content ─────────────────────────────────────────────────────────────── */
.revc-legal-content {
    font-size: .97rem;
    line-height: 1.75;
    /* Culoare explicită — fără var() ca să nu moștenim alb din tema dark */
    color: #1f2937;
}
.rv-theme-dark .revc-legal-content { color: #d1d5db; }

.revc-legal-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 36px 0 12px;
    color: #050505;
    line-height: 1.25;
}
.rv-theme-dark .revc-legal-content h1 { color: #f9fafb; }

.revc-legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 32px 0 10px;
    color: #0a0a0b;
}
.rv-theme-dark .revc-legal-content h2 { color: #f9fafb; }

.revc-legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 24px 0 8px;
    color: #111827;
}
.rv-theme-dark .revc-legal-content h3 { color: #e5e7eb; }

.revc-legal-content p {
    margin: 0 0 16px;
    color: inherit;
}
.revc-legal-content ul,
.revc-legal-content ol {
    margin: 0 0 16px;
    padding-left: 1.4em;
}
.revc-legal-content li {
    margin-bottom: 6px;
    color: inherit;
}
.revc-legal-content a {
    color: var(--rv-accent, #22d3ee);
    text-decoration: underline;
}
.rv-theme-dark .revc-legal-content a { color: #22d3ee; }
.revc-legal-content strong { font-weight: 600; }
.revc-legal-content em { font-style: italic; }
.revc-legal-content hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,.1);
    margin: 28px 0;
}
.rv-theme-dark .revc-legal-content hr { border-top-color: rgba(255,255,255,.1); }

/* Tabel în documente legale */
.revc-legal-content table,
.revc-legal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin: 0 0 20px;
}
.revc-legal-content table th,
.revc-legal__table th {
    background: #f3f4f6;
    font-weight: 600;
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #e5e7eb;
    color: #111827;
}
.revc-legal-content table td,
.revc-legal__table td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    vertical-align: top;
}
.rv-theme-dark .revc-legal-content table th,
.rv-theme-dark .revc-legal__table th { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: #f9fafb; }
.rv-theme-dark .revc-legal-content table td,
.rv-theme-dark .revc-legal__table td { border-color: rgba(255,255,255,.08); color: #d1d5db; }

.revc-legal-content mark.revc-legal__ph {
    background: rgba(239,68,68,.12);
    color: #b91c1c;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: .9em;
}
.rv-theme-dark .revc-legal-content mark.revc-legal__ph {
    background: rgba(239,68,68,.2);
    color: #fca5a5;
}

/* ─ Legal Footer ────────────────────────────────────────────────────────── */
.revc-legal-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,.08);
}
.rv-theme-dark .revc-legal-footer { border-top-color: rgba(255,255,255,.1); }

/* ─ Cookie Banner ───────────────────────────────────────────────────────── */
#revc-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #18181b;
    color: #f9fafb;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 99999;
    font-size: 13px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
#revc-cookie-bar a { color: #22d3ee; text-decoration: underline; }

/* ─ Trust Badges ────────────────────────────────────────────────────────── */
.revc-footer-trust-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
/* Badge link sau span */
.revc-footer-badge,
.revc-badge {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    opacity: .75;
    transition: opacity .2s;
}
.revc-footer-badge:hover,
.revc-badge:hover { opacity: 1; }
/* Imaginea badge-ului */
.revc-footer-badge-img,
.revc-badge img {
    height: 32px;
    max-width: 120px;
    object-fit: contain;
    display: block;
    /* invert pentru fonduri închise; dacă imaginea are fundal transparent → arată pe negru */
    filter: brightness(0) invert(1);
}
/* Text fallback (doar în admin preview) */
.revc-badge__label {
    font-size: .75rem;
    color: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    padding: 3px 8px;
    font-weight: 600;
    letter-spacing: .03em;
}

/* ─ Privacy Center ──────────────────────────────────────────────────────── */
.revc-privacy-center { padding: 0; }
.revc-privacy-center__section { margin-bottom: 28px; }
.revc-privacy-center__title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0a0a0b;
}
.rv-theme-dark .revc-privacy-center__title { color: #f9fafb; }
.revc-privacy-center__module {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.rv-theme-dark .revc-privacy-center__module { border-bottom-color: rgba(255,255,255,.07); }
.revc-privacy-center__module-info { flex: 1; }
.revc-privacy-center__module-label {
    font-size: .9rem;
    font-weight: 500;
    display: block;
}
.revc-privacy-center__module-type {
    font-size: .78rem;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}
.revc-priv-tgl {
    width: 16px;
    height: 16px;
    accent-color: var(--rv-accent, #22d3ee);
    cursor: pointer;
}

/* ─ Account Tabs Responsive ─────────────────────────────────────────────── */
.revc-account-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    border-bottom: 1px solid rgba(0,0,0,.1);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rv-theme-dark .revc-account-tabs { border-bottom-color: rgba(255,255,255,.1); }
.revc-account-tabs::-webkit-scrollbar { display: none; }
.revc-account-tabs__tab {
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.revc-account-tabs__tab.is-active,
.revc-account-tabs__tab:hover {
    color: var(--rv-accent, #22d3ee);
    border-bottom-color: var(--rv-accent, #22d3ee);
}

/* ─ Report Form ─────────────────────────────────────────────────────────── */
.revc-report-form { max-width: 600px; }

@media (max-width: 600px) {
    .revc-legal-page { padding: 24px 0 48px; }
    .revc-legal-container { padding: 0 16px; }
    .revc-footer-trust-badges { gap: 12px; }
    .revc-footer-badge-img,
    .revc-badge img { height: 26px; }
    .revc-account-tabs__tab { padding: 7px 10px; font-size: .82rem; }
}
