/* ============================================================
   LEGAL & POLICY PAGES - UNIFIED & OPTIMIZED DESIGN
   ============================================================ */

/* --- 1. HERO SECTION --- */
.cp-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Note: Icon, badge and colors use the primary theme (Indigo) which applies to all shared elements */
.cp-hero::before {
    content: '🍪'; 
    position: absolute;
    font-size: 350px;
    opacity: 0.03;
    top: -60px;
    right: -40px;
    line-height: 1;
}

.cp-hero .hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.cp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 15px;
    font-family: 'Playfair Display', serif;
    color: white;
}

.cp-hero p {
    color: #94a3b8;
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

.cp-hero .btn {
    display: inline-block;
    background: #6366f1;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.cp-hero .btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.2);
}

.cp-hero .last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    color: #cbcbcb;
}

/* --- 2. QUICK NAVIGATION --- */
.cp-quicknav {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cp-quicknav-inner {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.cp-quicknav-inner::-webkit-scrollbar { display: none; }

.cp-quicknav a {
    display: inline-block;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.cp-quicknav a:hover {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

/* --- 3. MAIN LAYOUT --- */
.cp-body {
    max-width: 1450px;
    margin: 0 auto;
    padding: 50px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

@media (max-width: 900px) {
    .cp-body { grid-template-columns: 1fr; }
    .cp-sidebar { order: -1; }
}

/* --- 4. CONTENT SECTIONS --- */
.cp-content section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

.cp-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-content h2 .sec-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    color: white;
}

.cp-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.cp-content p, .cp-content ul {
    color: #475569;
    line-height: 1.8;
}

.cp-content p { margin: 0 0 14px; }
.cp-content ul { padding-left: 24px; margin-bottom: 20px; }
.cp-content li { margin-bottom: 8px; }

/* --- 5. NOTE BOXES --- */
.cp-note {
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cp-note.info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.cp-note.warning { background: #fffbeb; border-left: 4px solid #f59e0b; }
.cp-note.danger { background: #fef2f2; border-left: 4px solid #ef4444; }
.cp-note.success { background: #f0fdf4; border-left: 4px solid #10b981; }
.cp-note.primary { background: #f5f3ff; border-left: 4px solid #8b5cf6; }

.cp-note .note-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.cp-note p { margin: 0; font-size: 14px; color: #334155; line-height: 1.7; }
.cp-note p strong, .cp-note p b { color: #0f172a; }

/* --- 6. SHARED GRID CARDS (Rules, Cookies, Data) --- */
.rule-grid, .cookie-grid, .data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

@media (max-width: 600px) { 
    .rule-grid, .cookie-grid, .data-grid { grid-template-columns: 1fr; } 
}

.rule-card, .cookie-card, .data-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.rule-card:hover, .cookie-card:hover, .data-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.rule-card h3, .cookie-card h3, .data-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-card p, .cookie-card p, .data-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}
.cookie-card p { margin-bottom: 12px; }

/* Rule Card Variations */
.rule-card.digital { border-top: 3px solid #0ea5e9; }
.rule-card.physical { border-top: 3px solid #f59e0b; }
.rule-card.platform { border-top: 3px solid #6366f1; }
.rule-card.art { border-top: 3px solid #f59e0b; }
.rule-card.full-refund { border-top: 3px solid #10b981; }
.rule-card.partial-refund { border-top: 3px solid #f59e0b; }
.rule-card.no-refund { border-top: 3px solid #ef4444; }
.rule-card.wallet { border-top: 3px solid #0d9488; }
.rule-card.forbidden { border-left: 4px solid #ef4444; }
.rule-card.allowed { border-left: 4px solid #10b981; }

/* Data Card Variations */
.data-card.private { border-top: 3px solid #ef4444; }
.data-card.public { border-top: 3px solid #10b981; }

/* Cookie Card Variations */
.cookie-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.cookie-card.allowed::before  { background: #10b981; }
.cookie-card.forbidden::before  { background: #ef4444; }
.cookie-card.info-card::before { background: #6366f1; }
.cookie-card.essential::before  { background: #ef4444; }
.cookie-card.analytics::before  { background: #f59e0b; }
.cookie-card.functional::before { background: #10b981; }
.cookie-card.performance::before{ background: #3b82f6; }
.cookie-card.tracking::before   { background: #8b5cf6; }
.cookie-card.security::before   { background: #06b6d4; }

.cookie-card .card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cookie-card .card-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

.cookie-card.allowed .card-icon  { background: #f0fdf4; color: #10b981; }
.cookie-card.forbidden .card-icon  { background: #fef2f2; color: #ef4444; }
.cookie-card.info-card .card-icon { background: #eff6ff; color: #3b82f6; }
.cookie-card.essential .card-icon  { background: #fef2f2; }
.cookie-card.analytics .card-icon  { background: #fffbeb; }
.cookie-card.functional .card-icon { background: #f0fdf4; }
.cookie-card.performance .card-icon{ background: #eff6ff; }
.cookie-card.tracking .card-icon   { background: #f5f3ff; }
.cookie-card.security .card-icon   { background: #ecfeff; }

.cookie-card .required-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 50px; background: #fef2f2; color: #ef4444; }
.cookie-card .optional-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 50px; background: #f0fdf4; color: #10b981; }

/* --- 7. SIDEBAR --- */
.cp-sidebar { position: sticky; top: 80px; }

.sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card ul li { margin-bottom: 8px; }
.sidebar-card ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.sidebar-card ul li a:hover { color: #6366f1; }
.sidebar-card ul li a i { font-size: 11px; color: #cbd5e1; }

.protection-status, .your-consent-status {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.protection-status h3, .your-consent-status h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.protection-badge {
    display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 12px; background: #10b981; color: white;
}
.protection-status p { font-size: 12px; color: rgba(255,255,255,0.8); margin: 0; line-height: 1.5; }

/* --- 8. CONTACT SECTION --- */
.contact-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: #fff;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-card h2 { color: #fff !important; border-bottom-color: rgba(255,255,255,0.1) !important; justify-content: center; font-size: 24px; font-weight: 700; margin: 0 0 10px; }
.contact-card p { color: #94a3b8; font-size: 15px; max-width: 500px; margin: 0 0 24px; line-height: 1.6; }

.contact-methods { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 20px; }
.contact-method {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: #e2e8f0; padding: 10px 20px; border-radius: 10px; text-decoration: none;
    font-size: 14px; font-weight: 500; transition: 0.2s;
}
.contact-method:hover { background: rgba(99, 102, 241, 0.3); color: #fff; }

/* ============================================================
   UNIQUE SPECIFIC PAGE STYLES (DO NOT REMOVE)
   ============================================================ */

/* LEGAL PORTAL INDEX SPECIFICS */
.portal-container {
    max-width: 1450px;
    margin: -40px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.policy-card { background: #fff; border-radius: 16px; padding: 30px; text-align: left; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); border: 1px solid #e2e8f0; transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.policy-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #e2e8f0; transition: 0.3s; }
.policy-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08); }
.policy-card:hover::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.policy-card .icon-wrapper { width: 50px; height: 50px; background: #f1f5f9; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: 0.3s; }
.policy-card:hover .icon-wrapper { background: #e0e7ff; }
.policy-card i { font-size: 22px; color: #475569; transition: 0.3s; }
.policy-card:hover i { color: #6366f1; }
.policy-card h3 { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 10px; }
.policy-card p { font-size: 14px; color: #64748b; line-height: 1.6; margin: 0 0 24px; flex-grow: 1; }
.policy-card .card-link { display: inline-flex; align-items: center; gap: 8px; color: #6366f1; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.2s; }
.policy-card .card-link:hover { color: #4f46e5; gap: 12px; }

.portal-contact { max-width: 1450px; margin: 0 auto 80px; padding: 0 20px; }

@media (max-width: 768px) {
    .cp-hero { padding: 80px 20px 60px; }
    .portal-container { margin-top: -20px; }
    .contact-card { padding: 30px 20px; }
}

/* COOKIE POLICY SPECIFICS */
.cookie-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e2e8f0; margin: 20px 0; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cookie-table thead { background: #0f172a; color: #fff; }
.cookie-table thead th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.cookie-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
.cookie-table tbody tr:last-child { border-bottom: none; }
.cookie-table tbody tr:hover { background: #f8fafc; }
.cookie-table td { padding: 12px 16px; color: #475569; vertical-align: top; }
.cookie-table td:first-child { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #6366f1; font-weight: 600; white-space: nowrap; }
.cookie-table .type-pill { display: inline-block; padding: 2px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }

.type-essential   { background: #fef2f2; color: #ef4444; }
.type-analytics   { background: #fffbeb; color: #d97706; }
.type-functional  { background: #f0fdf4; color: #059669; }
.type-security    { background: #ecfeff; color: #0891b2; }
.type-tracking    { background: #f5f3ff; color: #7c3aed; }
.type-consent     { background: #fff7ed; color: #ea580c; }

.tracker-disclosure { background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 28px; margin: 20px 0; }
.tracker-disclosure h4 { color: #f8fafc; font-size: 14px; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.tracker-disclosure .event-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) { .tracker-disclosure .event-list { grid-template-columns: 1fr; } }
.tracker-disclosure .event-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #94a3b8; }
.tracker-disclosure .event-item span { font-size: 16px; }

.third-party-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }
.tp-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center; transition: all 0.2s; }
.tp-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.tp-card .tp-icon { font-size: 28px; margin-bottom: 8px; }
.tp-card h4 { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.tp-card p { font-size: 12px; color: #64748b; margin: 0 0 8px; line-height: 1.5; }
.tp-card a { font-size: 11px; color: #6366f1; text-decoration: none; font-weight: 600; }
.tp-card a:hover { text-decoration: underline; }

.control-steps { counter-reset: step; margin: 20px 0; }
.control-step { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.control-step .step-num { counter-increment: step; width: 36px; height: 36px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.control-step .step-content h4 { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0 0 5px; }
.control-step .step-content p { font-size: 14px; color: #64748b; margin: 0; }

.browser-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.browser-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-weight: 600; color: #475569; text-decoration: none; transition: all 0.2s; }
.browser-link:hover { background: #6366f1; color: #fff; border-color: #6366f1; }

.consent-demo { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; margin: 20px 0; }
.consent-demo h4 { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 14px; }
.consent-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.consent-toggle-row:last-of-type { border-bottom: none; }
.consent-toggle-row .toggle-info h5 { font-size: 14px; font-weight: 600; color: #0f172a; margin: 0 0 2px; }
.consent-toggle-row .toggle-info p { font-size: 12px; color: #64748b; margin: 0; }

.toggle-switch { width: 44px; height: 24px; border-radius: 12px; position: relative; cursor: pointer; flex-shrink: 0; transition: 0.3s; }
.toggle-switch.on  { background: #6366f1; }
.toggle-switch.off { background: #cbd5e1; }
.toggle-switch::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; transition: 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle-switch.on::after  { left: calc(100% - 21px); }
.toggle-switch.off::after { left: 3px; }

.gdpr-rights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.gdpr-right-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; transition: all 0.2s; }
.gdpr-right-card:hover { border-color: #6366f1; box-shadow: 0 4px 16px rgba(99,102,241,0.08); }
.gdpr-right-card .right-icon { font-size: 22px; margin-bottom: 8px; display: block; }
.gdpr-right-card h5 { font-size: 13px; font-weight: 700; color: #0f172a; margin: 0 0 5px; }
.gdpr-right-card p { font-size: 12px; color: #64748b; margin: 0; line-height: 1.5; }

.consent-status-badge { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.status-accepted { background: #10b981; }
.status-rejected { background: #ef4444; }
.status-pending  { background: rgba(255,255,255,0.2); }
.your-consent-status p { font-size: 12px; color: rgba(255,255,255,0.7); margin: 0 0 14px; }

.btn-manage-consent { display: block; background: rgba(255,255,255,0.15); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; text-align: center; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transition: 0.2s; }
.btn-manage-consent:hover { background: rgba(255,255,255,0.25); }

.retention-timeline { margin: 20px 0; }
.retention-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.retention-item:last-child { border-bottom: none; }
.retention-duration { min-width: 90px; background: #0f172a; color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-align: center; font-family: 'JetBrains Mono', monospace; }
.retention-desc { flex: 1; }
.retention-desc h5 { font-size: 14px; font-weight: 600; color: #0f172a; margin: 0 0 2px; }
.retention-desc p { font-size: 13px; color: #64748b; margin: 0; }