/* Acente Cloud — hukuki metin sayfaları (/gizlilik/, /kullanim-kosullari/, /hesap-silme/).
   Statik; Vite derlemesine girmez (public/ olduğu gibi kopyalanır). Renkler src/index.css ile aynı belirteçler. */

:root {
  --color-primary: #0b5fa5;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-border: #e2e8f0;
  --color-brand-cloud: #f97316;
  --color-warning-soft: #fef3c7;
  --color-warning-line: #d97706;
  --color-warning-text: #78350f;
  --color-ph: #ffedd5;
  --color-ph-text: #9a3412;
  --color-focus: #0b5fa5;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #60a5e8;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-bg: #0b1120;
    --color-surface: #111a2e;
    --color-surface-alt: #0e1627;
    --color-border: #1e293b;
    --color-brand-cloud: #ff9a4d;
    --color-warning-soft: #3a2a0a;
    --color-warning-line: #fbbf24;
    --color-warning-text: #fde68a;
    --color-ph: #3b1d0a;
    --color-ph-text: #fdba74;
    --color-focus: #93c5fd;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: var(--color-primary);
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.lg-wrap {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Üst bilgi */
.lg-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.lg-header .lg-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.lg-brand img {
  display: block;
  width: auto;
  height: 32px;
}

.lg-accent {
  color: var(--color-brand-cloud);
}

.lg-home {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.lg-home:hover {
  text-decoration: underline;
}

/* İçerik */
main {
  padding-block: 32px 56px;
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 800;
}

h2 {
  margin: 2.2em 0 0.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--color-border);
  font-size: 1.35rem;
}

h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.1rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

.lg-meta {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.lg-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.draft-note {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--color-warning-line);
  border-radius: 0 10px 10px 0;
  background: var(--color-warning-soft);
  color: var(--color-warning-text);
  font-weight: 600;
}

.callout {
  margin: 0 0 1.2em;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.callout > :last-child {
  margin-bottom: 0;
}

/* Yer tutucu: hukuki inceleme / şirket bilgisiyle doldurulacak */
.ph {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--color-ph);
  color: var(--color-ph-text);
  font-weight: 600;
}

.toc {
  margin: 0 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.toc p {
  margin: 0 0 6px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  columns: 2 240px;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
}

/* Tablolar: dar ekranda yatay kaydırma kutunun içinde */
.table-wrap {
  margin: 0 0 1.2em;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

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

th {
  background: var(--color-surface-alt);
  font-weight: 700;
}

/* Dar ekranda iki sütunlu tablolar satır satır okunur (yatay kaydırma yok) */
@media (max-width: 600px) {
  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr,
  td {
    display: block;
  }

  td:first-child {
    padding-bottom: 2px;
    border-bottom: 0;
    font-weight: 700;
  }

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

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 40px;
}

.steps li + li {
  margin-top: 10px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

@media (prefers-color-scheme: dark) {
  .steps li::before {
    color: #04182b;
  }
}

.letters {
  list-style: none;
  padding-left: 0;
}

.letters li {
  position: relative;
  padding-left: 1.8em;
}

.letters li > span {
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-text-muted);
}

.path {
  font-weight: 700;
  white-space: nowrap;
}

/* Alt bilgi */
.lg-footer {
  padding-block: 28px 36px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.lg-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.lg-footer li + li {
  margin-top: 0;
}

.lg-footer a {
  color: var(--color-text);
  text-decoration: none;
}

.lg-footer a:hover,
.lg-footer a[aria-current='page'] {
  color: var(--color-primary);
  text-decoration: underline;
}

.lg-footer p {
  margin: 0;
}

@media print {
  .lg-header,
  .lg-footer,
  .skip-link,
  .toc {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
