/* ==========================================================================
   Girops — hukuki sayfa stil dosyası (privacy / terms / delete-account)
   Açık ve koyu tema destekli hafif stil dosyası. Tanıtım sayfası artık React
   (src/features/landing/LandingPage.tsx + Tailwind) tarafında olduğu için
   hero / telefon maketi / bento / adımlar / SSS / CTA blokları 25 Eylül 2026'da
   kaldırıldı; burada yalnızca bu üç sayfanın kullandığı kurallar durur.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-subtle: #F4F6FB;
  --fg: #0f172a;
  --fg-heading: #020617;
  --muted: #64748b;
  --line: #e2e8f0;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --card-border: #f1f5f9;
  --accent: #315ED4;
  --accent-rgb: 49, 94, 212;
  --accent-hover: #2449AD;
  --accent-light: #EAF0FF;
  --accent-text: #2449AD;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --warn-text: #92400e;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-subtle: #111726;
    --fg: #e2e8f0;
    --fg-heading: #ffffff;
    --muted: #94a3b8;
    --line: #1e293b;
    --border: #1e293b;
    --card-bg: #111827;
    --card-border: #1f2937;
    --accent: #8CACFF;
    --accent-rgb: 140, 172, 255;
    --accent-hover: #C9D8F2;
    --accent-light: rgba(140, 172, 255, 0.12);
    --accent-text: #C9D8F2;
    --warn-bg: #221c10;
    --warn-line: #453213;
    --warn-text: #fcd34d;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Containers */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  transition: all 0.2s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--fg-heading);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--muted);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--fg-heading);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Legal Document Styles (privacy.html, delete-account.html, terms.html)
   ========================================================================== */
.legal-page {
  padding: 48px 0 96px;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fg-heading);
  line-height: 1.2;
  margin-bottom: 8px;
}

.legal-header .sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg-heading);
  margin: 36px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-heading);
  margin: 22px 0 8px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--fg);
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

.legal-content th, .legal-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--fg-heading);
}

.legal-content .note {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-content .lang-switch-box {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.legal-content code {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Hukuki sayfalar — dil seçici ve RTL (24 Eylül 2026)
   legal-i18n.js bu sınıfları kullanır: gömülü metin İngilizcedir, diğer 13 dil
   legal/<sayfa>.<dil>.json dosyalarından yüklenir.
   ========================================================================== */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-subtle);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg-heading);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 30px 7px 12px;
  cursor: pointer;
  max-width: 170px;
}

.lang-select:hover {
  border-color: var(--accent);
}

.lang-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Çeviri feragatnamesi kutusu artık tek parça metin taşır */
.legal-content .lang-switch-box {
  display: block;
  line-height: 1.6;
}

/* Sağdan sola diller (Arapça) */
[dir="rtl"] body,
[dir="rtl"] .legal-content,
[dir="rtl"] .legal-header {
  text-align: right;
}

[dir="rtl"] .lang-select {
  background-position: left 10px center;
  padding: 7px 12px 7px 30px;
}

[dir="rtl"] .legal-content ul,
[dir="rtl"] .legal-content ol {
  padding-right: 22px;
  padding-left: 0;
}

[dir="rtl"] .legal-content table th,
[dir="rtl"] .legal-content table td {
  text-align: right;
}

[dir="rtl"] .nav-wrap,
[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

/* Uzun tek kelimeler (de "Nutzungsbedingungen", ru başlıkları) dar ekranda sayfayı yana taşırmasın */
.legal-header,
.legal-content {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 1.75rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-actions {
    flex-wrap: wrap;
    margin-inline-start: auto;
    max-width: 100%;
    gap: 8px;
  }

  .lang-select {
    max-width: 130px;
    font-size: 0.78rem;
  }
}
