*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --c-mango: #FF7B54; --c-coral: #FF5252; --c-orange: #FF9F43;
  --c-purple: #A855F7; --c-pink: #EC4899;
  --c-dark: #0a0a14; --c-darker: #05050a;
  --grad-primary: linear-gradient(135deg, #FF9F43 0%, #FF5252 50%, #A855F7 100%);
  --grad-text: linear-gradient(135deg, #FFB878, #FF7B54 50%, #EC4899);
}
html, body { width: 100%; font-family: 'Outfit', sans-serif; background: var(--c-darker); color: #fff; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; line-height: 1.75; }

/* Backgrounds from landing */
.bg-wrapper { position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 123, 84, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 70%),
    var(--c-darker);
}
.bg-grid { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 123, 84, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 123, 84, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
}
.orb { position: fixed; border-radius: 50%; filter: blur(100px); z-index: 1;
  pointer-events: none; mix-blend-mode: screen; }
.orb-1 { top: 5%; left: 5%; width: 380px; height: 380px;
  background: radial-gradient(circle, #FF9F43, transparent 70%); opacity: 0.5; }
.orb-2 { bottom: 5%; right: 5%; width: 420px; height: 420px;
  background: radial-gradient(circle, #A855F7, transparent 70%); opacity: 0.45; }

/* Top bar */
.top-bar {
  position: relative; z-index: 20;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); text-decoration: none;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s;
}
.back-link:hover { color: var(--c-orange); border-color: rgba(255,159,67,0.3); }

/* Lang switch — identyczny jak landing */
.lang-switch { display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(20px); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: none; background: transparent; color: rgba(255,255,255,0.55);
  font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; border-radius: 999px; transition: all 0.25s; }
.lang-btn .flag { display: inline-block; width: 18px; height: 13px; border-radius: 2px;
  overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.4); line-height: 0; }
.lang-btn .flag svg { display: block; width: 18px; height: 13px; }
.lang-btn:hover { color: rgba(255,255,255,0.9); }
.lang-btn.active { background: var(--grad-primary); color: #000;
  box-shadow: 0 4px 14px rgba(255,123,84,0.35); }

/* Content */
.legal-wrap { position: relative; z-index: 10; max-width: 820px; margin: 0 auto;
  padding: 40px 30px 80px; }

.legal-hero { text-align: center; padding: 40px 0 50px; }
.legal-logo { font-size: 72px; line-height: 1;
  filter: drop-shadow(0 0 60px rgba(255, 159, 67, 0.6));
  animation: legalGlow 4s ease-in-out infinite;
  display: inline-block; margin-bottom: 12px; }
@keyframes legalGlow {
  0%, 100% { filter: drop-shadow(0 0 60px rgba(255, 159, 67, 0.6)); transform: rotate(-3deg); }
  50%      { filter: drop-shadow(0 0 100px rgba(255, 82, 82, 0.8)); transform: rotate(3deg); }
}
.legal-title { font-size: clamp(32px, 5vw, 52px); font-weight: 900;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 12px;
  background: var(--grad-text); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.legal-sub { font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); font-weight: 700; }

.legal-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 44px 44px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
@media (max-width: 640px) { .legal-card { padding: 32px 22px; border-radius: 18px; } }

.legal-card h2 {
  font-size: 20px; font-weight: 800; margin-top: 36px; margin-bottom: 14px;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.legal-card h2::before {
  content: ''; display: inline-block; width: 4px; height: 18px;
  background: var(--grad-primary); border-radius: 2px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 15px; font-weight: 700; margin-top: 20px;
  margin-bottom: 10px; color: var(--c-orange); }
.legal-card p, .legal-card li { font-size: 14px;
  color: rgba(255,255,255,0.72); margin-bottom: 12px; }
.legal-card ul, .legal-card ol { padding-left: 22px; margin-bottom: 14px; }
.legal-card li { margin-bottom: 8px; }
.legal-card strong { color: #fff; font-weight: 700; }
.legal-card a { color: var(--c-orange); text-decoration: none;
  border-bottom: 1px dashed rgba(255,159,67,0.4); transition: all 0.2s; }
.legal-card a:hover { color: #FFB878; border-bottom-color: rgba(255,184,120,0.7); }
.legal-card table { width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 13px; border-radius: 12px; overflow: hidden; }
.legal-card th, .legal-card td { text-align: left; padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05); }
.legal-card th { background: rgba(255,159,67,0.08); color: var(--c-orange);
  font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 1.2px; }

.legal-footer {
  max-width: 820px; margin: 0 auto; padding: 30px; text-align: center;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative; z-index: 10;
}
