/* ============================================================
   MILONOR — Legal pages (regulamin, polityka prywatności)
   Shares design tokens with the main site and Kreator.
   ============================================================ */
:root {
  --bg:            #0A0B10;
  --bg-elev:       #10111A;
  --bg-elev-2:     #151620;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --fg:            #E8EAF0;
  --fg-muted:      #9499AB;
  --fg-dim:        #6B7080;

  --accent:        #2563EB;
  --accent-2:      #1E3A8A;
  --accent-soft:   rgba(37, 99, 235, 0.12);
  --accent-glow:   rgba(37, 99, 235, 0.40);
  --accent-fg:     #FFFFFF;

  --grad-accent:   linear-gradient(120deg, #3B82F6 0%, #2563EB 100%);

  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     26px;

  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --maxw:          1180px;
  --maxw-legal:    800px;

  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-fg); }

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(560px 420px at 78% -5%, rgba(37, 99, 235,0.11), transparent 70%),
    radial-gradient(520px 460px at 8% 12%, rgba(30, 58, 138,0.09), transparent 70%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }

/* ---- Logo (shared by nav + footer) ---- */
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo img { height: 26px; width: auto; display: block; }
.logo b { font-weight: 700; }
.logo .dot { color: var(--accent); }

/* ---- Nav (sticky, same pattern as Kreator) ---- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 16, 0.78); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.nav-right-legal { display: flex; align-items: center; gap: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.back-link:hover { color: var(--fg); }
.back-link svg { width: 16px; height: 16px; }
.account-menu { position: relative; }
.account-link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--fg); transition: border-color 0.2s ease; flex-shrink: 0; }
.account-link:hover { border-color: var(--accent); }
.account-link svg { width: 19px; height: 19px; flex-shrink: 0; }
.account-link.logged-in { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(37,99,235,0.25); }
.account-name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 500; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.account-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px; z-index: 200;
  background: rgba(16, 17, 26, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.account-dropdown a, .account-dropdown button {
  display: block; width: 100%; text-align: left; padding: 10px 20px; font-size: 0.9rem; color: var(--fg);
  font-family: var(--font-body); transition: background 0.15s ease;
}
.account-dropdown a:hover, .account-dropdown button:hover { background: rgba(37,99,235,0.08); }
@media (max-width: 480px) {
  .account-name { display: none !important; }
  .account-dropdown { right: -10px; min-width: 220px; }
}

.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--fg); transition: border-color 0.2s ease; flex-shrink: 0; }
.cart-link:hover { border-color: var(--accent); }
.cart-link svg { width: 19px; height: 19px; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--grad-accent); color: #fff; font-size: 0.66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- Page header ---- */
.legal-hero { padding: 46px 0 8px; max-width: var(--maxw-legal); margin: 0 auto; }
.legal-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 12px; }
.legal-updated { color: var(--fg-dim); font-size: 0.9rem; margin-bottom: 36px; }

/* ---- Legal content ---- */
.legal-content { max-width: var(--maxw-legal); margin: 0 auto; padding: 0 0 100px; position: relative; z-index: 1; }
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin: 22px 0 10px; color: var(--fg); }
.legal-content p { color: var(--fg-muted); font-size: 1rem; margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; margin-bottom: 16px; }
.legal-content li { color: var(--fg-muted); font-size: 1rem; margin-bottom: 8px; }
.legal-content strong { color: var(--fg); font-weight: 600; }
.legal-content a.inline-link { color: var(--accent); border-bottom: 1px dashed var(--accent); }
.legal-content a.inline-link:hover { border-bottom-style: solid; }

.placeholder {
  color: var(--accent); font-weight: 600;
  background: var(--accent-soft); padding: 1px 7px; border-radius: 6px;
  white-space: nowrap;
}

.legal-note {
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: 0.92rem; color: var(--fg-muted); margin: 18px 0;
}
.legal-note.warn { border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); color: #FCA5A5; }
.legal-note strong { color: inherit; }

/* ---- Footer (identical to main site) ---- */
footer.site {
  border-top: 1px solid var(--border); padding: 66px 0 34px; position: relative; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235,0.035));
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--fg-muted); font-size: 0.95rem; max-width: 320px; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--fg-muted); font-size: 0.95rem; padding: 6px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--fg-muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); background: var(--accent-soft); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); color: var(--fg-dim); font-size: 0.88rem; }
.footer-bottom .fb-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--fg); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .back-link span.txt { display: none; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
