/* Stylely — yasal ve destek sayfaları (stylely.app/tr/*, /en/*, 404).
   CSP: yalnızca 'self' — satır içi stil/script yok. Font: /assets/fonts/outfit.css (Outfit, SIL OFL). */

:root {
  color-scheme: light dark;
  /* Açık tema (yasal sayfaların varsayılanı) */
  --bg: #efeff1;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --text: #0e1e24;
  --muted: #47606b;
  --accent: #0a6a96;
  --accent-strong: #0f8cc4;
  --accent-soft: #e3f1f8;
  --line: #d9dee3;
  --focus: #0a6a96;
  --on-accent: #ffffff;
  --todo-bg: #ffe58a;
  --todo-text: #4d3800;
  --todo-line: #b98900;
  --header-bg: rgba(239, 239, 241, 0.88);
  --shadow: 0 1px 2px rgba(14, 30, 36, 0.06), 0 8px 24px rgba(14, 30, 36, 0.06);
  --radius: 16px;
  --font: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Marka laciverti */
    --bg: #101822;
    --surface: #151f2c;
    --surface-2: #1a2635;
    --text: #eaf5fa;
    --muted: #a8c1cb;
    --accent: #64c8ff;
    --accent-strong: #0f8cc4;
    --accent-soft: #14304a;
    --line: #2f3846;
    --focus: #64c8ff;
    --on-accent: #101822;
    --todo-bg: #4a3b00;
    --todo-text: #ffe28a;
    --todo-line: #c9a227;
    --header-bg: rgba(16, 24, 34, 0.86);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Üst başlık ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1128px; margin: 0 auto; /* landing ile aynı: 1080 içerik + 2×24 kenar */
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 21px; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-logo {
  display: block; width: 36px; height: 36px; border-radius: 10px;
}
.brand-name { line-height: 1; }

.lang-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
}
.lang-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- İçerik ---------- */
.wrap {
  max-width: 752px; /* 720 okuma genişliği + 2×16 kenar */
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.eyebrow {
  margin: 36px 0 0;
  color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
h1 {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
  margin: 8px 0 8px;
}
.meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }

h2 {
  font-size: 23px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650;
  margin: 44px 0 10px; padding-top: 4px;
}
h3 { font-size: 18px; font-weight: 650; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 24px; margin: 0 0 14px; }
li { margin: 6px 0; }
li::marker { color: var(--muted); }
strong { font-weight: 650; }
em { font-style: normal; font-weight: 550; color: var(--text); }

/* Özet kutusu */
.summary {
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-left: 4px solid var(--accent-strong);
  border-radius: var(--radius);
  padding: 18px 20px 8px;
  margin: 8px 0 20px;
}
.summary > p:first-child { margin-bottom: 6px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.summary ul { margin-bottom: 10px; }

/* İçindekiler */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 10px;
  margin: 20px 0 8px;
}
.toc > strong { display: block; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 8px 0 8px; padding-left: 26px; }
.toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 640px) {
  .toc ol { column-count: 2; column-gap: 32px; }
}

/* Tablolar */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 650; font-size: 14px; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
td + td, th + th { border-left: 1px solid var(--line); }

/* Telefonda tablolar kart gibi alt alta dizilir (yatay kaydırma yok) */
@media (max-width: 600px) {
  .table-scroll { overflow: visible; background: none; border: 0; border-radius: 0; }
  table, tbody, tr, td { display: block; width: 100%; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  tr {
    background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 16px; margin: 0 0 10px;
  }
  td, td + td { border: 0; padding: 4px 0; }
  td:first-child { font-size: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  td + td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  }
}

/* Doldurulacak yer tutucular — yayından önce mutlaka görünsün */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  box-shadow: inset 0 -2px 0 var(--todo-line);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 650;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Destek sayfası ---------- */
.contact-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 8px 0 12px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.contact-card h2 { font-size: 19px; margin: 0 0 6px; padding: 0; }
.contact-card p { margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card .big { font-size: 19px; font-weight: 650; color: var(--text); }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
}

.faq { margin: 10px 0 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 10px;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; min-height: 52px;
  font-weight: 600; font-size: 17px; line-height: 1.4;
  border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 20px; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 18px 6px; }
.faq .answer p, .faq .answer li { color: var(--text); }

.note {
  color: var(--muted); font-size: 15px;
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 48px 0 16px; }
.notfound .code {
  font-size: clamp(72px, 22vw, 128px); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; margin: 0;
  color: var(--accent);
}
.notfound h1 { margin-top: 12px; }
.nf-langs { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 8px 0 0; }
@media (min-width: 640px) { .nf-langs { grid-template-columns: 1fr 1fr; } }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.button:hover { color: var(--on-accent); text-decoration: underline; }
.link-list { list-style: none; padding: 0; margin: 10px 0 0; }
.link-list li { margin: 6px 0; }

/* ---------- Alt bilgi ---------- */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer .inner {
  max-width: 1128px; margin: 0 auto; padding: 24px 16px 32px;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px;
  color: var(--muted); font-size: 15px;
}
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav li { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-footer .contact a { color: var(--accent); }
.site-footer p { margin: 0; }
.site-footer .copy { width: 100%; font-size: 14px; }

@media (min-width: 640px) {
  .site-header .bar { padding-left: 24px; padding-right: 24px; }
  .site-footer .inner { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  h2 { font-size: 21px; margin-top: 36px; }
  .brand { font-size: 19px; }
  .brand-logo { width: 32px; height: 32px; border-radius: 9px; }
  .summary, .toc, .contact-card { padding-left: 16px; padding-right: 16px; }
}

@media print {
  .site-header { position: static; }
  .site-header, .site-footer, .toc, .skip-link { background: none; box-shadow: none; }
  .lang-pill, .skip-link { display: none; }
  a { color: inherit; }
}
