:root {
  color-scheme: light dark;
  --background: #f6f7f9;
  --surface: #ffffff;
  --text: #131720;
  --secondary: #5c6472;
  --accent: #1d63d1;
  --accent-soft: #e8f0fd;
  --line: #e0e4ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0d10;
    --surface: #14171c;
    --text: #eef1f6;
    --secondary: #9aa2b1;
    --accent: #6ea8fe;
    --accent-soft: #17263d;
    --line: #262b33;
  }
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* One document carries both languages; the switch flips the root lang. */
[data-language] { display: none; }
html[lang="tr"] [data-language="tr"],
html[lang="en"] [data-language="en"] { display: revert; }

.page {
  width: min(100% - 40px, 744px);
  margin: 0 auto;
  padding: 44px 0 72px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.mark {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  display: block;
}

.brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.publisher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--secondary);
  font-size: .82rem;
  font-weight: 650;
}

.publisher-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  background: #000;
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 24px;
}

h1 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.updated {
  margin: 6px 0 0;
  color: var(--secondary);
  font-size: .85rem;
}

.language-switch {
  display: flex;
  flex: none;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
  transition: background .16s, color .16s;
}

.language-switch button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.introduction,
.policy section {
  margin: 0 0 16px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.introduction p:first-child,
.policy section > :first-child { margin-top: 0; }
.introduction p:last-child,
.policy section > :last-child { margin-bottom: 0; }

h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

ul { margin: 0; padding-left: 22px; }
/* Scoped to the prose: the horizontal nav is a list too, and spacing every
   item after the first pushed each button a step lower than the one before. */
.policy li + li { margin-top: 8px; }

a { color: var(--accent); }

nav { margin-top: 26px; }

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.links a:hover { border-color: var(--accent); color: var(--accent); }

.callout {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.steps li {
  position: relative;
  padding-left: 38px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  color: var(--secondary);
  font-size: .85rem;
}

footer p { margin: 0; }

@media (max-width: 600px) {
  .page {
    width: min(100% - 32px, 744px);
    padding: 28px 0 48px;
  }

  .heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0 20px;
  }

  .introduction,
  .policy section { padding: 21px 20px; }

  footer { display: block; }
  footer p + p { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .language-switch button { transition: none; }
}
