/* Legal Pages — social.easybiz.pl dark theme
   Shared by /terms/ and /privacy/
   ================================================ */

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

:root {
  --bg:       #08080F;
  --surface:  #0F0F1A;
  --card:     #111122;
  --card2:    #13132A;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --text:     #F0EEF8;
  --muted:    #8B8AA8;
  --pink:     #FF3CAC;
  --purple:   #784BA0;
  --cyan:     #00D4FF;
  --grad1:    linear-gradient(135deg, #FF3CAC, #784BA0, #2B86C5);
  --grad2:    linear-gradient(135deg, #00D4FF, #7B2FBE);
  --radius:   16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
}

a { color: var(--cyan); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pink); text-decoration: underline; }

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ── Navigation ─────────────────────────────── */
.legal-nav {
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.legal-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: .75rem 20px;
}

.legal-nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.legal-nav-logo:hover { text-decoration: none; }

.legal-nav-logo img { height: 40px; width: auto; }

.legal-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switch (pill style matching landing) */
.lang-switch {
  display: flex;
  align-items: center;
  border-radius: 50px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
}
.lang-opt {
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  transition: all .15s;
  letter-spacing: .02em;
}
.lang-opt:hover { color: var(--text); text-decoration: none; }
.lang-opt.active { background: var(--grad1); color: #fff; }

/* Back to home link */
.back-link {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.back-link:hover { color: var(--text); text-decoration: none; }

/* ── Main content area ──────────────────────── */
.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 20px 4rem;
}

.legal-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border2);
}

.legal-title {
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.legal-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: .4rem;
}

.legal-effective-date {
  font-size: .9rem;
  font-style: italic;
  color: var(--muted);
}

/* ── Content ────────────────────────────────── */
.legal-content { line-height: 1.8; }
.legal-content.hidden { display: none; }

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--purple);
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 1.75rem 0 .75rem;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.legal-content strong { color: var(--text); font-weight: 600; }

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: .5rem; color: var(--muted); }

/* ── Plain-language summary box ─────────────── */
.legal-summary {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--pink);
  border: 1px solid var(--border2);
  border-left: 4px solid var(--pink);
}
.legal-summary h2 {
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
  color: var(--text);
}
.legal-summary h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

/* ── Contact info box ───────────────────────── */
.legal-contact-info {
  background: var(--card2);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  border-left: 4px solid var(--purple);
}
.legal-contact-info p { margin-bottom: 0; }

/* ── Separator ──────────────────────────────── */
.legal-separator {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--border2);
}

/* ── Footer note ────────────────────────────── */
.legal-footer-note {
  font-style: italic;
  text-align: center;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── Table (for data processing purposes) ──── */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .92rem;
}
.legal-content th,
.legal-content td {
  text-align: left;
  padding: .75rem 1rem;
  border: 1px solid var(--border2);
  color: var(--muted);
}
.legal-content th {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}

/* ── Page footer ────────────────────────────── */
.legal-page-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.legal-page-footer .footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.legal-page-footer .footer-links a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.legal-page-footer .footer-links a:hover { color: var(--text); }
.legal-page-footer p { font-size: .8rem; color: var(--muted); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .legal-main { padding: 2rem 20px 3rem; }
  .legal-title { font-size: 2rem; }
  .legal-content h2 { font-size: 1.3rem; }
  .legal-content h3 { font-size: 1.1rem; }
  .legal-summary { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .legal-title { font-size: 1.75rem; }
  .legal-summary { padding: 1rem; }
  .legal-contact-info { padding: 1rem; }
  .legal-content table { font-size: .82rem; }
  .legal-content th, .legal-content td { padding: .5rem .6rem; }
}
