/* eSantral bilgilendirme ve yasal sayfaları: tanıtım sayfasıyla aynı tasarım dili (renk, yazı, üst menü, alt bilgi). */
:root {
  --bg: #f5f9ff; --white: #ffffff; --ink: #0b1b3a; --body: #334155; --muted: #64748b; --line: #e2e8f0;
  --blue: #2563eb; --blue2: #3b82f6; --sky: #dbeafe; --sky2: #eff6ff; --ok: #10b981;
  --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(30,64,175,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; scroll-padding-top: 96px }
body { background: var(--bg); color: var(--body); font: 16px/1.65 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden }
a { color: inherit }
img { max-width: 100%; height: auto; display: block }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.025em }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--sky2); color: var(--blue); font: 600 12.5px Inter; border: 1px solid var(--sky) }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 14px; font: 600 15px Inter; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s }
.btn.primary { background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 10px 24px -10px rgba(37,99,235,.65), inset 0 1px 0 rgba(255,255,255,.25) }
.btn.primary:hover { transform: translateY(-2px) }

/* üst menü (tanıtım sayfasıyla aynı) */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line) }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: 1320px }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(37,99,235,.35)) }
.brand b { font: 800 22px var(--display); color: var(--ink); letter-spacing: -.03em }
nav.links { display: flex; align-items: center; gap: 26px; font-size: 14.5px }
nav.links a { text-decoration: none; color: var(--body) }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink) }
nav.links a[aria-current="page"] { font-weight: 600 }
nav.links .btn { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; color: #fff }

/* sayfa başı */
.doc-hero { padding: 56px 0 28px; background: linear-gradient(180deg, #eaf3ff 0%, var(--bg) 100%) }
.doc-hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; margin: 14px 0 12px; max-width: 820px }
.doc-hero p { font-size: 17px; max-width: 720px }
.doc-hero .meta { margin-top: 14px; font-size: 13.5px; color: var(--muted) }

/* içindekiler + metin */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding: 8px 0 72px }
.toc { position: sticky; top: 96px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow) }
.toc summary { list-style: none; font: 700 13px Inter; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: default }
.toc summary::-webkit-details-marker { display: none }
.toc ol { list-style: none; margin-top: 10px; display: grid; gap: 2px; counter-reset: toc }
.toc li a { display: block; padding: 6px 10px; border-radius: 10px; font-size: 14px; text-decoration: none; color: var(--body); counter-increment: toc }
.toc li a::before { content: counter(toc) ". "; color: var(--muted) }
.toc li a:hover { background: var(--sky2); color: var(--ink) }
.toc .related { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 4px }
.toc .related a { color: var(--blue); text-decoration: none }

.prose { padding: 36px 40px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0 }
.prose > p:first-child { font-size: 17px; color: var(--ink) }
.prose section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line) }
.prose section:first-of-type { border-top: 0; margin-top: 0 }
.prose h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline }
.prose h2 .n { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px; background: var(--sky2); color: var(--blue); font: 700 14px Inter; border: 1px solid var(--sky); transform: translateY(-3px) }
.prose h3 { font-size: 17px; margin: 18px 0 6px }
.prose p { margin: 10px 0 }
.prose ul { margin: 10px 0 10px 4px; display: grid; gap: 8px; list-style: none }
.prose ul li { position: relative; padding-left: 22px }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue2) }
.prose strong { color: var(--ink) }
.prose a { color: var(--blue); text-underline-offset: 3px }
.callout { margin: 14px 0; padding: 14px 16px; border-radius: 16px; background: var(--sky2); border: 1px solid var(--sky); color: var(--ink); font-size: 15px }
.table { margin: 14px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px }
.table th { text-align: left; padding: 11px 14px; background: #f8fafc; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line) }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top }
.table tr:last-child td { border-bottom: 0 }
.table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap }

