/* Yasal belge sayfalari */
.legal-page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 3px solid #000000;
    background: #ffffff;
    padding: 24px 0 20px;
}

.legal-page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #f8fafc;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
}

.legal-page-hero__wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.72);
}

.legal-page-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.legal-page-hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.legal-page-hero__inner {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 32px 0 20px;
    max-width: 760px;
    text-align: left;
    transform: translateY(14px);
}

.legal-page-hero__category {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
}

.legal-page-hero__title {
    margin: 0;
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.legal-page-section {
    background: #f3f4f6;
    padding-top: 32px;
}

.legal-page-container.container {
    max-width: 1420px;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1400px) {
    .legal-page-container.container {
        max-width: 1540px;
    }
}

.legal-page-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.legal-sidebar {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 110px;
}

.legal-sidebar-header {
    background: #000000;
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #2a2a2a;
}

.legal-sidebar-icon {
    width: 30px;
    height: 30px;
    border-radius: 0;
    border: 1px solid #3a3a3a;
    background: #161616;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #f5f5f5;
    flex-shrink: 0;
}

.legal-sidebar-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.legal-sidebar-nav {
    padding: 8px 0 4px;
}

.legal-sidebar-group + .legal-sidebar-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid #242424;
}

.legal-sidebar-group-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a7a7a;
    margin-bottom: 0;
    padding: 10px 14px 6px;
    background: #0d0d0d;
    border-bottom: 1px solid #1f1f1f;
}

.legal-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 0;
    border-left: 2px solid transparent;
    color: #c8c8c8;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border-bottom: 1px solid #1c1c1c;
}

.legal-sidebar-link:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-left-color: #4b4b4b;
}

.legal-sidebar-link.is-active {
    background: #1f1f1f;
    color: #ffffff;
    font-weight: 600;
    border-left-color: #ffffff;
}

.legal-sidebar-link-arrow {
    font-size: 10px;
    opacity: 0.85;
    color: #ffffff;
}

.legal-sidebar-footer {
    padding: 12px 14px 14px;
    font-size: 11px;
    line-height: 1.45;
    color: #8a8a8a;
    border-top: 1px solid #2a2a2a;
    background: #0a0a0a;
}

.legal-sidebar-footer a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.legal-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    padding: 10px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 12px;
}

.legal-content-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-content-meta-item i {
    color: #111827;
}

.legal-content-body {
    padding: 18px 22px 28px;
    width: 100%;
    box-sizing: border-box;
}

.legal-rich-text {
    color: #374151;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;
    letter-spacing: 0.01em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Editor / yapistirilan icerikteki dar wrapper'lari genislet */
.legal-rich-text :where(div, section, article) {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

.legal-rich-text :where(div, section, article)[style*="max-width"],
.legal-rich-text :where(div, section, article)[style*="width"] {
    max-width: 100% !important;
    width: 100% !important;
}

.legal-rich-text .container,
.legal-rich-text .row {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
}

.legal-rich-text [class*="col-"],
.legal-rich-text .privacy-content,
.legal-rich-text .help-center-header {
    max-width: 100% !important;
    flex: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.legal-rich-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.75em 0;
    border: 1px solid #e5e7eb;
}

.legal-rich-text video,
.legal-rich-text iframe {
    max-width: 100%;
    height: auto;
}

.legal-rich-text p,
.legal-rich-text h1,
.legal-rich-text h2,
.legal-rich-text h3,
.legal-rich-text h4,
.legal-rich-text ul,
.legal-rich-text ol,
.legal-rich-text blockquote {
    max-width: 100%;
}
.legal-rich-text h1,
.legal-rich-text h2,
.legal-rich-text h3,
.legal-rich-text h4 {
    color: #111827;
    margin-top: 1.25em;
    margin-bottom: 0.45em;
    font-weight: 700;
    line-height: 1.35;
}

.legal-rich-text h1 { font-size: 1.15em; }
.legal-rich-text h2 { font-size: 1.05em; }
.legal-rich-text h3 { font-size: 1em; }
.legal-rich-text h4 { font-size: 0.95em; }

.legal-rich-text p {
    margin-bottom: 0.75em;
}

.legal-rich-text ul,
.legal-rich-text ol {
    margin-bottom: 0.75em;
    padding-left: 1.25em;
}

.legal-rich-text li {
    margin-bottom: 0.2em;
}

.legal-rich-text table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin: 1.2em 0;
    table-layout: auto;
}

.legal-rich-text th,
.legal-rich-text td {
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    font-size: 12.5px;
    line-height: 1.45;
}

.legal-rich-text th {
    background: #f3f4f6;
    font-weight: 600;
}

.legal-rich-text a.legal-inline-link,
.legal-rich-text a[href] {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.legal-rich-text a.legal-inline-link:hover,
.legal-rich-text a[href]:hover {
    color: #1e40af;
}

@media (max-width: 991px) {
    .legal-page-hero {
        min-height: 260px;
        padding: 20px 0;
    }

    .legal-page-hero__inner {
        padding: 24px 0 16px;
        transform: translateY(10px);
    }

    .legal-page-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-content-body {
        padding: 22px 18px 28px;
    }
}
