/* ─────────────────────────────────────────────────────────────
   Ekstre Analiz — Legal Pages Stylesheet
   Modern fintech design system. Light mode default for legal
   readability. Indigo (#6366F1) → Violet (#8B5CF6) brand gradient.
   ───────────────────────────────────────────────────────────── */

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

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: #818CF8;
  --secondary: #8B5CF6;
  --gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.08) 100%);
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --surface-elev: #FFFFFF;
  --border: #E5E7EB;
  --border-soft: #F3F4F6;

  --text: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 4px 16px rgba(15,23,42,0.06);
  --shadow-lg: 0 16px 40px rgba(15,23,42,0.08);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  --container: 1080px;
  --content: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(99,102,241,0.18); color: var(--text); }

[data-lang="tr"] [data-en], [data-lang="en"] [data-tr] { display: none !important; }

/* ─── Top Bar ───────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  background: url('/favicon-96x96.png') center / cover no-repeat;
  border-radius: 9px;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
  flex-shrink: 0;
}
.brand-text { font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  transition: all 0.15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 6px rgba(99,102,241,0.3);
}
.back-link {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
@media (min-width: 720px) {
  .back-link { display: inline-flex; }
  .back-link:hover { color: var(--primary); text-decoration: none; }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 24px 88px;
  overflow: hidden;
  background: var(--gradient);
  color: #fff;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 360px; height: 360px;
  background: rgba(255,255,255,0.12);
  top: -120px; right: -100px;
}
.hero::after {
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.08);
  bottom: -80px; left: -60px;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.92;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.hero-meta-icon {
  display: inline-flex;
  width: 16px; height: 16px;
  align-items: center;
  justify-content: center;
}

/* ─── Layout ────────────────────────────────────────────────── */
.layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  margin-top: -32px;
}
@media (min-width: 980px) {
  .layout {
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: flex-start;
  }
}

/* ─── TOC (Table of Contents) ──────────────────────────────── */
.toc-wrap { display: none; }
@media (min-width: 980px) {
  .toc-wrap {
    display: block;
    position: sticky;
    top: 88px;
    align-self: start;
    padding-top: 56px;
  }
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.toc-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 12px 8px;
}
.toc ol {
  list-style: none;
  counter-reset: tocnum;
}
.toc li { counter-increment: tocnum; }
.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
  line-height: 1.35;
}
.toc a::before {
  content: counter(tocnum, decimal-leading-zero);
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 22px;
}
.toc a:hover {
  background: var(--gradient-soft);
  color: var(--text);
}
.toc a.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.toc a.active::before { color: rgba(255,255,255,0.85); }

/* Mobile TOC drawer */
.mobile-toc-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(99,102,241,0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 980px) { .mobile-toc-trigger { display: none; } }
.mobile-toc-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
}
.mobile-toc-drawer.open { display: flex; }
.mobile-toc-drawer .inner {
  background: var(--surface);
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 18px 20px 28px;
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-toc-drawer .handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin: 0 auto 14px;
}
.mobile-toc-drawer .toc { border: none; padding: 0; box-shadow: none; }

/* ─── Content Card ──────────────────────────────────────────── */
.content {
  padding: 56px 0 80px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}

/* ─── Section Styles ────────────────────────────────────────── */
section { margin-bottom: 44px; scroll-margin-top: 100px; }
section:last-child { margin-bottom: 0; }
section h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
section h2 .num {
  font-size: 13px;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
section p, section li {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 12px;
}
section li { margin-bottom: 8px; }
section ul, section ol { padding-left: 22px; margin: 8px 0 16px; }
section ul li::marker { color: var(--primary); }
section strong { color: var(--text); font-weight: 600; }

/* ─── Callout Boxes ─────────────────────────────────────────── */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.65;
}
.callout-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 6px;
  font-weight: 700;
}
.callout-body { flex: 1; color: var(--text); }
.callout-body strong { display: block; margin-bottom: 4px; font-size: 14px; }

.callout.info {
  background: var(--gradient-soft);
  border: 1px solid rgba(99,102,241,0.18);
}
.callout.info .callout-icon { background: var(--primary); color: #fff; }

.callout.success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.22);
}
.callout.success .callout-icon { background: var(--success); color: #fff; }

.callout.warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.22);
}
.callout.warning .callout-icon { background: var(--warning); color: #fff; }

.callout.danger {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.18);
}
.callout.danger .callout-icon { background: var(--danger); color: #fff; }

/* ─── Step Cards ────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 18px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--gradient);
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.step-content { flex: 1; }
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ─── Data Grid (for privacy data categories) ──────────────── */
.data-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}
.data-pill {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.data-pill-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.data-pill-title .dot {
  width: 8px; height: 8px;
  background: var(--gradient);
  border-radius: 50%;
}
.data-pill p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ─── Contact Footer Card ───────────────────────────────────── */
.contact-card {
  margin-top: 36px;
  padding: 28px;
  background: var(--gradient-soft);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.contact-card h3 {
  margin: 0 !important;
  font-size: 17px;
  color: var(--text);
}
.contact-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.contact-card a {
  font-weight: 600;
  color: var(--primary);
}

/* ─── Site Footer ───────────────────────────────────────────── */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 36px 24px 56px;
  text-align: center;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 13.5px;
}
.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
  .topbar, .toc-wrap, .mobile-toc-trigger, .mobile-toc-drawer, .site-footer { display: none !important; }
  .hero { background: var(--text) !important; padding: 30px 0; }
  .hero::before, .hero::after { display: none; }
  .layout { grid-template-columns: 1fr; margin-top: 0; }
  .content { padding: 30px 0; }
  .card { box-shadow: none; border: none; padding: 0; }
  body { background: #fff; font-size: 12pt; }
  section { page-break-inside: avoid; }
  a { color: var(--text) !important; }
}