/* alt bilgi (tanıtım sayfasıyla aynı) */
footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 14px; color: var(--muted); background: #fff }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; max-width: 1320px; align-items: center }
footer nav { display: flex; gap: 22px; flex-wrap: wrap }
footer a { text-decoration: none } footer a:hover { color: var(--ink) }
footer .brand img { width: 28px; height: 28px } footer .brand b { font-size: 17px }

/* sitenin alt bilgisi: yasal bağlantılar, ödeme seçenekleri, şirket (worker/site.ts siteFooterHtml; aynısı public/site.css ve public/tanitim.html) */
footer.site-foot { padding: 44px 0 28px }
footer.site-foot .wrap { display: grid; gap: 22px; justify-content: stretch; align-items: start }
.site-foot .foot-grid { display: grid; grid-template-columns: minmax(220px, 1.1fr) 2.4fr; gap: 32px }
.site-foot .foot-brand { display: grid; gap: 10px; align-content: start }
.site-foot .foot-brand p { margin: 0; font-size: 14px; line-height: 1.6 }
.site-foot .foot-contact { font-size: 13.5px; overflow-wrap: anywhere }
.site-foot .foot-contact a { white-space: nowrap }
.site-foot .foot-cols { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 24px }
.site-foot .foot-col { display: grid; gap: 9px; align-content: start }
.site-foot .foot-col h4 { margin: 0 0 4px; font: 700 12px/1.2 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink) }
.site-foot .foot-col a { font-size: 14px; line-height: 1.4 }
.site-foot .foot-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.site-foot .foot-label, .site-foot .secure { display: inline-flex; align-items: center; gap: 7px }
.site-foot .foot-label { font-weight: 600; color: var(--ink) }
.site-foot .cards { display: inline-flex; flex-wrap: wrap; gap: 6px }
.site-foot .card { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font: 700 11.5px/1 Inter, sans-serif; letter-spacing: .04em; color: var(--ink) }
.site-foot .foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13px }
.site-foot .foot-bottom p { margin: 0 }
@media (max-width: 900px) { .site-foot .foot-grid { grid-template-columns: 1fr; gap: 26px } }
@media (max-width: 560px) { .site-foot .foot-cols { grid-template-columns: 1fr 1fr } .site-foot .foot-cols .foot-col:last-child { grid-column: 1 / -1 } }

/* şirket bilgileri listesi (worker/site.ts companyDetailsHtml) */
.kv { margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden }
.kv > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line) }
.kv > div:last-child { border-bottom: 0 }
.kv dt { font-weight: 600; color: var(--ink) }
.kv dd { overflow-wrap: anywhere }
@media (max-width: 640px) { .kv > div { grid-template-columns: 1fr; gap: 2px } .kv dt { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted) } }

@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 16px }
  .toc { position: static }
  .toc summary { cursor: pointer; display: flex; justify-content: space-between }
  .toc summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--blue) }
  .toc[open] summary::after { content: "−" }
}
@media (max-width: 640px) {
  /* Tablolar dar ekranda kartlara dönüşür */
  .table { border: 0; overflow: visible }
  .table table { min-width: 0 }
  .table thead { display: none }
  .table tr { display: block; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
  .table td { display: block; border-bottom: 1px solid var(--line); padding: 9px 12px }
  .table td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px }
  .table td:first-child { background: #f8fafc }
}
@media (max-width: 720px) {
  nav.links { gap: 8px }
  nav.links a:not(.btn):not(.login) { display: none }
  nav.links .login { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap }
  nav.links .btn { white-space: nowrap }
  .wrap { padding: 0 16px }
  .doc-hero { padding: 36px 0 18px }
  .prose { padding: 24px 18px; border-radius: 20px }
  .table td:first-child { white-space: normal }
  footer .wrap { flex-direction: column; align-items: flex-start }
}
@media (max-width: 400px) {
  header.nav .wrap { gap: 8px }
  .brand { gap: 8px } .brand img { width: 32px; height: 32px } .brand b { font-size: 19px }
  nav.links .login { padding: 0 12px; font-size: 13.5px }
  nav.links .btn { padding: 0 12px; font-size: 13.5px }
  nav.links .btn .long { display: none }
}
