/*
 * Yasal sayfaların ortak tasarımı: ana sitenin (src/index.css, Header, Footer, ui.tsx) değerleriyle aynı.
 * Fontlar self-host (K-15): ziyaretçi verisi üçüncü tarafa gitmez. Alt küme aralıkları @fontsource/*\/400.css'ten.
 */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-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: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-ext-400-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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-ext-500-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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-ext-600-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; }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-serif-display-latin-400-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: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-serif-display-latin-ext-400-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; }

/* Metrikleri eşlenmiş yedek fontlar (src/index.css ile aynı): font yüklenince satırlar kaymaz. */
@font-face { font-family: 'Poppins Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'); size-adjust: 112.16%; ascent-override: 93.62%; descent-override: 31.21%; line-gap-override: 8.92%; }
@font-face { font-family: 'DM Serif Display Fallback'; src: local('Georgia'), local('Gelasio'); size-adjust: 100.04%; ascent-override: 103.55%; descent-override: 33.49%; line-gap-override: 0%; }

/* Marka panosu: https://claude.ai/artifact/XE5EGiPpPKGyUs3m7H8rSe */
:root {
  --krem: #f8f7f1;
  --kart: #ffffff;
  --petrol: #1c5876;
  --petrol-soluk: #4a6b7a;
  --petrol-koyu: #164a64;
  --cizgi: #d6dfe2;
  --lime: #e3f5a3;
  --lime-koyu: #d8ef8a;
  --hardal: #f2c94c;
  --logo-yesil: #029933;
  --font-display: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, 'Times New Roman', serif;
  --font-sans: Poppins, 'Poppins Fallback', 'Helvetica Neue', Arial, sans-serif;
  --ease-brand: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  background: var(--krem);
  color: var(--petrol);
  line-height: 1.75;
}

/* İki dilli sayfalar: görünür dil <html lang> ile seçilir. */
html[lang='en'] .lang-tr { display: none; }
html[lang='tr'] .lang-en { display: none; }

::selection { background: var(--lime); color: var(--petrol); }
.highlight ::selection, .badge::selection { background: var(--petrol); color: var(--krem); }

:focus-visible { outline: 3px solid var(--logo-yesil); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--lime); }

/* Ana sitenin Container'ı: max 1760, kenar 20 / 40 / 80 px. */
.container {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) { .container { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .container { padding-left: 80px; padding-right: 80px; } }

/* ---------- Header (src/components/Header.tsx) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--krem);
  border-bottom: 1px solid var(--cizgi);
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.brand img { display: block; width: 40px; height: 40px; }
.brand span { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

.lang-switcher button {
  font-family: inherit;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--cizgi);
  background: var(--kart);
  color: var(--petrol);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 200ms var(--ease-brand), border-color 200ms var(--ease-brand), scale 150ms var(--ease-brand);
}
.lang-switcher button:hover { background: var(--lime); border-color: var(--lime); }
.lang-switcher button:active { scale: 0.97; }

/* ---------- Gövde ---------- */
.legal { padding-top: 72px; padding-bottom: 120px; }
@media (min-width: 1024px) { .legal { padding-top: 104px; } }

.badge {
  display: inline-block;
  background: var(--lime);
  color: var(--petrol);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.meta { font-size: 15px; color: var(--petrol-soluk); }
.divider { border: none; border-top: 1px solid var(--cizgi); margin: 56px 0 8px; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  text-wrap: balance;
  margin-top: 56px;
  margin-bottom: 16px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 32px;
  margin-bottom: 10px;
}
p { font-size: 17px; margin-bottom: 16px; }
strong { font-weight: 600; }

ul { list-style: none; margin-bottom: 16px; }
ul li { position: relative; font-size: 17px; padding: 5px 0 5px 28px; }
ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--logo-yesil);
}

/* Bağlantı: ana sitenin TextLink'i (yeşil 2 px alt çizgi). */
a.external {
  color: var(--petrol);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--logo-yesil);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 200ms var(--ease-brand);
}
a.external:hover { color: var(--petrol-koyu); text-decoration-color: var(--petrol-koyu); }

.card {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--petrol-soluk); font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.card a.external { display: inline-flex; align-items: center; min-height: 44px; }

.warning {
  background: var(--kart);
  border: 2px solid var(--hardal);
  border-radius: 24px;
  padding: 22px 28px;
  margin-bottom: 20px;
  font-size: 17px;
}
.warning strong { display: block; margin-bottom: 4px; }
.highlight {
  background: var(--lime);
  border-radius: 24px;
  padding: 24px 28px;
  margin: 24px 0 32px;
}
.highlight p:last-child { margin-bottom: 0; }

