/*
  Gizlilik ve Destek: sakin okuma sayfaları. Dar bir sütun, geniş satır aralığı, tek bir küçük orb.
  Ortak token'lar, gezinme ve alt bilgi site.css'te.
*/

.doc-page {
  --glow: 0.22;
}

@media (prefers-color-scheme: dark) {
  .doc-page {
    --glow: 0.12;
  }
}

/* Bu sayfalarda kaydırma betiği yok; gezinme çubuğu her zaman buzlu cam. */
.doc-page .nav {
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--hairline);
}

.doc {
  padding: calc(128px + env(safe-area-inset-top)) 0 clamp(96px, 12vw, 160px);
}

.doc__inner {
  max-width: calc(44rem + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.doc__orb {
  --d: 52px;
  --c: #a2dcaf;
  margin-bottom: 36px;
}

.doc .eyebrow {
  margin-bottom: 14px;
}

.doc h1 {
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.8rem);
  font-weight: 430;
}

.doc__meta {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.doc__summary {
  margin-top: 36px;
  padding: 26px 28px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--surface-border), var(--shadow);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text);
}

.doc section {
  margin-top: 60px;
}

.doc h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  font-optical-sizing: auto;
  font-weight: 450;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  scroll-margin-top: 96px;
}

.doc h3 {
  margin: 28px 0 8px;
  font-weight: 800;
  font-size: 1.05rem;
}

.doc p,
.doc li,
.doc td {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text-2);
}

.doc p + p {
  margin-top: 14px;
}

.doc strong {
  color: var(--text);
  font-weight: 800;
}

.doc a:not(.pill):not(.brand) {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent);
  transition: text-decoration-color 0.2s;
}

.doc a:not(.pill):not(.brand):hover {
  text-decoration-color: currentColor;
}

.doc ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.doc ul li {
  position: relative;
  padding-left: 26px;
}

.doc ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: var(--blob);
  background: var(--b, #a2dcaf);
}

.doc ul li:nth-child(4n + 2)::before {
  --b: #91d9d6;
}

.doc ul li:nth-child(4n + 3)::before {
  --b: #b9b8f6;
}

.doc ul li:nth-child(4n + 4)::before {
  --b: #e7d480;
}

/* Ne, nerede tablosu: dar ekranda yatayda kayar. */
.doc-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.doc-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

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

.doc-table th {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface);
}

.doc-table td:first-child {
  color: var(--text);
  font-weight: 700;
}

/* Sık sorulanlar: yerel details/summary; klavye ve ekran okuyucu kendiliğinden çalışır. */
.faq {
  margin-top: 18px;
  border-bottom: 1px solid var(--hairline);
}

.faq details {
  border-top: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  font-weight: 450;
  font-size: 1.28rem;
  line-height: 1.3;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.45s var(--ease), translate 0.45s var(--ease);
}

.faq details[open] summary::after {
  rotate: 225deg;
  translate: 0 3px;
}

.faq summary:focus-visible {
  outline-offset: 2px;
}

.faq__body {
  padding: 0 4px 24px;
}

/* Dar ekranda tablo satırları etiketli kartlara dönüşür; yana kaydırma gerekmez. */
@media (max-width: 640px) {
  .doc-table {
    min-width: 0;
  }

  .doc-table thead {
    display: none;
  }

  .doc-table tr {
    display: block;
    padding: 16px 18px;
    border-bottom: 1px solid var(--hairline);
  }

  .doc-table tr:last-child {
    border-bottom: 0;
  }

  .doc-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .doc-table td:first-child {
    margin-bottom: 6px;
  }

  .doc-table td:not(:first-child)::before {
    content: attr(data-label) ': ';
    font-weight: 800;
    color: var(--text);
  }
}

.contact {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 36px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--surface-border), var(--shadow);
}

.contact p {
  margin: 0;
}

.doc__fine {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}
