/* ============================================================
   Sözleşme Şablonları — Premium Design System
   Senior Frontend Developer Quality
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg: #f6f8fc;
  --bg-alt: #eef1f8;
  --card: #ffffff;
  --card-elevated: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: rgba(37,99,235,.08);
  --accent-glow: rgba(37,99,235,.15);
  --accent2: #7c3aed;
  --accent2-hover: #6d28d9;
  --accent2-light: rgba(124,58,237,.08);
  --success: #059669;
  --success-light: rgba(5,150,105,.08);
  --warning: #d97706;
  --warning-light: rgba(217,119,6,.08);
  --danger: #dc2626;
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-glow: 0 0 20px rgba(37,99,235,.12);
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: .35s cubic-bezier(.4,0,.2,1);
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --header-h: 64px;
}

[data-theme="dark"] {
  --bg: #0c0f1a;
  --bg-alt: #131828;
  --card: #1a1f35;
  --card-elevated: #1e2440;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --border: #2a3050;
  --border-light: #1e2440;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --accent-light: rgba(96,165,250,.1);
  --accent-glow: rgba(96,165,250,.2);
  --accent2: #a78bfa;
  --accent2-hover: #8b5cf6;
  --accent2-light: rgba(167,139,250,.1);
  --success: #34d399;
  --success-light: rgba(52,211,153,.1);
  --warning-light: rgba(217,119,6,.1);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.35);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.4);
  --shadow-glow: 0 0 30px rgba(96,165,250,.15);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
::selection { background: var(--accent); color: #fff; }

/* --- Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }

/* --- Disclaimer Banner --- */
.disclaimer-banner {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
  color: #92400e;
  padding: .625rem 1.25rem;
  font-size: .8125rem;
  text-align: center;
  border-bottom: 1px solid rgba(245,158,11,.25);
  font-weight: 500;
  letter-spacing: .01em;
}
[data-theme="dark"] .disclaimer-banner {
  background: linear-gradient(90deg, #451a03 0%, #78350f 50%, #451a03 100%);
  color: #fde68a;
  border-color: rgba(146,64,14,.4);
}

/* --- Header / Navbar --- */
.site-header {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
}
[data-theme="dark"] .site-header {
  background: rgba(12,15,26,.85);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}
.logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .625rem;
  white-space: nowrap;
  letter-spacing: -.02em;
}
.logo:hover { color: var(--accent); }
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .125rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-actions { display: flex; align-items: center; gap: .375rem; }
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.theme-toggle svg { width: 18px; height: 18px; }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: .5rem;
}
.mobile-toggle svg { width: 24px; height: 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
  line-height: 1.4;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,.3), 0 0 0 0 rgba(37,99,235,0);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,.35), 0 0 0 0 rgba(37,99,235,0);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-light); color: var(--accent); }
