/* =====================================================================
   Gizlilik Politikası + Kullanım Şartları (2026-10-12) — partials/legal_page.php
   Sitenin koyu tasarımı; yapışkan içindekiler; numaralı bölümler; RTL; yazdırma.
   ===================================================================== */
.lg-body {
    margin: 0;
    background: #0a0c10;
    color: #d9dce3;
    font-family: 'Inter', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}
[dir="rtl"] .lg-body, [dir="rtl"].lg-body, html[dir="rtl"] .lg-body { font-family: 'Segoe UI', Tahoma, 'Noto Naskh Arabic', system-ui, sans-serif; }
.lg-main { position: relative; }
.lg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* ---- üst bölüm */
.lg-hero {
    position: relative;
    padding: 70px 24px 56px;
    background:
        radial-gradient(60% 120% at 0% 0%, rgba(227, 6, 19, 0.22) 0%, rgba(227, 6, 19, 0) 60%),
        radial-gradient(50% 100% at 100% 100%, rgba(0, 170, 255, 0.07) 0%, rgba(0, 170, 255, 0) 60%),
        linear-gradient(180deg, #11141b 0%, #0a0c10 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lg-hero-inner { max-width: 1180px; margin: 0 auto; }
.lg-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(227, 6, 19, 0.14); border: 1px solid rgba(227, 6, 19, 0.35);
    color: #ff6b73; font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
}
.lg-hero h1 { margin: 18px 0 12px; color: #fff; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.lg-lead { margin: 0; max-width: 720px; color: #aab1be; font-size: 17px; line-height: 1.6; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.lg-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c9ced8; font-size: 13.5px;
}
.lg-chip i { color: #e30613; }
.lg-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
    background: #e30613; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.lg-btn:hover { background: #ff1f2c; transform: translateY(-1px); }
.lg-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.16); color: #e7e9ee; }
.lg-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.lg-prevail {
    margin: 22px 0 0; padding: 12px 16px; border-radius: 12px;
    background: rgba(0, 170, 255, 0.07); border: 1px solid rgba(0, 170, 255, 0.22);
    color: #b9d9ec; font-size: 14px; line-height: 1.5;
}
.lg-prevail i { color: #3fb5ff; margin-inline-end: 6px; }

/* ---- düzen */
.lg-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 70px; align-items: start; }

/* ---- içindekiler */
.lg-toc { position: sticky; top: 100px; }
.lg-toc details {
    background: #11141a; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; padding: 18px 14px;
}
.lg-toc summary {
    list-style: none; cursor: default; padding: 0 8px 12px; margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; }
.lg-toc a {
    display: flex; gap: 10px; align-items: baseline;
    padding: 8px 10px; border-radius: 9px;
    color: #9aa2b1; font-size: 13.5px; line-height: 1.4; text-decoration: none;
    border-inline-start: 2px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lg-toc a span { color: #5d6573; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-toc a:hover { background: rgba(255, 255, 255, 0.04); color: #e7e9ee; }
.lg-toc a.active { background: rgba(227, 6, 19, 0.1); color: #fff; border-inline-start-color: #e30613; }
.lg-toc a.active span { color: #ff6b73; }

/* ---- metin */
.lg-article { min-width: 0; }
.lg-sec {
    scroll-margin-top: 100px;
    padding: 26px 28px; margin-bottom: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
}
.lg-sec h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: #fff; font-size: 21px; line-height: 1.3; font-weight: 700; }
.lg-num {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 11px;
    background: rgba(227, 6, 19, 0.14); border: 1px solid rgba(227, 6, 19, 0.3);
    color: #ff6b73; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.lg-sec p { margin: 0 0 12px; color: #c3c8d2; font-size: 15.5px; line-height: 1.75; overflow-wrap: anywhere; }
.lg-sec p:last-child { margin-bottom: 0; }
.lg-sec ul { margin: 4px 0 14px; padding: 0; list-style: none; }
.lg-sec ul:last-child { margin-bottom: 0; }
.lg-sec li {
    position: relative; margin: 0 0 10px; padding-inline-start: 26px;
    color: #c3c8d2; font-size: 15.5px; line-height: 1.7; overflow-wrap: anywhere;
}
.lg-sec li::before {
    content: ''; position: absolute; inset-inline-start: 6px; top: .72em;
    width: 7px; height: 7px; border-radius: 50%; background: #e30613; box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}
#risk.lg-sec { border-color: rgba(245, 158, 11, 0.35); background: linear-gradient(180deg, rgba(245, 158, 11, 0.07), rgba(245, 158, 11, 0.02)); }
#risk .lg-num { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }
#risk li::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }

.lg-contact {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 26px; padding: 24px 28px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.16), rgba(227, 6, 19, 0.04));
    border: 1px solid rgba(227, 6, 19, 0.3);
}
.lg-contact h3 { margin: 0 0 4px; color: #fff; font-size: 18px; }
.lg-contact p { margin: 0; color: #c9ced8; font-size: 14.5px; }
.lg-company { margin: 18px 0 0; color: #6d7482; font-size: 12.5px; text-align: center; }
.lg-top { display: block; width: max-content; margin: 14px auto 0; color: #9aa2b1; font-size: 13px; text-decoration: none; }
.lg-top:hover { color: #fff; }

/* ---- duyarlı */
@media (max-width: 900px) {
    .lg-layout { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
    .lg-toc { position: static; }
    .lg-toc summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
    .lg-toc summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: #9aa2b1; transition: transform .2s ease; }
    .lg-toc details[open] summary { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .lg-toc details[open] summary::after { transform: rotate(180deg); }
}
@media (max-width: 600px) {
    .lg-hero { padding: 48px 16px 40px; }
    .lg-wrap { padding: 0 16px; }
    .lg-lead { font-size: 15.5px; }
    .lg-sec { padding: 20px 18px; }
    .lg-sec h2 { font-size: 18px; gap: 10px; }
    .lg-num { width: 32px; height: 32px; font-size: 13px; }
    .lg-sec p, .lg-sec li { font-size: 15px; }
    .lg-contact { padding: 20px 18px; }
}

/* ---- yazdırma: yalnız metin */
@media print {
    header, footer, .lg-toc, .lg-meta .lg-btn, .lg-top, .lg-contact .lg-btn { display: none !important; }
    .lg-body { background: #fff; color: #000; }
    .lg-hero { background: none; border: 0; padding: 0 0 12px; }
    .lg-hero h1, .lg-sec h2, .lg-contact h3 { color: #000; }
    .lg-lead, .lg-sec p, .lg-sec li, .lg-chip, .lg-prevail, .lg-contact p, .lg-company { color: #222; }
    .lg-layout { display: block; padding: 0; }
    .lg-sec, .lg-contact, .lg-prevail, .lg-chip { background: none !important; border: 1px solid #ccc; break-inside: avoid; }
    .lg-num { background: none; color: #000; border-color: #999; }
    .lg-eyebrow { background: none; color: #000; border-color: #999; }
}
