/* Chirak (Çırak) • Legal Pages (privacy.html, terms.html) & Scoped 404 Page */

/* ==========================================================================
   Legal Pages (privacy.html, terms.html)
   ========================================================================== */
.legal-page {
  padding: 48px 0 80px;
}

.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

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

.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

.legal-content p, .legal-content li {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

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

/* ==========================================================================
   Scoped 404 Page Styles (404.html only)
   ========================================================================== */
body.error-404-body {
  background-color: var(--bg-main, #fbfbfd);
  color: var(--text-primary, #1d1d1f);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body.error-404-body .brand-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

body.error-404-body .brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

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

body.error-404-body .content-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

body.error-404-body .status-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 56px 44px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

body.error-404-body .status-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3B52F5;
  background: rgba(59, 82, 245, 0.08);
  border: 1px solid rgba(59, 82, 245, 0.2);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

body.error-404-body .status-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 14px 0;
  color: #1d1d1f;
  line-height: 1.2;
}

body.error-404-body .status-description {
  font-size: 15px;
  line-height: 1.6;
  color: #6e6e73;
  margin: 0 0 36px 0;
}

body.error-404-body .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

body.error-404-body .btn-action-primary {
  background: #3B52F5;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.error-404-body .btn-action-primary:hover {
  background: #2D44E8;
  transform: translateY(-1px);
}

body.error-404-body .btn-action-secondary {
  background: #f5f5f7;
  color: #1d1d1f;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.error-404-body .btn-action-secondary:hover {
  background: #e8e8ed;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

body.error-404-body .site-footer {
  text-align: center;
  padding: 24px;
  color: #86868b;
  font-size: 13px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
  body.error-404-body .status-card {
    padding: 40px 24px;
  }
  body.error-404-body .status-title {
    font-size: 26px;
  }
  body.error-404-body .btn-group {
    flex-direction: column;
  }
  body.error-404-body .btn-action-primary,
  body.error-404-body .btn-action-secondary {
    width: 100%;
    box-sizing: border-box;
  }
}
