/* Im Hintergrund — Bio (publiczność 50+: duży tekst, kontrast, duże cele kliknięcia) */
:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #1a1a1a;
  --mut: #4a4a4a;
  --line: #ddd6c8;
  --accent: #2c4a3e;
  --accent2: #1e352c;
  --tip: #8b6914;
  --tip2: #6e5210;
  --focus: #0b57d0;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(26, 26, 26, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

/* Header */
.brand {
  text-align: center;
  margin-bottom: 22px;
}

.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  color: var(--mut);
  font-size: 1.05rem;
}

/* Sections */
.section {
  margin: 22px 0 8px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: center;
}

/* Buttons / links */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 650;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: #faf8f4;
  border-color: #cfc6b4;
}

.btn:active {
  transform: scale(0.99);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn .icon {
  flex-shrink: 0;
  width: 1.35em;
  height: 1.35em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}

.btn-tip {
  background: var(--tip);
  border-color: var(--tip);
  color: #fff;
}

.btn-tip:hover {
  background: var(--tip2);
  border-color: var(--tip2);
  color: #fff;
}

.btn[aria-disabled="true"],
.btn.is-placeholder {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--mut);
}

/* Footer legal */
footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.95rem;
  color: var(--mut);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 10px;
}

footer a {
  color: var(--mut);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

/* Legal pages */
.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.legal h1 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 1.02rem;
}

.legal a {
  color: var(--accent2);
}

.ph {
  background: #fff4d6;
  padding: 0 4px;
  border-radius: 3px;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--accent2);
}

.note-box {
  background: #fff8e6;
  border: 1px solid #e6d8a8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  margin: 0 0 20px;
}

@media (min-width: 480px) {
  body {
    font-size: 19px;
  }
  .wrap {
    padding-top: 40px;
  }
}
