/* Medotomy & Dentomy — Gizlilik Politikası / Privacy Policy */

:root {
  --brand: #299D70;
  --brand-soft: rgba(41, 157, 112, 0.10);
  --brand-line: rgba(41, 157, 112, 0.28);

  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #f1f3f2;
  --text: #16211d;
  --text-2: #55605c;
  --text-3: #838d89;
  --line: #e2e6e4;
  --line-strong: #cbd2cf;
  --shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 8px 28px rgba(16, 24, 20, .06);

  --maxw: 1120px;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --surface: #151d1a;
    --surface-2: #1c2523;
    --text: #e8eeeb;
    --text-2: #a3aeaa;
    --text-3: #7b8582;
    --line: #263230;
    --line-strong: #35443f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Language switching ---------- */
[data-i18n] { display: none; }
html[lang="tr"] [data-i18n="tr"] { display: revert; }
html[lang="en"] [data-i18n="en"] { display: revert; }
html[lang="tr"] span[data-i18n="tr"],
html[lang="en"] span[data-i18n="en"] { display: inline; }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  flex: none;
}

.topbar-spacer { flex: 1; }

.langswitch {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.langswitch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.langswitch button:hover { color: var(--text); }

.langswitch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 96px;
}

.hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 14px;
}

.lede {
  font-size: 17px;
  color: var(--text-2);
  margin: 0;
  max-width: 62ch;
}

.meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 13px;
  color: var(--text-2);
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 11px;
  white-space: nowrap;
}

.chip b { color: var(--text); font-weight: 600; }

.cols {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- TOC ---------- */
.toc {
  position: sticky;
  top: 92px;
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 36px;
  }
}

.toc h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-3);
  margin: 0 0 12px;
  font-weight: 650;
}

.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }

.toc li { counter-increment: toc; }

.toc a {
  display: block;
  padding: 5px 0 5px 26px;
  color: var(--text-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  position: relative;
  transition: color .12s ease, border-color .12s ease;
}

.toc a::before {
  content: counter(toc);
  position: absolute;
  left: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.toc a:hover { color: var(--brand); }

.toc a.active {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}

.toc a.active::before { color: var(--brand); }

/* ---------- Content ---------- */
.doc { min-width: 0; }

section { margin-bottom: 44px; scroll-margin-top: 96px; }

h2.sec {
  font-size: 21px;
  letter-spacing: -0.015em;
  font-weight: 680;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

h2.sec .num {
  color: var(--brand);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  flex: none;
}

h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 26px 0 8px;
}

p { margin: 0 0 14px; }

ul, ol.list { margin: 0 0 16px; padding-left: 22px; }

li { margin-bottom: 7px; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }

strong { font-weight: 650; color: var(--text); }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- Tables ---------- */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0 0 18px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 14.5px;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-2);
  font-weight: 650;
  white-space: nowrap;
}

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

td b { font-weight: 640; }

/* ---------- Callouts ---------- */
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 18px;
  font-size: 15px;
}

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

.note .t {
  display: block;
  font-weight: 650;
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 5px;
  letter-spacing: -0.005em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

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

.fill {
  background: #fff8e1;
  border: 1px dashed #d9a441;
  color: #6b4c0a;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: .92em;
  font-weight: 600;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .fill { background: rgba(217, 164, 65, .12); color: #e8c67a; border-color: rgba(217, 164, 65, .5); }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 32px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
}

footer .topbar-spacer { flex: 1; }

footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Print ---------- */
@media print {
  .topbar, .toc, footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .cols { display: block; }
  .wrap { max-width: none; padding: 0; }
  section { page-break-inside: avoid; margin-bottom: 22px; }
  .card, .note, .tablewrap { box-shadow: none; }
  a { color: #000; }
}