.btn-accent2 { background: var(--accent2); color: #fff; box-shadow: 0 1px 2px rgba(124,58,237,.3); }
.btn-accent2:hover { background: var(--accent2-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,.35); }
.btn-sm { padding: .375rem .875rem; font-size: .8rem; }
.btn-lg { padding: .875rem 2.25rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-xl { padding: 1rem 2.75rem; font-size: 1.0625rem; border-radius: var(--radius-md); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--accent); background: var(--accent-light); }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-icon { padding: .5rem; }

/* --- Hero Section --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37,99,235,.15);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  letter-spacing: -.03em;
  line-height: 1.15;
  font-weight: 800;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: .875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  max-width: 600px;
  margin: 0 auto;
}
.hero-stat {
  text-align: center;
}
.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.hero-stat-label {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: .125rem;
}

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.2);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.card-icon.blue { background: var(--accent-light); color: var(--accent); }
.card-icon.purple { background: var(--accent2-light); color: var(--accent2); }
.card-icon.green { background: var(--success-light); color: var(--success); }
.card-icon.amber { background: var(--warning-light); color: var(--warning); }
.trust-icon { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1; }
.card.text-center h3 { margin-bottom: .375rem; }
.card.text-center p { font-size: .875rem; }
.card h3 { margin-bottom: .5rem; font-size: 1.125rem; }
.card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }
.card-footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-arrow { color: var(--muted); transition: all var(--transition); font-size: 1.125rem; }
.card:hover .card-arrow { color: var(--accent); transform: translateX(3px); }
.card-featured { border-color: rgba(37,99,235,.2); background: linear-gradient(135deg, var(--card) 0%, rgba(37,99,235,.02) 100%); }

/* --- Section --- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: 2rem;
  margin-bottom: .75rem;
  letter-spacing: -.03em;
  font-weight: 800;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.0625rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
  padding: 1.25rem 0 .75rem;
  font-size: .8125rem;
  flex-wrap: wrap;
}
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); font-size: .75rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text-secondary); font-weight: 600; }

/* --- Page Content --- */
.page-content { padding: 2rem 0 5rem; }
.page-content h1 { font-size: 2.25rem; margin-bottom: 1rem; font-weight: 800; }
.content-body { max-width: var(--max-w-narrow); }
.content-body h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.content-body h3 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.content-body p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }
.content-body ul, .content-body ol { margin-bottom: 1.25rem; }
.content-body li { margin-bottom: .375rem; color: var(--text-secondary); line-height: 1.7; }
.content-body strong { color: var(--text); font-weight: 600; }
.content-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Stepper --- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2.5rem 0;
  padding: 1.25rem 2rem;
  list-style: none;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.step-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.step-item .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8125rem;
  border: 2px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  transition: all var(--transition);
}
.step-item.active .step-num { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-glow); }
.step-item.active { color: var(--text); font-weight: 600; }
.step-item.done .step-num { background: var(--success); border-color: var(--success); color: #fff; }
.step-item.done { color: var(--success); }
.step-line { width: 48px; height: 2px; background: var(--border); margin: 0 .5rem; transition: background var(--transition); border-radius: 1px; }
.step-line.done { background: var(--success); }

/* --- Form Elements --- */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .5rem; color: var(--text); }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  transition: all var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-check { display: flex; align-items: center; gap: .625rem; margin-bottom: .625rem; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.form-check label { cursor: pointer; font-size: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-actions { display: flex; gap: .875rem; margin-top: 2rem; flex-wrap: wrap; }

/* --- Output Panel --- */
.output-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
}
.output-panel .contract-text {
  font-family: var(--font);
  white-space: pre-wrap;
  line-height: 1.85;
  font-size: .9375rem;
  color: var(--text);
}
.output-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

/* --- Clause Sidebar --- */
.clause-sidebar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}
.clause-sidebar h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--accent); }
.clause-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem .875rem;
  margin-bottom: .375rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.clause-link:hover { background: var(--accent-light); color: var(--accent); }
.clause-link .icon { font-size: 1rem; }

