/* Strony prawne, pomoc, licencje i testerzy Pocket Mosaic (przeniesione 8.11.2026 z sebastianbrzezinskiapps.web.app).
   Układ jak dawniej (wąska kolumna, karty z wierszami), kolory i krój z marki. */

@font-face { font-family: "Nunito"; src: url("/nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #13253a;
  --muted: #5e6e80;
  --line: #e3e9f0;
  --accent: #00529C;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(19, 37, 58, .04), 0 8px 24px rgba(19, 37, 58, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --card: #18212c;
    --text: #eef3f8;
    --muted: #9aa9b8;
    --line: #263241;
    --accent: #7ECCFE;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 28px;
  flex: 1;
}

h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
h2 { font-size: 1.15rem; font-weight: 800; margin: 32px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--muted); }

.muted { color: var(--muted); font-size: .875rem; }

/* Powrót na stronę główną (logo marki) */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}
.back::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("/ikona.png") center / contain no-repeat;
  border-radius: 6px;
}
.back:hover { text-decoration: underline; }

/* Nagłówek sekcji */
.label {
  font-size: .8125rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 36px 0 10px 4px;
}

/* Karta z wierszami */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 20px;
  margin-bottom: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.row:first-child { border-top: 0; }
a.row:hover .name { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1);
}
.row .text { flex: 1; min-width: 0; }
.row .name { font-weight: 800; }
.row .desc { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.row .chev { color: var(--muted); font-size: 1.2rem; }

/* Stopka */
.links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .875rem;
  margin-top: 36px;
}
.links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.links a:hover { color: var(--text); }
.copy { text-align: center; color: var(--muted); font-size: .8125rem; margin-top: 10px; }

/* Licencje */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.chip {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
}
.chip:hover { border-color: var(--muted); }

.island-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 10px;
}
.island-head img { width: 34px; height: 34px; border-radius: 9px; }
.island-head h2 { margin: 0; flex: 1; }

.place { border-top: 1px solid var(--line); padding: 12px 0; }
.place h3 { font-size: .95rem; font-weight: 800; margin: 0 0 4px; }
.credit { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.credit .who { color: var(--text); }
.credit a { color: var(--muted); }