/* Hesap silme sayfası bileşenleri */
.danger {
  background: var(--kart);
  border: 2px solid var(--hardal);
  border-radius: 24px;
  padding: 22px 28px;
  margin-bottom: 32px;
  font-size: 17px;
}
.info {
  background: var(--lime);
  border-radius: 24px;
  padding: 22px 28px;
  margin-bottom: 20px;
  font-size: 17px;
}
.danger strong, .info strong { display: block; margin-bottom: 4px; }
.steps { list-style: none; margin-bottom: 16px; counter-reset: step; }
.steps li {
  position: relative;
  font-size: 17px;
  padding: 14px 0 14px 56px;
  border-bottom: 1px solid var(--cizgi);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--krem);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.email-box {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 24px;
  padding: 20px 28px;
  margin: 12px 0 20px;
  font-size: 18px;
  font-weight: 600;
}
.platform {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 24px;
  padding: 20px 28px;
  margin-bottom: 12px;
}
.platform strong { display: block; font-size: 16px; margin-bottom: 6px; }
.platform p { margin: 0; font-size: 16px; color: var(--petrol-soluk); }

/*
 * Gövdede eski koyu temadan kalma satır içi renkler var (`color:#fff`, `#D0D0E8`).
 * İçerik değişmesin diye markup'a dokunulmaz; renk burada kapsayıcıdan devralınır.
 */
.legal [style*='color'] { color: inherit !important; }

/*
 * Masaüstü okuma düzeni: bölüm başlığı solda, metin sağda (en çok 720 px).
 * Her h2'den hemen sonra bir paragraf gelir; ikisi aynı satıra oturur ve üstlerinde ortak bir çizgi olur.
 */
@media (min-width: 1100px) {
  /* İki dilli sayfada her dil bloğu, tek dilli sayfada (.single) <main> kendisi grid olur. */
  .legal > .lang-tr,
  .legal > .lang-en,
  .legal.single {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 720px);
    column-gap: 80px;
    align-items: start;
  }
  html[lang='en'] .legal > .lang-tr,
  html[lang='tr'] .legal > .lang-en { display: none; }

  :is(.legal > div, .legal.single) > * { grid-column: 2; }
  :is(.legal > div, .legal.single) > :is(.badge, h1, .meta, .divider) { grid-column: 1 / -1; justify-self: start; }
  :is(.legal > div, .legal.single) > .divider { justify-self: stretch; margin-bottom: 0; }
  /* Başlık üç satıra yayılır: uzun başlık, yanındaki kısa paragrafın satırını uzatıp altında boşluk bırakmaz. */
  :is(.legal > div, .legal.single) > h2 { grid-column: 1; grid-row: span 3; padding-right: 16px; }
  :is(.legal > div, .legal.single) > :is(h2, h2 + :not(.card, .warning, .highlight, .info, .danger)) {
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--cizgi);
  }
  /* Başlığın hemen altındaki kutu kendi iç boşluğunu korur; çizgi yalnız başlıkta kalır. */
  :is(.legal > div, .legal.single) > h2 + :is(.card, .warning, .highlight, .info, .danger) { margin-top: 92px; }
  /* Grid'de dış boşluklar birleşmez: alt başlığın üst payı tek sütundaki aralığa eşitlenir. */
  :is(.legal > div, .legal.single) > h3 { margin-top: 20px; }
  :is(.legal > div, .legal.single) > .divider + h2,
  :is(.legal > div, .legal.single) > .divider + h2 + * { border-top: none; margin-top: 24px; }
  /* Tek dilli sayfada başlık bloğundan sonra ayırıcı yok: ilk öğe metin sütununda boşlukla başlar. */
  .legal.single > .meta + * { margin-top: 56px; }
}

/* ---------- Footer (src/components/Footer.tsx) ---------- */
.site-footer { background: var(--petrol); color: var(--krem); }
.site-footer .container { display: flex; flex-direction: column; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.site-footer .top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 40px; }
.site-footer .brand img { width: 44px; height: 44px; }
.site-footer nav { display: flex; flex-direction: column; font-size: 14px; }
.site-footer .eyebrow {
  margin-bottom: 4px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--krem);
  text-decoration: none;
}
.site-footer nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-brand);
}
.site-footer nav a:hover::after,
.site-footer nav a[aria-current='page']::after { transform: scaleX(1); }
.site-footer .bottom { border-top: 1px solid rgb(248 247 241 / 0.25); padding-top: 24px; font-size: 14px; }
