/* Shared look of the public legal pages — privacy-policy, kvkk-aydinlatma-metni,
   terms and support. Plain static HTML (no React, no build step) so app-store
   reviewers and crawlers that run no JavaScript see every word. Palette and
   fonts are the home page's (public/index.html, tools/tw); keep them in step. */
:root {
  --bg: #0F1117;
  --surface: #1A1D27;
  --elevated: #242836;
  --border: #2E3347;
  --text: #E8EAED;
  --muted: #8B8FA3;
  --brand: #4A8FE7;
  --brand-light: #6BA3ED;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.65;
}
a { color: var(--brand-light); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2E3347; border-radius: 3px; }

/* Header — the home page's bar, without its tabs. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(15,17,23,0.85);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.site-header .bar {
  max-width: 1200px; margin: 0 auto; height: 56px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; transition: transform .15s; }
.brand:hover img { transform: scale(1.1); }
.brand span {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600;
  font-size: 14px; letter-spacing: .025em;
}

/* The document. A card on wide screens; edge to edge on a phone, where the
   card's margins and padding would only narrow the text. */
main { flex: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: 32px 16px 40px; }
.doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px;
}
h1, h2, h3 { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #fff; line-height: 1.3; }
h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
h2 { font-size: 17px; font-weight: 600; margin: 36px 0 10px; padding-top: 20px; border-top: 1px solid var(--border); }
h2.first { border-top: 0; padding-top: 0; margin-top: 20px; }
h3 { font-size: 14.5px; font-weight: 600; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--muted); }
strong { color: #fff; font-weight: 600; }
a strong { color: inherit; }
.meta { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.lead { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
address { font-style: normal; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }

/* Contents list at the top of a long page. */
.toc {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin: 20px 0 8px;
}
.toc p { margin: 0 0 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; columns: 2 220px; column-gap: 28px; font-size: 14px; }
.toc li { margin: 3px 0; break-inside: avoid; }

/* Boxed fact list (who we are, contact). */
.facts {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin: 12px 0 16px;
}
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { color: var(--muted); font-size: 13.5px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.note {
  border-left: 3px solid var(--brand); background: rgba(74,143,231,0.08);
  border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 12px 0 16px;
}
.note p:last-child { margin-bottom: 0; }

/* Tables (data categories, partners). On a phone each row becomes a small
   card: the first cell is its title, the rest follow underneath. */
.table-wrap { margin: 12px 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--border);
}
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
td:first-child { color: #fff; font-weight: 600; }
tr.group td {
  padding-top: 16px; color: var(--muted); font-weight: 500; font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
td a { white-space: nowrap; }
td:last-child a { display: block; }

ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 38px; margin: 10px 0; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  font: 600 13px/26px 'JetBrains Mono', ui-monospace, monospace; text-align: center;
}

.faq h3 { margin-top: 18px; }

/* KVKK's own lettering (a, b, c, ç, d … ğ), which list-style cannot produce. */
ol.lettered { list-style: none; padding-left: 0; }
ol.lettered > li { position: relative; padding-left: 26px; }
ol.lettered > li > span:first-child { position: absolute; left: 0; color: var(--muted); }

/* Footer — the home page's, plus the legal links. Keep the name, address and
   email in step with public/index.html and LEGAL in public/src/index.jsx. */
.site-footer {
  border-top: 1px solid var(--border); padding: 16px; text-align: center;
  font-size: 12px; color: var(--muted); line-height: 1.6;
  background: rgba(15,17,23,0.85);
}
.site-footer .legal-name { color: var(--text); font-weight: 600; max-width: 48rem; margin: 0 auto; }
.site-footer address { margin: 4px auto 0; max-width: 46rem; }
.site-footer .links { margin-top: 8px; }
.site-footer a { color: var(--brand-light); }
.site-footer .links a { display: inline-block; padding: 2px 0; }
.site-footer .links a[aria-current="page"] { color: var(--text); }
.site-footer .sep { margin: 0 6px; opacity: .6; }

@media (max-width: 640px) {
  main { padding: 0 0 24px; }
  .doc { border: 0; border-radius: 0; padding: 22px 16px; background: transparent; }
  h1 { font-size: 21px; }
  h2 { font-size: 16px; margin-top: 30px; }
  .facts dl { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 8px; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; background: var(--surface); }
  td { border: 0; padding: 2px 0; }
  td:first-child { margin-bottom: 2px; }
  tr.group { border: 0; background: none; padding: 8px 0 0; margin: 0; }
  tr.group td { padding: 0; }
}
