/* ==========================================================================
   Köroğlu AVM - Corporate Design System & Typography
   Minimalist Apple-style clean aesthetics (Zero external dependencies)
   ========================================================================== */

:root {
  --bg-primary: #fbfbfd;
  --bg-surface: #ffffff;
  --bg-subtle: #f5f5f7;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border-color: #d2d2d7;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --accent-blue: #0066cc;
  --accent-hover: #004499;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition-speed: 0.2s;
  --max-content-width: 820px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #000000;
    --bg-surface: #121212;
    --bg-subtle: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --border-color: #38383a;
    --border-subtle: rgba(255, 255, 255, 0.12);
    --accent-blue: #2997ff;
    --accent-hover: #52abff;
  }
}

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

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

body {
  font-family: var(--font-system);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Landing Page (index.html) Layout
   -------------------------------------------------------------------------- */

body.landing-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Center stage: strictly only the title */
.center-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.brand-title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  user-select: none;
}

/* Footer: pinned to bottom of viewport */
.site-footer {
  width: 100%;
  padding: 1.75rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
  list-style: none;
  margin: 0 auto;
  max-width: var(--max-content-width);
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color var(--transition-speed) ease;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Legal Document Pages (kvkk.html, aydinlatma.html, gizlilik.html)
   -------------------------------------------------------------------------- */

body.legal-page {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 2rem 1.25rem 5rem;
}

.legal-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  background-color: var(--bg-surface);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  body.legal-page {
    padding: 1rem 0.75rem 3rem;
  }
  .legal-container {
    padding: 2rem 1.25rem;
    border-radius: 12px;
  }
}

.back-bar {
  margin-bottom: 2.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.back-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.back-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.doc-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.doc-title {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.doc-meta {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.doc-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 1rem;
  color: var(--text-primary);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

.doc-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.doc-content p {
  margin-bottom: 1.15rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.doc-content ul, .doc-content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.doc-content li {
  margin-bottom: 0.4rem;
}

/* Info & Identity Callout Box */
.info-card {
  background-color: var(--bg-subtle);
  border-left: 4px solid var(--accent-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0 2rem;
  font-size: 0.9375rem;
}

.info-card p {
  margin-bottom: 0.5rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card strong {
  color: var(--text-primary);
}

/* Accessible Responsive Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

thead th {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-primary);
  line-height: 1.55;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.015);
}

@media (prefers-color-scheme: dark) {
  tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
  }
}

/* Document Bottom Cross-Links */
.doc-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
}

.cross-links a {
  color: var(--accent-blue);
  text-decoration: none;
}

.cross-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Print Optimization for Legal Documents */
@media print {
  body.legal-page {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  .legal-container {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .back-bar, .doc-footer, .cross-links {
    display: none !important;
  }
  a {
    color: #000000 !important;
    text-decoration: none !important;
  }
  .table-wrapper {
    border: 1px solid #999 !important;
  }
  th, td {
    border: 1px solid #999 !important;
  }
}
