/* Montro yasal sayfaları: tek stil dosyası, harici kaynak yok. Renkler
   uygulamanın açık/koyu token'larıyla aynı (lib/core/theme/montro_colors.dart). */

:root {
  color-scheme: light dark;
  --bg: #faf7f1;
  --card: #ffffff;
  --strong: #1a1712;
  --body: #2c2820;
  --muted: #635a4b;
  --brand: #2e7d67;
  --link: #236355;
  --border: #e7decf;
  --soft: #ecf5f1;
  --focus: #459880;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --card: #1f1c17;
    --strong: #f5f1ea;
    --body: #e4ded3;
    --muted: #ada392;
    --link: #72b7a1;
    --border: #2e2a23;
    --soft: #1b2e28;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Bağlantılar ve odak */

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 1;
}

.skip:focus {
  top: 1rem;
}

/* Üst bilgi */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--strong);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--strong);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}

/* İçerik */

main {
  padding: 2.5rem 0 3.5rem;
}

h1,
h2,
h3 {
  color: var(--strong);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.3125rem;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
}

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

ul,
ol {
  padding-left: 1.375rem;
}

li + li {
  margin-top: 0.375rem;
}

strong {
  color: var(--strong);
}

code {
  padding: 0.1em 0.35em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--strong);
}

.note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--soft);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
}

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

.note h2 {
  margin-top: 0;
  font-size: 1.0625rem;
}

/* İşleme faaliyeti kartı (KVKK): dar ekranda da tablo gibi kaymaz. */

.activity {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.activity h3 {
  margin-top: 0;
}

.activity dl {
  margin: 0;
}

.activity dt {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.activity dt:first-child {
  margin-top: 0;
}

.activity dd {
  margin: 0.125rem 0 0;
}

/* Ana sayfa bağlantı kartları */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.cards li + li {
  margin-top: 0;
}

.cards a {
  display: block;
  height: 100%;
  padding: 1.125rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--body);
  text-decoration: none;
}

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

.cards strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--strong);
  font-size: 1.0625rem;
}

/* Alt bilgi */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.75rem;
  }

  main {
    padding-top: 2rem;
  }
}

@media print {
  .skip,
  .site-nav {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}
