/* ─────────────────────────────────────────────
   Yasal Sayfalar — legal.css
   CarBook / Uyario — cb- prefix convention
   ───────────────────────────────────────────── */

/* ── BREADCRUMB ── */
.cb-legal-breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-muted, #64748b);
    border-bottom: 1px solid var(--border, #e2e8f0);
    margin-bottom: 0;
}

.cb-legal-breadcrumb a {
    color: #6366f1;
    text-decoration: none;
    transition: color .15s;
}

.cb-legal-breadcrumb a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.cb-legal-breadcrumb .cb-bc-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

/* ── HERO BANNER ── */
.cb-legal-hero {
    padding: 36px 0 28px;
}

.cb-legal-hero-inner {
    max-width: 800px;
}

.cb-legal-hero h1 {
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 800;
    color: #fff;
    margin: 12px 0 10px;
    line-height: 1.2;
}

.cb-legal-hero .cb-legal-updated {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin: 0;
}

/* ── MAIN CONTENT WRAPPER ── */
.cb-legal-body {
    padding: 48px 0 72px;
}

.cb-legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(99,102,241,.06);
    padding: 40px 48px;
}

/* ── TYPOGRAPHY ── */
.cb-legal-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2ff;
}

.cb-legal-content h2:first-child {
    margin-top: 0;
}

.cb-legal-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin: 24px 0 8px;
}

.cb-legal-content p {
    font-size: 15px;
    line-height: 1.85;
    color: #374151;
    margin-bottom: 14px;
}

.cb-legal-content ul,
.cb-legal-content ol {
    font-size: 15px;
    line-height: 1.85;
    color: #374151;
    padding-left: 24px;
    margin-bottom: 14px;
}

.cb-legal-content li {
    margin-bottom: 6px;
}

.cb-legal-content strong {
    font-weight: 600;
    color: #1e293b;
}

.cb-legal-content a {
    color: #6366f1;
    text-decoration: none;
}

.cb-legal-content a:hover {
    text-decoration: underline;
}

/* ── INFO BOX ── */
.cb-legal-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #6366f1;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}

.cb-legal-info-box strong {
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
}

/* ── TABLE (for cookie policy) ── */
.cb-legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0 24px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.cb-legal-table th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cb-legal-table td {
    padding: 10px 14px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.cb-legal-table tr:last-child td {
    border-bottom: none;
}

.cb-legal-table tr:nth-child(even) td {
    background: #fafbff;
}

/* ── SECTION NUMBER BADGE ── */
.cb-legal-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #eef2ff;
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── PLACEHOLDER HIGHLIGHT ── */
.cb-placeholder {
    background: #fef9c3;
    border: 1px dashed #ca8a04;
    border-radius: 4px;
    padding: 0 4px;
    color: #92400e;
    font-style: italic;
    font-size: 0.9em;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .cb-legal-content {
        padding: 24px 20px;
        border-radius: 8px;
    }

    .cb-legal-content h2 {
        font-size: 16px;
    }

    .cb-legal-table {
        font-size: 12px;
    }

    .cb-legal-table th,
    .cb-legal-table td {
        padding: 8px 10px;
    }
}

/* ── PRINT ── */
@media print {
    .cb-topbar,
    .cb-footer,
    .cb-legal-breadcrumb,
    #ftco-loader,
    .cb-cookie-banner {
        display: none !important;
    }

    .cb-legal-hero {
        background: none !important;
        padding: 0;
    }

    .cb-legal-hero h1 {
        color: #000 !important;
        font-size: 22px;
    }

    .cb-legal-hero .cb-legal-updated {
        color: #555 !important;
    }

    .cb-legal-content {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }

    .cb-legal-body {
        padding: 12px 0;
    }

    body {
        font-size: 12px;
    }
}

/* ─── COOKIE CONSENT BANNER ─── */
.cb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.18);
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.cb-cookie-banner.cb-show {
    display: block;
}

.cb-cookie-banner .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cb-cookie-banner p {
    flex: 1;
    margin: 0;
    min-width: 200px;
}

.cb-cookie-banner a {
    color: #a5b4fc;
    text-decoration: underline;
}

.cb-cookie-banner a:hover {
    color: #c7d2fe;
}

.cb-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cb-cookie-btn-accept {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    min-height: 44px;
}

.cb-cookie-btn-accept:hover {
    background: #4f46e5;
}

.cb-cookie-btn-settings {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    min-height: 44px;
}

.cb-cookie-btn-settings:hover {
    color: #e2e8f0;
    border-color: #94a3b8;
}

@media (max-width: 575px) {
    .cb-cookie-banner .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cb-cookie-actions {
        width: 100%;
    }

    .cb-cookie-btn-accept,
    .cb-cookie-btn-settings {
        flex: 1;
    }
}
