/* Yasal sayfalar ve 404 için bağımsız stil (React paketine bağlı değil). Renkler ve
   yazı tipleri ana sitenin tasarım token'larıyla aynıdır. */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --g100: #f5f5f5;
  --g200: #e5e5e5;
  --g400: #a3a3a3;
  --g600: #525252;
  --g800: #262626;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.site-header {
  background: var(--black);
  color: var(--white);
  padding-block: 1rem;
}

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

.site-header__logo {
  height: 34px;
  width: auto;
  filter: invert(1);
}

.site-header__back {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--white);
  border-radius: 999px;
}

.site-header__back:hover {
  background: var(--white);
  color: var(--black);
}

main {
  flex: 1;
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--g600);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
}

.breadcrumb a {
  text-underline-offset: 2px;
}

.doc {
  max-width: 760px;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.doc__meta {
  color: var(--g600);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
}

.doc p,
.doc li,
.doc td,
.doc th {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.75;
  color: #262626;
}

.doc p + p {
  margin-top: 0.85rem;
}

.doc ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: 0.5rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc a {
  text-underline-offset: 2px;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border: 1px solid var(--g200);
  border-radius: 0.75rem;
}

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

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--g200);
}

th {
  background: var(--g100);
  font-weight: 700;
}

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

.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: 2rem;
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

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

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer p {
  color: var(--g400);
}

/* 404 */
.notfound {
  text-align: center;
  padding-block: clamp(2rem, 8vw, 5rem);
}

.notfound__code {
  font-size: clamp(5rem, 22vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.notfound p {
  font-family: var(--font-body);
  color: var(--g600);
  margin: 1rem auto 2rem;
  max-width: 44ch;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--black);
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

/* Çerez bannerı (public/consent.js) — ana sitedeki CookieConsent ile aynı görünüm */
body {
  padding-bottom: var(--cookie-banner-h, 0px);
}

.cookie-consent {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--white);
  color: var(--black);
  border-top: 1px solid #d4d4d4;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  font-family: var(--font-body);
}

.cookie-consent > * {
  max-width: 1100px;
  margin-inline: auto;
}

.cookie-consent:focus {
  outline: none;
}

.cookie-consent__title {
  font-size: 1rem;
  margin: 0 auto 0.4rem;
}

.cookie-consent__text,
.cookie-consent__row p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--g600);
}

.cookie-consent__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__prefs {
  display: flex;
  flex-direction: column;
}

.cookie-consent__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--g200);
  cursor: pointer;
}

.cookie-consent__row strong {
  font-size: 0.9rem;
}

.cookie-consent__row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--black);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.cookie-consent__btn {
  min-width: 8.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: var(--black);
}

@media (max-width: 560px) {
  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__btn--ghost {
    grid-column: 1 / -1;
    order: 3;
  }

  .cookie-consent__btn {
    min-width: 0;
  }
}
