:root {
  --paper: #fffdf9;
  --cream: #f7f1e8;
  --ink: #292421;
  --muted: #6c625d;
  --pink: #e8a9b7;
  --pink-dark: #9e6570;
  --line: #eadfd8;
  --warning: #fff4d8;
  --warning-border: #d49a28;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}
a { color: var(--pink-dark); text-underline-offset: 3px; }
a:hover { color: #734650; }
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, .96);
  backdrop-filter: blur(10px);
}
.legal-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; }
.legal-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 14px; }
.legal-nav a { color: var(--ink); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--pink-dark); font-weight: 750; }
.legal-shell { width: min(940px, calc(100% - 32px)); margin: 32px auto 64px; }
.legal-hero, .legal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(94, 67, 59, .06);
}
.legal-hero { padding: clamp(26px, 5vw, 52px); margin-bottom: 20px; }
.legal-eyebrow { margin: 0 0 8px; color: var(--pink-dark); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
h1 { margin: 0 0 12px; font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.legal-lead { margin: 0; color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); }
.legal-updated { display: inline-block; margin-top: 18px; padding: 6px 10px; border-radius: 999px; background: #f6dce3; font-size: 13px; font-weight: 700; }
.legal-card { padding: clamp(22px, 4vw, 42px); }
.legal-card section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: clamp(21px, 3.6vw, 27px); line-height: 1.24; }
h3 { margin: 20px 0 8px; font-size: 18px; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 7px; }
.seller-box, .summary-box, .notice {
  margin: 18px 0;
  padding: 18px;
  border-radius: 14px;
}
.seller-box, .summary-box { background: #f9eef1; border: 1px solid #efcbd3; }
.notice { background: #f9eef1; border: 1px solid #efcbd3; }
.notice strong { display: block; margin-bottom: 4px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legal-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--pink-dark);
  color: white;
  font-weight: 800;
  text-decoration: none;
}
.legal-actions a:hover { background: #734650; color: white; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: #f9eef1; }
.legal-footer { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.legal-footer p { margin: 4px 0; }
.form-template { border: 1px dashed #bdabb0; border-radius: 12px; padding: 20px; background: white; }
.form-line { margin: 18px 0; border-bottom: 1px solid #9d9490; min-height: 24px; }
.print-button { display: inline-flex; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--ink); color: white; font: inherit; font-weight: 750; cursor: pointer; }

/* Stopka dodawana do aplikacji React. */
#biologiczne-legal-footer {
  width: 100%;
  padding: 28px 16px;
  background: #fffdf9;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
}
#biologiczne-legal-footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 10px; }
#biologiczne-legal-footer a { color: var(--pink-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#biologiczne-legal-footer p { margin: 4px 0; }

@media (max-width: 680px) {
  .legal-header { position: static; align-items: flex-start; flex-direction: column; }
  .legal-nav { justify-content: flex-start; }
  .legal-shell { width: min(100% - 20px, 940px); margin-top: 14px; }
  .legal-card { border-radius: 14px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
  .legal-table td { border: 0; border-bottom: 1px solid var(--line); }
  .legal-table td:last-child { border-bottom: 0; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .legal-header, .print-button, .notice, .legal-actions { display: none !important; }
  .legal-shell { width: 100%; margin: 0; }
  .legal-hero, .legal-card { border: 0; box-shadow: none; padding: 0; }
  .legal-card section { break-inside: avoid; }
}
