@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #07080B;
  --card-bg: rgba(17, 19, 26, 0.80);
  --card-bg-solid: #11131A;
  --border: rgba(255, 255, 255, 0.08);
  --border-lit: rgba(179, 175, 255, 0.35);
  --border-focus: rgba(73, 79, 223, 0.5);
  --text: #F4F5F8;
  --text-muted: #8C96A5;
  --text-dim: #64748B;
  --primary: #494FDF;
  --primary-hover: #5E68FF;
  --teal: #00E5D4;
  --lavender: #B3AFFF;
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.10);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Atmosphere */
.bg-beam {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at 50% 30%, rgba(73, 79, 223, 0.24), rgba(179, 175, 255, 0.09) 50%, transparent 75%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  height: 650px;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(255, 255, 255, 0.08) 1.2px, transparent 1.6px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Header & Navigation */
header.site-header {
  position: relative;
  z-index: 20;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: #fff;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(73, 79, 223, 0.4);
}

/* Content Container for Legal & Subpages */
.content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 20px 24px 80px;
  flex: 1;
}

.legal-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
  header.site-header {
    padding: 18px 16px;
  }
  nav.site-nav {
    display: none; /* Can be toggled or minimalist */
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(73, 79, 223, 0.15);
  border: 1px solid rgba(73, 79, 223, 0.3);
  color: var(--lavender);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.danger {
  background: var(--danger-bg);
  border-color: rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.badge.warning {
  background: var(--warning-bg);
  border-color: rgba(245, 158, 11, 0.3);
  color: #FDE68A;
}

/* Typography in Legal Pages */
.legal-card h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.legal-card .last-updated {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.legal-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
  color: #fff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  letter-spacing: -0.01em;
}

.legal-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #E2E8F0;
}

.legal-card p,
.legal-card ul,
.legal-card ol {
  margin-bottom: 16px;
  color: #CBD5E1;
  font-size: 0.96rem;
}

.legal-card ul,
.legal-card ol {
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card a {
  color: var(--lavender);
  text-decoration: none;
  border-bottom: 1px dashed rgba(179, 175, 255, 0.4);
  transition: all 0.2s;
}

.legal-card a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Callouts / Boxes */
.notice-box {
  background: rgba(73, 79, 223, 0.10);
  border-left: 4px solid var(--primary);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  padding: 16px 20px;
  margin: 24px 0;
  color: #E2E8F0;
  font-size: 0.95rem;
}

.warning-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  padding: 16px 20px;
  margin: 24px 0;
  color: #FEF3C7;
  font-size: 0.95rem;
}

.danger-box {
  background: var(--danger-bg);
  border-left: 4px solid var(--danger);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  padding: 16px 20px;
  margin: 24px 0;
  color: #FEE2E2;
  font-size: 0.95rem;
}

/* Step Card & FAQ Card */
.interactive-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.interactive-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.interactive-card .card-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(73, 79, 223, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 24px rgba(73, 79, 223, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

/* Footer */
footer.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  color: #fff;
}

/* Dual Language Display Mechanism */
html[lang="tr"] .lang-en {
  display: none !important;
}

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