/* --- Tags / Badges --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  letter-spacing: .01em;
}
.tag.purple { background: var(--accent2-light); color: var(--accent2); }
.tag.green { background: var(--success-light); color: var(--success); }
.tag.amber { background: var(--warning-light); color: var(--warning); }

/* --- Feature Grid (Homepage) --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(37,99,235,.15); }
.feature-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
}
.feature-num.n1 { background: var(--accent); }
.feature-num.n2 { background: var(--accent2); }
.feature-num.n3 { background: var(--success); }
.feature-card h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; color: var(--text-secondary); }

/* --- Template Cards (Homepage) --- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.tpl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-xs);
  text-decoration: none !important;
  color: var(--text) !important;
  display: flex;
  flex-direction: column;
}
.tpl-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); border-color: rgba(37,99,235,.2); }
.tpl-card-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.tpl-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.tpl-card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.tpl-card-desc { color: var(--text-secondary); font-size: .9rem; line-height: 1.65; flex-grow: 1; }
.tpl-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.tpl-card-cta { font-weight: 600; font-size: .875rem; color: var(--accent); display: flex; align-items: center; gap: .375rem; }
.tpl-card:hover .tpl-card-cta { gap: .625rem; }

/* --- Accordion (FAQ) --- */
.accordion { margin: 1rem 0; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: .625rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.accordion-item:hover { box-shadow: var(--shadow); }
.accordion-header {
  width: 100%;
  background: var(--card);
  border: none;
  padding: 1.125rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font);
  transition: background var(--transition);
  gap: 1rem;
}
.accordion-header:hover { background: var(--bg-alt); }
.accordion-header .icon { transition: transform var(--transition); font-size: .875rem; color: var(--muted); flex-shrink: 0; }
.accordion-item.open .accordion-header .icon { transform: rotate(180deg); }
.accordion-item.open .accordion-header { color: var(--accent); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-body-inner { padding: 0 1.5rem 1.5rem; color: var(--text-secondary); font-size: .9375rem; line-height: 1.75; }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: var(--bg);
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* --- Search --- */
.search-box { position: relative; max-width: 640px; margin: 0 auto 2rem; }
.search-box input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  font-family: var(--font);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-glow); }
.search-box .search-icon { position: absolute; left: 1.125rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-filters { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-chip {
  padding: .4375rem 1.125rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.filter-chip:hover, .filter-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.search-results { list-style: none; padding: 0; }
.search-result-item {
  padding: 1.125rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: .625rem;
  background: var(--card);
  transition: all var(--transition);
}
.search-result-item:hover { border-color: rgba(37,99,235,.2); box-shadow: var(--shadow); }
.search-result-item h3 { font-size: 1rem; margin-bottom: .25rem; }
.search-result-item h3 a { color: var(--text); }
.search-result-item h3 a:hover { color: var(--accent); }
.search-result-item p { font-size: .8125rem; color: var(--muted); margin: 0; }

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 { font-size: .8125rem; margin-bottom: .875rem; color: var(--text); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--muted); font-size: .875rem; transition: all var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-light); font-size: .8125rem; color: var(--muted); }
.footer-disclaimer {
  background: var(--warning-light);
  border: 1px solid rgba(217,119,6,.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: .8125rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* --- AdSense Slots --- */
.ad-slot {
  margin: 2rem auto;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-w);
}
.ad-slot-in-article {
  margin: 2rem -1.75rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  text-align: center;
  padding: .5rem;
  min-height: 60px;
}

/* --- Cookie Consent Banner --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-consent-inner p {
  flex: 1;
  min-width: 280px;
  font-size: .875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
.cookie-consent-inner p a { font-weight: 600; }
.cookie-consent-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* --- CTA Panel --- */
.cta-panel {
  background: linear-gradient(135deg, rgba(37,99,235,.04) 0%, rgba(124,58,237,.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-panel h3 { margin-bottom: .625rem; font-size: 1.5rem; position: relative; }
.cta-panel p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.0625rem; position: relative; }

/* --- Clause List (maddeler sidebar) --- */
.clause-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.clause-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.clause-item:hover { border-color: rgba(37,99,235,.2); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--accent); }
.clause-item-icon { font-size: 1.25rem; flex-shrink: 0; }
.clause-item-text { font-weight: 500; font-size: .9375rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.875rem; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .stepper { flex-wrap: wrap; gap: .25rem; padding: 1rem; }
  .step-item .step-label { display: none; }
  .output-panel { padding: 1.5rem; }
  .grid-2, .grid-3, .grid-4, .tpl-grid, .feature-grid, .clause-list { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .section-header h2 { font-size: 1.625rem; }
  .cta-panel { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .btn-group { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* --- Print --- */
@media print {
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .site-header, .site-footer, .disclaimer-banner, .ad-slot, .ad-slot-in-article, .ad-anchor,
  .output-actions, .clause-sidebar, .stepper, .btn,
  .nav-links, .theme-toggle, .mobile-toggle, .toast,
  .cta-panel, .breadcrumb, .search-box, .search-filters,
  .hero-badge, .hero-stats, .cookie-consent { display: none !important; }
  .output-panel { border: none !important; padding: 0 !important; box-shadow: none !important; }
  .contract-text { font-size: 11pt !important; line-height: 1.6 !important; color: #000 !important; }
  .page-content { padding: 0 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  @page { margin: 2cm; }
}
