/* ───────────────────────────────────────────────────────────────
   BenMeal — Yasal Sayfa Stilleri
   tokens.css ile birlikte kullanılır
   ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 21, 29, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.bm-logo { height: 30px; width: auto; display: block; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 12px; padding: 9px 16px;
  transition: all .2s var(--ease);
}
.back-link:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.42); transform: translateY(-1px); }

/* ── Sayfa başlığı ── */
.page-head {
  background: radial-gradient(120% 130% at 80% 0%, #2E4A60 0%, #1B2A38 55%, #131C26 100%);
  color: #fff; padding: 54px 0 60px;
}
.page-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: #BFD6E6; background: rgba(255, 255, 255, 0.10);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; margin-bottom: 14px; }
.page-head p { font-size: 16px; color: rgba(255, 255, 255, 0.74); max-width: 560px; text-wrap: pretty; }

/* ── Layout ── */
.legal-layout { display: grid; grid-template-columns: 268px 1fr; gap: 48px; padding: 48px 0 90px; align-items: start; }

/* ── Sidebar ── */
.side { position: sticky; top: 94px; }
.doc-switch { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.doc-switch button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--ink-sub); background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; padding: 13px 15px; cursor: pointer; transition: all .2s var(--ease);
}
.doc-switch button .ic {
  width: 34px; height: 34px; border-radius: 10px; background: var(--primary-tint);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s var(--ease);
}
.doc-switch button:hover { border-color: rgba(74, 104, 128, 0.4); }
.doc-switch button.active { background: var(--primary-deep); color: #fff; border-color: var(--primary-deep); box-shadow: var(--shadow-md); }
.doc-switch button.active .ic { background: rgba(255, 255, 255, 0.16); color: #fff; }

.toc-wrap { border-top: 1px solid var(--border); padding-top: 20px; }
.toc-wrap h5 { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.toc { display: flex; flex-direction: column; gap: 1px; }
.toc a { font-size: 13.5px; font-weight: 600; color: var(--ink-sub); padding: 7px 12px; border-radius: 9px; border-left: 2px solid transparent; transition: all .2s; }
.toc a:hover { background: var(--surface-alt); color: var(--primary); }
.toc a.current { color: var(--primary-deep); background: var(--primary-tint); border-left-color: var(--primary); }

/* ── Belge içeriği ── */
.docs { min-width: 0; }
.doc { display: none; }
.doc.active { display: block; }
.doc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: 48px 52px; }
.doc-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); font-weight: 600; margin-bottom: 8px; }
.doc-meta .pill { background: var(--primary-tint); color: var(--primary); padding: 3px 11px; border-radius: 999px; font-size: 12px; letter-spacing: .3px; }
.doc h2.doc-title { font-size: 30px; font-weight: 800; letter-spacing: -0.9px; color: var(--ink); margin-bottom: 28px; text-wrap: balance; }
.doc h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); margin: 34px 0 12px; scroll-margin-top: 94px; display: flex; gap: 11px; align-items: baseline; }
.doc h3 .n { color: var(--primary); font-size: 15px; font-weight: 800; flex-shrink: 0; }
.doc h3:first-of-type { margin-top: 6px; }
.doc p { font-size: 15px; color: var(--ink-sub); margin-bottom: 13px; text-wrap: pretty; }
.doc ul { margin: 0 0 14px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.doc ul li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-sub); text-wrap: pretty; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.doc ul li b { color: var(--ink); font-weight: 700; }
.doc a.inline { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.doc .contact-box { margin-top: 30px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.doc .contact-box h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.doc .contact-box p { font-size: 14px; margin-bottom: 5px; }
.doc .contact-box p:last-child { margin-bottom: 0; }

/* ── Footer ── */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: 30px 0; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.footer a { color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.footer a:hover { color: #fff; }
.footer .flinks { display: flex; gap: 22px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .side { position: static; }
  .doc-switch { flex-direction: row; flex-wrap: wrap; }
  .doc-switch button { flex: 1; min-width: 160px; }
  .toc-wrap { display: none; }
  .doc-card { padding: 34px 26px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .doc-switch button { font-size: 14px; }
}
