/* =========================
   LEGAL PAGES - REGULAMIN / RODO
========================= */

.legal-page-body {
  background: #0b1220;
  color: #ffffff;
}

.legal-header {
  position: absolute;
  background: transparent;
}

.legal-main {
  position: relative;
  min-height: 100vh;
  padding: 130px 20px 90px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.15), transparent 26%),
    linear-gradient(135deg, #090f1c 0%, #0f172a 55%, #111827 100%);
  overflow: hidden;
}

.legal-bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.55;
  pointer-events: none;
}

.legal-bg-glow-one {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 150px;
  background: rgba(59, 130, 246, 0.18);
}

.legal-bg-glow-two {
  width: 320px;
  height: 320px;
  left: -130px;
  bottom: 70px;
  background: rgba(16, 185, 129, 0.14);
}

.legal-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.legal-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 36px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.legal-hero h1 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.legal-hero p {
  margin: 0;
  max-width: 670px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.legal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.legal-primary-button,
.legal-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  transition: 0.2s ease;
}

.legal-primary-button {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.legal-secondary-button {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.legal-primary-button:hover,
.legal-secondary-button:hover {
  transform: translateY(-1px);
}

.legal-summary-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.legal-panel-top {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.legal-panel-top span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d1d5db;
}

.legal-summary-body {
  padding: 34px;
  color: #111827;
}

.legal-summary-body h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.legal-summary-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-summary-list li {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  line-height: 1.6;
}

.legal-summary-list strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

.legal-document-card {
  background: #ffffff;
  color: #111827;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.legal-document-header {
  padding: 34px 38px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.legal-document-header h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.legal-document-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.legal-content {
  padding: 36px 38px 42px;
}

.legal-section {
  padding: 24px 0;
  border-bottom: 1px solid #e5e7eb;
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
}

.legal-section h4 {
  margin: 20px 0 10px;
  color: #111827;
  font-size: 18px;
}

.legal-section p,
.legal-section li {
  color: #374151;
  font-size: 16px;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 12px 20px;
  padding: 0;
}

.legal-note {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  line-height: 1.65;
}

.legal-info-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e5e7eb;
  line-height: 1.65;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  color: #374151;
  line-height: 1.55;
}

.legal-table th {
  background: #f8fafc;
  color: #111827;
  font-weight: 800;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-placeholder {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
}

@media (max-width: 900px) {
  .legal-hero {
    grid-template-columns: 1fr;
  }

  .legal-hero-text {
    text-align: center;
  }

  .legal-hero p {
    margin: 0 auto;
  }

  .legal-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .legal-main {
    padding: 110px 16px 70px;
  }

  .legal-actions {
    flex-direction: column;
  }

  .legal-primary-button,
  .legal-secondary-button {
    width: 100%;
  }

  .legal-summary-body,
  .legal-content,
  .legal-document-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-section h3 {
    font-size: 21px;
  }
}
