/* Yasal sayfalar (/privacy, /terms, /data-deletion, /kvkk, /cookies, /refund-policy, /contact).
   Sayfalar: wwwroot/legal/{sayfa}.{tr|en}.html, adresleri LegalPagesController veriyor.
   Marka: "Sinyal" logosu (images/brand), murekkep #0B0B14, krem #F7F5F0, mercan #FF5A3C.
   Tema: isletim sistemi tercihi; sitede secilmis tema (site_theme) legal.js ile data-theme olur. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: light;
    --bg: #FBFAF7;
    --surface: #FFFFFF;
    --surface-2: #F3F1EB;
    --ink: #0B0B14;
    --text: #1F1F2B;
    --muted: #5C5A66;
    --line: #E6E2D8;
    --accent: #FF5A3C;
    --link: #A8321A;
    --summary-bg: #FFF1EC;
    --summary-line: #FFCDBF;
    --ok-bg: #E9F7EF;
    --ok-line: #9FD8B5;
    --ok-ink: #14532D;
    --warn-bg: #FFF7E6;
    --warn-line: #F2C77B;
    --warn-ink: #6B4A08;
    --focus: #0B57D0;
    --shadow: 0 1px 2px rgba(11, 11, 20, .04), 0 8px 24px rgba(11, 11, 20, .05);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0B0B14;
    --surface: #14141F;
    --surface-2: #1B1B28;
    --ink: #F7F5F0;
    --text: #E8E6E0;
    --muted: #A3A1AE;
    --line: #2A2A39;
    --accent: #FF5A3C;
    --link: #FF8A70;
    --summary-bg: #22171A;
    --summary-line: #5A2A20;
    --ok-bg: #0F2419;
    --ok-line: #24573B;
    --ok-ink: #B7F0CD;
    --warn-bg: #261D0B;
    --warn-line: #6B5216;
    --warn-ink: #F8DFA5;
    --focus: #8AB4F8;
    --shadow: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0B0B14;
        --surface: #14141F;
        --surface-2: #1B1B28;
        --ink: #F7F5F0;
        --text: #E8E6E0;
        --muted: #A3A1AE;
        --line: #2A2A39;
        --accent: #FF5A3C;
        --link: #FF8A70;
        --summary-bg: #22171A;
        --summary-line: #5A2A20;
        --ok-bg: #0F2419;
        --ok-line: #24573B;
        --ok-ink: #B7F0CD;
        --warn-bg: #261D0B;
        --warn-line: #6B5216;
        --warn-ink: #F8DFA5;
        --focus: #8AB4F8;
        --shadow: none;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.lg-skip {
    position: absolute; left: 16px; top: -48px; z-index: 10;
    background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.lg-skip:focus { top: 12px; }

/* ---- Ust bar ---- */
.lg-header {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.lg-header__in {
    max-width: 1120px; margin: 0 auto; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.lg-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink); text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.01em;
}
.lg-brand img { width: 34px; height: 34px; display: block; }
.lg-mark--on-dark { display: none !important; }
:root[data-theme="dark"] .lg-mark--on-light { display: none !important; }
:root[data-theme="dark"] .lg-mark--on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lg-mark--on-light { display: none !important; }
    :root:not([data-theme="light"]) .lg-mark--on-dark { display: block !important; }
}
.lg-header__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-lang {
    display: inline-flex; padding: 3px; gap: 2px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
}
.lg-lang a {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.3;
}
.lg-lang a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
:root[data-theme="dark"] .lg-lang a[aria-current="true"] { background: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-lang a[aria-current="true"] { background: var(--line); } }
.lg-app {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px; font-weight: 650; line-height: 1.3;
}
.lg-app:hover { opacity: .9; }

/* ---- Yerlesim ---- */
.lg-layout {
    max-width: 1120px; margin: 0 auto; padding: 32px 16px 56px;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
}
@media (min-width: 1024px) {
    .lg-layout { grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 48px; padding-top: 44px; }
    .lg-side { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow: auto; }
}

.lg-side { font-size: 14px; }
.lg-side h2 {
    margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.lg-side ul { list-style: none; margin: 0 0 24px; padding: 0; }
.lg-side li { margin: 0; }
.lg-side a {
    display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px;
    color: var(--text); text-decoration: none; line-height: 1.4;
}
.lg-side a:hover { background: var(--surface-2); }
.lg-side a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 1023.98px) {
    .lg-side { display: none; } /* ayni baglantilar altbilgide de var */
}

