:root {
  --legal-blue: rgb(6, 88, 162);
  --legal-blue-soft: rgba(6, 88, 162, 0.1);
  --legal-text: #2c3e50;
  --legal-muted: #5a6b7d;
  --legal-bg: #f5f9fc;
  --legal-radius: 12px;
}

.legal-page {
  font-family: "Rubik", sans-serif;
  color: var(--legal-text);
  background: var(--legal-bg);
  line-height: 1.65;
  min-height: 100vh;
}

.legal-page__header {
  background: linear-gradient(135deg, var(--legal-blue), #0a4d8c);
  color: #fff;
  padding: 28px 24px 32px;
}

.legal-page__header-inner {
  max-width: 960px;
  margin: 0 auto;
}

.legal-page__logo {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
}

.legal-page__tagline {
  font-size: 14px;
  opacity: 0.85;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}

.legal-page__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 8px;
}

.legal-page__meta {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.legal-page__nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.legal-page__nav a {
  color: var(--legal-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.legal-page__nav a:hover {
  text-decoration: underline;
}

.legal-page__content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.legal-page__content h2 {
  font-size: 22px;
  color: var(--legal-blue);
  margin: 36px 0 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(6, 88, 162, 0.15);
}

.legal-page__content h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-page__content h3 {
  font-size: 17px;
  margin: 22px 0 10px;
  color: #1a3a5c;
}

.legal-page__content p,
.legal-page__content li {
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-page__content ul,
.legal-page__content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page__content li {
  margin-bottom: 6px;
}

.legal-page__toc {
  background: #fff;
  border: 1px solid rgba(6, 88, 162, 0.15);
  border-radius: var(--legal-radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.legal-page__toc h2 {
  margin: 0 0 12px;
  border: none;
  padding: 0;
  font-size: 18px;
}

.legal-page__toc ol {
  margin: 0;
  padding-left: 20px;
}

.legal-page__toc a {
  color: var(--legal-blue);
  text-decoration: none;
}

.legal-page__toc a:hover {
  text-decoration: underline;
}

.legal-info-box {
  background: #fff;
  border-left: 4px solid var(--legal-blue);
  border-radius: 0 var(--legal-radius) var(--legal-radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: 0 4px 16px rgba(6, 88, 162, 0.08);
}

.legal-info-box p:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
  background: #fff;
  border-radius: var(--legal-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(6, 88, 162, 0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--legal-blue-soft);
  color: var(--legal-blue);
  font-weight: 600;
}

.legal-page__footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(6, 88, 162, 0.15);
  font-size: 13px;
  color: var(--legal-muted);
}

/* Cookie banner */
.okkwork-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.98);
  border-top: 2px solid rgba(6, 88, 162, 0.2);
  box-shadow: 0 -8px 32px rgba(6, 88, 162, 0.15);
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  font-family: "Rubik", sans-serif;
}

.okkwork-cookie-banner.is-visible {
  transform: translateY(0);
}

.okkwork-cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.okkwork-cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 13px;
  line-height: 1.5;
  color: #2c3e50;
  margin: 0;
}

.okkwork-cookie-banner__text a {
  color: rgb(6, 88, 162);
  font-weight: 500;
}

.okkwork-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.okkwork-cookie-banner__btn {
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.okkwork-cookie-banner__btn--accept {
  background: rgb(6, 88, 162);
  color: #fff;
}

.okkwork-cookie-banner__btn--accept:hover {
  background: #05508f;
}

.okkwork-cookie-banner__btn--settings {
  background: #fff;
  color: rgb(6, 88, 162);
  border: 1px solid rgba(6, 88, 162, 0.35);
}

.okkwork-cookie-banner__btn--necessary {
  background: transparent;
  color: var(--legal-muted);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Legal block on start page — only for legacy Pixso layout */
body:not(.okkwork-dark) .okkwork-legal-bar {
  position: absolute;
  left: 64px;
  right: 64px;
  top: 500px;
  z-index: 5;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 12px;
}

.okkwork-legal-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 6px;
}

.okkwork-legal-bar a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.okkwork-legal-bar a:hover {
  color: #fff;
}

.okkwork-legal-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}

/* PD consent near CTA — legacy Pixso layout only */
body:not(.okkwork-dark) .okkwork-pd-consent {
  position: absolute;
  left: 180px;
  top: 585px;
  width: 660px;
  z-index: 6;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(72, 87, 101, 0.9);
  text-align: center;
}

.okkwork-pd-consent a {
  color: rgb(6, 88, 162);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer link styling */
.legal-footer-link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer-link:hover {
  opacity: 0.85;
}
