/*
 * C&C PREVENT — Termeni și Condiții Page Styles
 * Loaded on: page-termeni-si-conditii.php, page-gdpr.php (shared legal styles)
 * ==========================================================================
 */

/* --- BODY OVERRIDE (Astra nuclear fix) --- */
body.ccp-legal-dark {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body) !important;
    overflow-x: hidden;
}

body.ccp-legal-dark .site,
body.ccp-legal-dark .site-content,
body.ccp-legal-dark .ast-container,
body.ccp-legal-dark #primary,
body.ccp-legal-dark #content,
body.ccp-legal-dark .ast-plain-container {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--text-primary) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    line-height: 1.7 !important;
}

body.ccp-legal-dark .ast-post-title,
body.ccp-legal-dark .ast-breadcrumbs-wrapper,
body.ccp-legal-dark .entry-header {
    display: none !important;
}

/* --- PAGE WRAPPER --- */
#ccp-termeni-page {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 10;
}

/* --- BACKGROUND --- */
.ccp-legal-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 107, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.ccp-legal-bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.ccp-legal-bg-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 107, 0, 0.06);
    top: -100px;
    right: -100px;
}

.ccp-legal-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.03);
    bottom: 10%;
    left: -100px;
}

/* --- HERO --- */
.ccp-legal-hero {
    position: relative;
    z-index: 1;
    padding: 160px 0 60px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, transparent, rgba(5, 10, 20, 0.6));
}

.ccp-legal-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.ccp-legal-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-gold);
}

.ccp-legal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.ccp-gold-text {
    color: var(--accent-gold);
}

.ccp-legal-meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 10px;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 0, 0.05);
    border-radius: 100px;
    border: 1px solid rgba(255, 107, 0, 0.15);
}

/* --- CONTENT SECTION --- */
.ccp-legal-content-section {
    position: relative;
    z-index: 1;
    padding: 60px 0 100px;
}

.ccp-legal-container {
    max-width: 860px !important;
}

/* Fix: prevent tall reveal element from staying hidden */
body.ccp-legal-dark .ccp-legal-content-section.ccp-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: aacFadeUpDoc 1s ease 0.4s both;
}

@keyframes aacFadeUpDoc {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- LEGAL DOCUMENT --- */
.ccp-legal-document {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-box);
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.ccp-legal-document p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.ccp-legal-document a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.ccp-legal-document a:hover {
    color: var(--accent-gold-light);
    border-bottom-color: var(--accent-gold);
}

.ccp-legal-document strong {
    color: var(--text-primary);
    font-weight: 600;
}

.ccp-legal-document em {
    color: var(--text-secondary);
    font-style: italic;
}

.ccp-legal-document h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-display);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccp-legal-document h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-gold-hover));
    border-radius: 4px;
    flex-shrink: 0;
}

.ccp-legal-document h2:first-of-type { margin-top: 0; }

.ccp-legal-document ul {
    margin: 0 0 24px;
    padding-left: 0;
    list-style: none;
}

.ccp-legal-document li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.ccp-legal-document li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* Info Box */
.ccp-legal-info-box {
    background: rgba(255, 107, 0, 0.04);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 16px;
    padding: 24px 30px;
    margin: 24px 0;
}

.ccp-legal-info-box p:last-child,
.ccp-legal-info-box ul:last-child {
    margin-bottom: 0;
}

.ccp-legal-info-box li { margin-bottom: 8px; }

/* --- REVEAL ANIMATIONS --- */
.ccp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.ccp-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .ccp-legal-document { padding: 40px 24px; }
    .ccp-legal-hero { padding: 140px 0 40px; }
    .ccp-legal-info-box { padding: 20px; }
    .ccp-legal-document h2 { font-size: 1.25rem; }
    .ccp-legal-document p,
    .ccp-legal-document li { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .ccp-legal-document {
        padding: 30px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