/* ---- Icerik ---- */
.lg-main { min-width: 0; }
.lg-eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lg-main h1 {
    margin: 0 0 8px; color: var(--ink);
    font-size: clamp(30px, 5vw, 42px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800;
}
.lg-meta { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.lg-lead { font-size: 18px; color: var(--text); margin: 0 0 24px; }

.lg-summary {
    background: var(--summary-bg); border: 1px solid var(--summary-line); border-left: 4px solid var(--accent);
    border-radius: 14px; padding: 18px 20px 8px; margin: 0 0 28px;
}
.lg-summary h2 { margin: 0 0 8px !important; font-size: 17px !important; border: 0 !important; padding: 0 !important; }
.lg-summary ul { margin: 0 0 10px; padding-left: 20px; }
.lg-summary li { margin: 0 0 6px; }

.lg-toc { margin: 0 0 32px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lg-toc h2 { margin: 0 0 8px !important; font-size: 13px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; border: 0 !important; padding: 0 !important; }
.lg-toc ol { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 28px; }
.lg-toc li { margin: 0 0 4px; break-inside: avoid; }
.lg-toc a { color: var(--text); text-decoration: none; }
.lg-toc a:hover { color: var(--link); text-decoration: underline; }

.lg-main section { margin: 0 0 8px; }
.lg-main h2 {
    margin: 36px 0 10px; padding-top: 4px; color: var(--ink);
    font-size: 22px; line-height: 1.3; letter-spacing: -.01em; font-weight: 750;
}
.lg-main h3 { margin: 24px 0 8px; color: var(--ink); font-size: 17px; line-height: 1.35; font-weight: 700; }
.lg-main p { margin: 0 0 14px; }
.lg-main ul, .lg-main ol { margin: 0 0 16px; padding-left: 22px; }
.lg-main li { margin: 0 0 8px; }
.lg-main li > ul { margin-top: 8px; }
.lg-main strong { color: var(--ink); font-weight: 650; }
.lg-main code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere;
}
.lg-main blockquote {
    margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--line); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text);
}
.lg-note {
    margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px;
}
.lg-steps { counter-reset: lgstep; list-style: none; padding-left: 0 !important; }
.lg-steps > li { counter-increment: lgstep; position: relative; padding-left: 40px; margin-bottom: 14px; }
.lg-steps > li::before {
    content: counter(lgstep); position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; line-height: 1;
}

.lg-table-wrap { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lg-main table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.lg-main th, .lg-main td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lg-main tr:last-child td { border-bottom: 0; }
.lg-main th { background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: 14px; }
.lg-main td:first-child { min-width: 150px; width: 36%; }
.lg-main table.lg-cols-4 td:first-child { width: 30%; }
@media (max-width: 640px) {
    .lg-main table.lg-stack thead { display: none; }
    .lg-main table.lg-stack, .lg-main table.lg-stack tbody, .lg-main table.lg-stack tr, .lg-main table.lg-stack td { display: block; width: 100%; }
    .lg-main table.lg-stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
    .lg-main table.lg-stack tr:last-child { border-bottom: 0; }
    .lg-main table.lg-stack td { border: 0; padding: 4px 14px; }
    .lg-main table.lg-stack td:first-child { font-weight: 650; color: var(--ink); }
    .lg-main table.lg-stack td:first-child, .lg-main table.lg-cols-4 td:first-child { width: 100%; min-width: 0; }
    /* 3+ sutunlu tablolarda baslik hucrenin onune yazilir (build: data-label) */
    .lg-main table.lg-stack td[data-label]:not(:first-child)::before {
        content: attr(data-label) ": "; font-weight: 650; color: var(--muted);
    }
}

.lg-contact-card {
    display: grid; gap: 4px; padding: 18px 20px; margin: 0 0 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lg-contact-card .lg-contact-mail { font-size: 22px; font-weight: 750; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.lg-contact-card .lg-contact-mail:hover { color: var(--link); text-decoration: underline; }

/* Veri silme durumu (/data-deletion?code=...) */
.lg-status { margin: 0 0 24px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.lg-status[data-state="ok"] { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.lg-status[data-state="unknown"], .lg-status[data-state="error"] { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.lg-status strong { color: inherit; }
.lg-status p { margin: 0 0 6px; }
.lg-status p:last-child { margin-bottom: 0; }
.lg-status code { background: transparent; border-color: currentColor; }

/* ---- Altbilgi ---- */
.lg-footer { border-top: 1px solid var(--line); background: var(--surface); }
.lg-footer__in { max-width: 1120px; margin: 0 auto; padding: 24px 16px 32px; font-size: 14px; color: var(--muted); }
.lg-footer ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lg-footer a { color: var(--text); text-decoration: none; }
.lg-footer a:hover { color: var(--link); text-decoration: underline; }
.lg-footer a[aria-current="page"] { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.lg-footer p { margin: 0; }

/* Tanitim sayfasindaki pencerede (iframe) acildiginda: yalniz metin */
.is-embedded .lg-header, .is-embedded .lg-footer, .is-embedded .lg-side { display: none; }
.is-embedded .lg-layout { display: block; max-width: 760px; padding: 20px 16px 32px; }

@media print {
    .lg-header__tools, .lg-side, .lg-toc, .lg-footer ul, .lg-skip { display: none !important; }
    body { background: #fff; color: #000; }
    .lg-layout { display: block; padding: 0; }
    a { color: #000; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
