@charset "UTF-8";

:root {
    --tb-bg: #eef4ff;
    --tb-surface: #ffffff;
    --tb-border: rgba(51, 88, 160, 0.12);
    --tb-primary: #3366cc;
    --tb-primary-dark: #254a99;
    --tb-accent: #ffb347;
    --tb-text: #1a2744;
    --tb-muted: #5c6b85;
    --tb-radius: 18px;
    --tb-font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tb-shadow: 0 12px 40px rgba(38, 64, 120, 0.08);
}

* {
    box-sizing: border-box;
}

html.talkbuddy-policy-page,
body.talkbuddy-policy-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--tb-font);
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 40%, #fff7ef 100%);
    color: var(--tb-text);
    line-height: 1.65;
}

.tb-policy-header {
    background: linear-gradient(135deg, #4d7fe0 0%, #3366cc 55%, #5a8fff 100%);
    color: #fff;
    padding: 28px 20px 32px;
    box-shadow: 0 8px 24px rgba(51, 102, 204, 0.25);
}

.tb-policy-header-inner {
    max-width: 860px;
    margin: 0 auto;
}

.tb-policy-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tb-lang-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tb-lang-select-wrap {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin: 0;
    flex-shrink: 0;
}

.tb-policy-header-row .tb-lang-select-wrap .tb-lang-select {
    height: 2.375rem;
    line-height: 1.25;
    vertical-align: middle;
}

.tb-lang-select-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tb-lang-select {
    min-width: 11rem;
    max-width: 14rem;
    padding: 8px 32px 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: var(--tb-primary-dark);
    font-family: var(--tb-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23254a99' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

html[dir="rtl"] .tb-policy-lang-block,
.tb-policy-lang-block[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .tb-policy-trust-list,
html[dir="rtl"] .tb-policy-deletion-steps,
html[dir="rtl"] .tb-policy-card ul,
html[dir="rtl"] .tb-policy-card ol {
    padding-right: 1.35rem;
    padding-left: 0;
}

html[dir="rtl"] .tb-policy-tagline {
    margin-right: 60px;
    margin-left: 0;
}

html[dir="rtl"] .tb-policy-table th,
html[dir="rtl"] .tb-policy-table td {
    text-align: right;
}

.tb-lang-btn {
    min-width: 52px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--tb-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tb-lang-btn:hover {
    color: #fff;
}

.tb-lang-btn.is-active {
    background: #fff;
    color: var(--tb-primary-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.tb-policy-lang-block {
    display: none;
}

.tb-policy-lang-block.is-visible {
    display: block;
}

.tb-policy-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.tb-policy-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(36, 72, 140, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: #fff;
}

.tb-policy-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tb-policy-brand-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tb-policy-tagline {
    margin: 10px 0 0 60px;
    font-size: 16px;
    opacity: 0.92;
}

.tb-policy-main {
    max-width: 860px;
    margin: -18px auto 48px;
    padding: 0 20px;
}

.tb-policy-trust-panel {
    background: linear-gradient(135deg, #fffaf5 0%, #fff 45%, #f0f6ff 100%);
    border: 2px solid rgba(255, 160, 80, 0.35);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    padding: 26px 28px;
    margin-bottom: 20px;
}

.tb-policy-trust-panel h2 {
    margin: 0 0 12px;
    font-size: 26px;
    color: var(--tb-primary-dark);
}

.tb-policy-trust-panel > p {
    margin: 0 0 16px;
    font-size: 17px;
}

.tb-policy-trust-list {
    margin: 0 0 18px;
    padding-left: 1.25rem;
}

.tb-policy-trust-list li {
    font-size: 16px;
    margin-bottom: 12px;
}

.tb-policy-trust-list strong {
    color: var(--tb-primary-dark);
}

.tb-policy-trust-footer {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--tb-border);
    font-size: 15px;
    color: var(--tb-muted);
}

.tb-policy-deletion-panel {
    background: linear-gradient(135deg, #fff 0%, #f0f6ff 100%);
    border: 2px solid rgba(51, 102, 204, 0.22);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    padding: 24px 26px;
    margin-bottom: 20px;
}

.tb-policy-deletion-panel h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: var(--tb-primary-dark);
}

.tb-policy-deletion-panel p {
    margin: 0 0 14px;
    font-size: 16px;
}

.tb-policy-deletion-steps {
    margin: 0 0 16px;
    padding-left: 1.25rem;
}

.tb-policy-deletion-steps li {
    font-size: 16px;
    margin-bottom: 8px;
}

.tb-policy-deletion-steps strong {
    color: var(--tb-primary-dark);
}

.tb-policy-deletion-contact {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--tb-border);
    font-size: 15px;
    color: var(--tb-muted);
}

.tb-policy-card {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow);
    padding: 32px 28px;
}

.tb-policy-card + .tb-policy-card {
    margin-top: 20px;
}

.tb-policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tb-border);
    font-size: 14px;
    color: var(--tb-muted);
}

.tb-policy-meta strong {
    color: var(--tb-text);
}

.tb-policy-intro {
    font-size: 18px;
    margin: 0 0 24px;
}

.tb-policy-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
    color: var(--tb-primary-dark);
}

.tb-policy-card h2 {
    margin: 28px 0 12px;
    font-size: 22px;
    color: var(--tb-primary-dark);
}

.tb-policy-card h2:first-of-type {
    margin-top: 0;
}

.tb-policy-card h3 {
    margin: 20px 0 8px;
    font-size: 18px;
    color: var(--tb-text);
}

.tb-policy-card p,
.tb-policy-card li {
    font-size: 16px;
}

.tb-policy-card a {
    color: var(--tb-primary);
    word-break: break-word;
}

.tb-policy-card ul,
.tb-policy-card ol {
    margin: 0 0 16px;
    padding-left: 1.35rem;
}

.tb-policy-card li + li {
    margin-top: 6px;
}

.tb-policy-note {
    margin: 20px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff8eb;
    border: 1px solid rgba(255, 179, 71, 0.35);
    font-size: 15px;
}

.tb-policy-table-wrap {
    overflow-x: auto;
    margin: 12px 0 18px;
}

.tb-policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.tb-policy-table th,
.tb-policy-table td {
    border: 1px solid var(--tb-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.tb-policy-table th {
    background: #f3f7ff;
    font-weight: 700;
}

.tb-policy-footer {
    max-width: 860px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
    font-size: 14px;
    color: var(--tb-muted);
}

.tb-policy-footer a {
    color: var(--tb-primary);
}

@media (max-width: 640px) {
    /* 2 satır: üstte marka + dil, altta ortalanmış tagline */
    .tb-policy-header {
        padding: 16px 16px 22px;
    }

    .tb-policy-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand lang"
            "tagline tagline";
        align-items: center;
        gap: 0.45rem 0.5rem;
    }

    .tb-policy-header-row {
        display: contents;
    }

    .tb-policy-brand {
        grid-area: brand;
        min-width: 0;
    }

    .tb-policy-brand-mark {
        width: 40px;
        height: 40px;
    }

    .tb-policy-brand-text {
        font-size: 1.35rem;
    }

    .tb-policy-header-inner .tb-lang-select-wrap {
        grid-area: lang;
        justify-self: end;
        align-self: center;
    }

    .tb-policy-header-inner .tb-lang-select {
        min-width: 7.25rem;
        max-width: 9rem;
        height: 2rem;
        font-size: 0.75rem;
        padding: 0 1.75rem 0 0.65rem;
    }

    .tb-policy-tagline {
        grid-area: tagline;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    html[dir="rtl"] .tb-policy-header-inner {
        grid-template-areas:
            "lang brand"
            "tagline tagline";
    }

    html[dir="rtl"] .tb-policy-tagline {
        margin-right: 0;
    }

    .tb-policy-card {
        padding: 24px 18px;
    }

    .tb-policy-card h1 {
        font-size: 26px;
    }
}
