/* getleylek.com yasal ve destek sayfaları. Scripts/build-site.py üretir; elle düzenleme.
   Renkler ve yazı tipleri index.html'dekilerle aynı (uygulamanın SharedAssets ve Typography.swift değerleri). */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #FFF7EF;
  --card: #FFFFFF;
  --line: #F2DFD2;
  --rule: #E2CFC4;
  --ink: #3A1E2C;
  --ink-2: #74505D;
  --ink-3: #8A6A75;
  --coral: #C73B2F;
  --on-coral: #FFFFFF;
  --shadow: rgba(58, 30, 44, 0.12);
  --chip: #3A1E2C;
  --on-chip: #FFFFFF;
  --stamp-paper: #FFFBF5;
  --stamp-art: #1F6AA8;
  --paper-white: #FFFFFF;

  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1A1114; --card: #261A1F; --line: #3B2A31; --rule: #4A3740;
    --ink: #FBEFE7; --ink-2: #D3BAC1; --ink-3: #B49BA4; --coral: #FF8D7A; --on-coral: #2A0E0B;
    --shadow: rgba(0, 0, 0, 0.35); --chip: #FBEFE7; --on-chip: #261A1F;
    color-scheme: dark;
  }
}

/* 404 iki dilli; dil kökteki data-lang'den. */
:root[data-lang="en"] .t-tr { display: none; }
:root:not([data-lang="en"]) .t-en { display: none; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
a { color: var(--coral); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }

.wrap {
  min-height: 100vh;
  max-width: 860px;
  margin-inline: auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header: ana sayfanınkiyle aynı; dil düğmeleri karşı dildeki sayfaya gider. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: -0.01em; }
.logo { display: block; fill: currentColor; }
.brand .logo { width: 47px; height: 26px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; }
.lang a {
  font: 700 12px/1 var(--body);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 11px;
}
.lang a[aria-current] { background: var(--chip); color: var(--on-chip); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--coral); color: var(--on-coral); font: 800 14px/1 var(--display); text-decoration: none; }
.store svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The sheet: one postcard-white card with the app's postage stamp in the corner. */
main { flex: 1; }
.sheet {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 1px 0 var(--line), 0 14px 36px var(--shadow);
  padding: clamp(24px, 5vw, 56px);
}
/* The stamp floats, so short titles and the first lines of text wrap around it. */
.postage {
  float: right;
  margin: 0 0 14px 20px;
  width: 64px;
  height: 80px;
  padding: 5px;
  background: radial-gradient(circle, transparent 3px, var(--stamp-paper) 3.5px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 1px 2px var(--shadow));
  transform: rotate(4deg);
}
.postage-art { height: 100%; background: var(--stamp-art); display: flex; align-items: center; justify-content: center; }
.postage .logo { width: 46px; height: 26px; color: var(--paper-white); }
.sheet h2, .summary, .table, .faq { clear: both; }

.sheet h1 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.updated { color: var(--ink-3); font-size: 14px; }
.sheet h2 { margin: 38px 0 10px; font-weight: 800; font-size: 1.4rem; line-height: 1.25; scroll-margin-top: 16px; }
.sheet p { margin: 0 0 12px; }
.sheet ul, .sheet ol { margin: 0 0 14px; padding-left: 1.3em; }
.sheet li { margin: 6px 0; }
.sheet li::marker { color: var(--coral); }
.sheet ol > li { margin: 16px 0; padding-left: 4px; }
.sheet ol > li::marker { font-family: var(--display); font-weight: 800; }
.sheet li ul { margin: 8px 0 0; }
.sheet strong { font-weight: 700; }
.sheet .lede { font-size: 18px; color: var(--ink-2); }

/* "Kısaca": the address side of a postcard, a dashed box before the details. */
.summary { margin: 22px 0 8px; padding: 18px 22px 8px; border: 1.5px dashed var(--rule); border-radius: 16px; }
.summary h2 { margin: 0 0 6px; font-size: 1.1rem; }

.table { margin: 4px 0 14px; overflow-x: auto; border: 1.5px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th { text-align: left; font: 700 12px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--page); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }

/* Support: contact button and an FAQ that opens one answer at a time. */
.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 4px;
  padding: 12px 18px 12px 15px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--on-chip);
  font: 700 15px/1 var(--body);
  text-decoration: none;
}
.mail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faq { margin-top: 6px; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary {
  position: relative;
  padding: 15px 36px 15px 0;
  font: 800 1.08rem/1.35 var(--display);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > p { color: var(--ink-2); }
.faq details > p:last-child { margin-bottom: 16px; }

.foot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot nav a:hover, .foot nav a[aria-current] { color: var(--ink); text-decoration: underline; }
.fine { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; }

.lost { text-align: center; padding-block: clamp(32px, 8vw, 72px); }
.lost .sheet h1 { margin: 0 0 10px; }
.lost .logo-big { width: 120px; height: 66px; margin: 0 auto 18px; color: var(--coral); }

@media (max-width: 600px) {
  .store span { display: none; }
  .store { padding: 8px; }
  .postage { width: 52px; height: 64px; padding: 4px; }
  .postage .logo { width: 36px; height: 20px; }
  .table { border: 0; overflow: visible; }
  .table thead { display: none; }
  .table tr { display: block; margin-bottom: 10px; padding: 4px 14px; border: 1.5px solid var(--line); border-radius: 14px; }
  .table td { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); }
  .table td::before { content: attr(data-label); display: block; font: 700 11px/1.4 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .table tr td:last-child { border-bottom: 0; }
}
@media print {
  body { background: #fff; color: #000; }
  .top, .foot, .postage { display: none; }
  .sheet { box-shadow: none; padding: 0; }
  .faq details > p { display: block; }
}
