/* SpotKart yasal sayfalar. Renkler uygulamanın paletiyle aynı: açık "Fosforlu", koyu "Nöbet" (spotus src/tema.ts). */
/* Başlık yazı tipi: Bricolage Grotesque (SIL OFL 1.1, fonts/Bricolage-Grotesque-OFL.txt), bu siteden sunulur; üçüncü taraf yazı tipi sunucusu çağrılmaz. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f8fc;
  --raised: #ffffff;
  --text: #17203b;
  --text2: #55607a;
  --accent: #17203b;
  --ink: #17203b;
  --mark: #ffe24a;
  --line: #dce3ee;
  --warm-ink: #17203b;
  --warm-bg: rgba(255, 226, 74, 0.34);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1526;
    --raised: #13203a;
    --text: #e6ecf6;
    --text2: #97a6bf;
    --accent: #3cc8b4;
    --ink: #3cc8b4;
    --mark: #1e5d58;
    --line: #22324f;
    --warm-ink: #ffb547;
    --warm-bg: rgba(255, 181, 71, 0.14);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 0 16px 48px;
}

.top,
main,
footer {
  max-width: 720px;
  margin: 0 auto;
}

.top {
  padding: 20px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.lang,
.also {
  color: var(--text2);
  font-size: 0.95rem;
}

.also {
  text-align: center;
}

.brand {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: 2rem;
  margin: 16px 0 8px;
}

h2 {
  font-size: 1.35rem;
  margin: 40px 0 8px;
  scroll-margin-top: 16px;
}

h3 {
  font-size: 1.1rem;
  margin: 24px 0 4px;
}

p,
ul,
ol {
  margin: 12px 0;
}

li {
  margin: 6px 0;
}

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.meta {
  color: var(--text2);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.1rem;
}

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 20px;
  margin: 24px 0;
}

.card h2 {
  margin-top: 0;
}

.card ul {
  padding-left: 20px;
  margin-bottom: 4px;
}

.warm {
  background: var(--warm-bg);
  border-color: transparent;
}

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

.toc ol {
  padding-left: 20px;
  columns: 1;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text2);
  font-weight: 600;
  font-size: 0.85rem;
}

th:last-child,
td:last-child {
  width: 36%;
}

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

.hero {
  text-align: center;
  padding: 32px 0 8px;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 8px;
}

/* Fosforlu kalem işareti: markanın imzası (uygulamadaki "işaret" rengi). */
.mark {
  background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
  padding: 0 0.14em;
}

.links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.links a {
  display: block;
  padding: 16px 20px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.links a span {
  display: block;
  font-weight: 400;
  color: var(--text2);
  font-size: 0.95rem;
}

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

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text2);
  font-size: 0.9rem;
}

footer a {
  color: var(--text2);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  body {
    font-size: 18px;
  }
  h1 {
    font-size: 2.4rem;
  }
  .hero h1 {
    font-size: 3rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .toc,
  footer nav {
    display: none;
  }
}
