.palet-kvkk-modal[hidden],
.palet-kvkk-banner[hidden] {
    display: none !important;
}

.palet-kvkk-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: paletKvkkSlideUp 0.35s ease-out;
}

@keyframes paletKvkkSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.palet-kvkk-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.palet-kvkk-banner__text {
    flex: 1;
    min-width: 260px;
}

.palet-kvkk-banner__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.palet-kvkk-banner__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.palet-kvkk-banner__desc a {
    color: #0066cc;
    text-decoration: underline;
}

.palet-kvkk-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Butonlar */
.palet-kvkk-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.palet-kvkk-btn:hover {
    background: #f5f5f5;
}

.palet-kvkk-btn:active {
    transform: scale(0.98);
}

.palet-kvkk-btn--primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.palet-kvkk-btn--primary:hover {
    background: #000000;
}

.palet-kvkk-btn--ghost {
    border-color: transparent;
    padding: 6px 12px;
    font-size: 12px;
}

/* Modal */
.palet-kvkk-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.palet-kvkk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: paletKvkkFadeIn 0.2s ease-out;
}

@keyframes paletKvkkFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.palet-kvkk-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: paletKvkkZoomIn 0.2s ease-out;
}

@keyframes paletKvkkZoomIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.palet-kvkk-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.palet-kvkk-modal__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.palet-kvkk-modal__subtitle {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.palet-kvkk-modal__body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.palet-kvkk-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.palet-kvkk-modal__legal {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

.palet-kvkk-modal__legal a {
    color: #0066cc;
    text-decoration: underline;
}

/* Doküman listesi */
.palet-kvkk-modal__docs {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 8px;
}

.palet-kvkk-modal__docs-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.palet-kvkk-modal__docs-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.palet-kvkk-modal__docs-list li {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.5;
}

.palet-kvkk-modal__docs-list a {
    color: #0066cc;
    text-decoration: none;
}

.palet-kvkk-modal__docs-list a:hover {
    text-decoration: underline;
}

/* Kategori kartları */
.palet-kvkk-category {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.palet-kvkk-category:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.palet-kvkk-category--locked {
    cursor: default;
    background: #fafafa;
}

.palet-kvkk-category__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.palet-kvkk-category__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.palet-kvkk-category__badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    background: #e8f4ea;
    color: #2d6a31;
    border-radius: 4px;
}

.palet-kvkk-category__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #666;
}

/* Anahtar (switch) */
.palet-kvkk-switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.palet-kvkk-switch input {
    position: absolute;
    opacity: 0;
    width: 40px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.palet-kvkk-switch__track {
    display: block;
    width: 40px;
    height: 22px;
    background: #cfcfcf;
    border-radius: 22px;
    position: relative;
    transition: background 0.2s ease;
}

.palet-kvkk-switch__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.palet-kvkk-switch input:checked + .palet-kvkk-switch__track {
    background: #1a1a1a;
}

.palet-kvkk-switch input:checked + .palet-kvkk-switch__track::after {
    transform: translateX(18px);
}

.palet-kvkk-switch input:focus-visible + .palet-kvkk-switch__track {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

/* Scroll kilidi */
body.palet-kvkk-lock {
    overflow: hidden;
}

/* Mobil uyum */
@media (max-width: 640px) {
    .palet-kvkk-banner__inner {
        padding: 16px;
        gap: 14px;
    }
    .palet-kvkk-banner__actions {
        width: 100%;
    }
    .palet-kvkk-banner__actions .palet-kvkk-btn {
        flex: 1;
        text-align: center;
    }
    .palet-kvkk-modal__dialog {
        max-height: calc(100vh - 20px);
    }
    .palet-kvkk-modal__header,
    .palet-kvkk-modal__body,
    .palet-kvkk-modal__footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}