/* Cockpit yasal sayfalar. Renkler uygulamanın markasıyla aynı: gece zemini + neon yeşil vurgu. Yalnız koyu tema. */
/* Yazı tipi: Archivo (SIL OFL 1.1), rexxstudio.app'in kendi /assets klasöründen sunulur; üçüncü taraf yazı tipi sunucusu çağrılmaz. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07090c;
  --raised: #10141a;
  --text: #f2f5f3;
  --text2: #9aa3a0;
  --accent: #3dff78;
  --on-accent: #07090c;
  --line: rgba(242, 245, 243, 0.1);
  --glow: rgba(61, 255, 120, 0.22);
  --tint: rgba(61, 255, 120, 0.07);
  --tint-line: rgba(61, 255, 120, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

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

.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;
}

.brand {
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  vertical-align: 0.12em;
}

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

h1,
h2,
h3 {
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.2;
  letter-spacing: -0.01em;
  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.08rem;
  font-weight: 700;
  margin: 24px 0 4px;
  scroll-margin-top: 16px;
}

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

li {
  margin: 6px 0;
}

strong {
  font-weight: 700;
}

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

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

.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: 18px;
  padding: 16px 20px;
  margin: 24px 0;
}

.card h2 {
  margin-top: 0;
}

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

.safe {
  background: var(--tint);
  border-color: var(--tint-line);
}

.safe strong.label {
  color: var(--accent);
}

.toc ol {
  padding-left: 22px;
}

.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%;
  min-width: 300px;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

th:first-child,
td:first-child {
  width: 46%;
}

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

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

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

.hero img {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 25px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 48px var(--glow);
}

.hero h1 {
  font-size: 2.6rem;
  font-stretch: 115%;
  margin-bottom: 4px;
}

.hero .lead {
  color: var(--text2);
  max-width: 34em;
  margin: 8px auto 0;
}

.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: 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

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

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

.en {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.en h2 {
  margin-top: 24px;
}

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

footer p {
  margin: 6px 0;
}

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

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

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

@media print {
  html,
  body {
    background: #fff;
    color: #000;
  }
  a {
    color: #000;
  }
  .card,
  .table-wrap {
    background: #fff;
  }
  .toc,
  footer nav {
    display: none;
  }
}
