/* ==========================================================================
   İskender Torunları İnşaat — hukuki metin sayfaları (çerez politikası, KVKK)
   ========================================================================== */

:root {
  --ink: #1e1e1c;
  --paper: #edeae4;
  --cream: #f7f5f0;
  --accent: #c2703e;
  --line: rgba(30, 30, 28, 0.13);
  --muted: rgba(30, 30, 28, 0.62);
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(30, 30, 28, 0.045) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.5;
}

a {
  color: inherit;
}

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

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ header */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 234, 228, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.legal-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

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

.brand > span {
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(30, 30, 28, 0.15);
  background: #fff;
  flex: none;
}

.brand-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(30, 30, 28, 0.22);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}

.back-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* -------------------------------------------------------------------- main */
.legal-main {
  padding: 46px 0 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(30, 30, 28, 0.45);
}

.crumbs a {
  text-decoration: none;
}

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

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  padding: 26px 0 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.legal-meta {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 30, 28, 0.45);
}

.legal-lead {
  margin: 22px 0 0;
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(30, 30, 28, 0.72);
}

.legal-article section {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-article h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: -0.015em;
  scroll-margin-top: 100px;
}

.legal-article h3 {
  margin: 22px 0 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.legal-article p {
  margin: 0 0 14px;
  max-width: 72ch;
  color: rgba(30, 30, 28, 0.74);
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 16px;
  padding-left: 20px;
  max-width: 72ch;
  color: rgba(30, 30, 28, 0.74);
}

.legal-article li {
  margin-bottom: 7px;
}

.legal-article strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-article a {
  color: #9c5427;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------------- table */
.table-wrap {
  margin: 6px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--cream);
}

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

caption {
  caption-side: bottom;
  padding: 10px 12px;
  font-size: 11.5px;
  color: rgba(30, 30, 28, 0.5);
  text-align: left;
}

th,
td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(30, 30, 28, 0.1);
}

thead th {
  background: rgba(30, 30, 28, 0.05);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(30, 30, 28, 0.6);
  font-weight: 600;
  white-space: nowrap;
}

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

td code,
p code {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 2px 5px;
  background: rgba(30, 30, 28, 0.06);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- callout */
.callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(194, 112, 62, 0.35);
  border-left: 3px solid var(--accent);
  background: rgba(194, 112, 62, 0.08);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(30, 30, 28, 0.78);
}

.callout p {
  margin: 0 0 10px;
  color: inherit;
}

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

.callout strong {
  color: var(--ink);
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 11px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.btn-inline:hover {
  background: #ad6134;
}

.btn-inline:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------- toc */
.toc {
  display: none;
  align-self: start;
  position: sticky;
  top: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.toc-title {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(30, 30, 28, 0.5);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 7px;
  font-size: 12.5px;
  line-height: 1.45;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero) " ";
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.toc a {
  color: rgba(30, 30, 28, 0.68);
  text-decoration: none;
}

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

/* ----------------------------------------------------------------- footer */
.legal-footer {
  margin-top: 60px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.legal-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(30, 30, 28, 0.45);
}

.legal-footer .it-legal-links {
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .legal-main {
    padding-top: 58px;
  }

  .legal-grid {
    grid-template-columns: minmax(0, 1fr) 268px;
    grid-template-areas: "article toc";
    gap: 64px;
  }

  .legal-article {
    grid-area: article;
    min-width: 0;
  }

  .toc {
    display: block;
    grid-area: toc;
  }

  .legal-footer .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .legal-header .wrap {
    min-height: 70px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 13px;
    letter-spacing: 0.01em;
  }

  .brand-sub {
    display: none;
  }

  .back-link {
    padding: 9px 11px;
    font-size: 9px;
    letter-spacing: 0.08em;
    gap: 6px;
  }

  .legal-main {
    padding-top: 32px;
  }

  .legal-meta {
    font-size: 9px;
    letter-spacing: 0.08em;
    line-height: 1.9;
  }

  .legal-lead {
    font-size: 15.5px;
  }

  .legal-grid {
    gap: 32px;
  }
}

@media print {
  .legal-header,
  .toc,
  .legal-footer,
  .crumbs,
  .btn-inline {
    display: none !important;
  }

  body::before {
    display: none;
  }

  body {
    background: #fff;
  }

  .legal-grid {
    display: block;
  }
}
