/* OchronaMaszyn.pl — shared legal, footer and consent layer */
:root {
  --om-ink: #11161a;
  --om-panel: #182026;
  --om-panel-soft: #202a31;
  --om-line: rgba(255, 255, 255, 0.12);
  --om-muted: #aeb9b3;
  --om-light: #eef2ef;
  --om-accent: #f4511e;
  --om-accent-hover: #ff7043;
  --om-focus: #ffb49d;
}

.om-footer,
.om-footer * {
  box-sizing: border-box;
}

.om-footer {
  position: relative;
  z-index: 10;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: var(--safe-bottom, 0px);
  color: var(--om-light);
  background:
    radial-gradient(circle at 16% 0%, rgba(244, 81, 30, 0.12), transparent 32rem),
    linear-gradient(180deg, #141a1e 0%, #0e1215 100%);
  border-top: 1px solid rgba(244, 81, 30, 0.28);
}

.om-footer__inner {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 1.5rem;
}

.om-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(10rem, .72fr) minmax(17rem, 1.4fr) minmax(11rem, .82fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.om-footer__brand-link {
  display: inline-flex;
  align-items: center;
  padding: .55rem .7rem;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.om-footer__logo {
  display: block;
  width: min(13rem, 100%);
  height: auto;
}

.om-footer__brand-name {
  margin: 1.25rem 0 .55rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .095em;
  line-height: 1.45;
  text-transform: uppercase;
}

.om-footer__tagline {
  max-width: 19rem;
  margin: 0;
  color: #c6d0ca;
  font-size: .9rem;
  line-height: 1.65;
}

.om-footer__heading {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .2rem 0 1.25rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.om-footer__heading::before {
  width: 1.85rem;
  height: 2px;
  content: "";
  background: var(--om-accent);
}

.om-footer__list,
.om-footer__company {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c7d0cb;
  font-size: .88rem;
  line-height: 1.65;
}

.om-footer__list li + li,
.om-footer__company p + p {
  margin-top: .62rem;
}

.om-footer__company p {
  margin: 0;
}

.om-footer__company strong {
  color: #fff;
  font-weight: 700;
}

.om-footer a,
.om-footer button {
  color: inherit;
}

.om-footer__list a,
.om-footer__list button {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  padding: 0;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}

.om-footer__list a:hover,
.om-footer__list button:hover {
  color: #fff;
  transform: translateX(2px);
}

.om-footer__contact a {
  color: #fff;
  font-weight: 650;
}

.om-footer__contact a:hover {
  color: var(--om-accent-hover);
}

.om-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.35rem;
  color: #8f9b95;
  font-size: .75rem;
  line-height: 1.55;
  border-top: 1px solid var(--om-line);
}

.om-footer__bottom p {
  margin: 0;
}

.om-footer__service {
  text-align: right;
}

.om-cmp[hidden],
.om-cmp-settings[hidden] {
  display: none !important;
}

.om-cmp {
  position: fixed;
  z-index: 10000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  pointer-events: none;
}

.om-cmp__card {
  display: grid;
  width: min(100%, 76rem);
  margin-inline: auto;
  padding: clamp(1.1rem, 2.4vw, 1.65rem);
  grid-template-columns: minmax(0, 1fr) minmax(23rem, .72fr);
  align-items: end;
  gap: 1.25rem 2rem;
  color: #fff;
  background: rgba(17, 22, 26, .97);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: .85rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.om-cmp__eyebrow,
.om-legal__eyebrow {
  margin: 0 0 .45rem;
  color: var(--om-accent-hover);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.om-cmp__title {
  margin: 0 0 .55rem;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.om-cmp__copy {
  max-width: 49rem;
  margin: 0;
  color: #cbd4cf;
  font-size: .88rem;
  line-height: 1.62;
}

.om-cmp__links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.25rem;
  margin-top: .75rem;
  font-size: .74rem;
}

.om-cmp__links a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(244, 81, 30, .65);
  text-underline-offset: 3px;
}

.om-cmp__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}

.om-cmp__button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: .75rem .8rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: .38rem;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.om-cmp__button:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #fff;
  transform: translateY(-1px);
}

.om-cmp__button--primary {
  color: #151a18;
  background: var(--om-accent);
  border-color: var(--om-accent);
}

.om-cmp__button--primary:hover {
  color: #11161a;
  background: var(--om-accent-hover);
  border-color: var(--om-accent-hover);
}

.om-cmp-settings {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(5, 8, 10, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.om-cmp-settings__panel {
  width: min(100%, 39rem);
  max-height: min(48rem, calc(100vh - 2rem));
  overflow: auto;
  color: #fff;
  background: #151b1f;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: .9rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52);
}

.om-cmp-settings__head,
.om-cmp-settings__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.1rem, 4vw, 1.75rem);
}

.om-cmp-settings__head {
  position: sticky;
  z-index: 2;
  top: 0;
  background: rgba(21, 27, 31, .97);
  border-bottom: 1px solid var(--om-line);
}

.om-cmp-settings__head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.om-cmp-settings__close {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #fff;
  font-size: 1.55rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  cursor: pointer;
}

.om-cmp-settings__intro {
  margin: 0;
  padding: 1.25rem clamp(1.1rem, 4vw, 1.75rem) .25rem;
  color: #bcc7c1;
  font-size: .88rem;
  line-height: 1.65;
}

.om-cmp-settings__categories {
  padding: .55rem clamp(1.1rem, 4vw, 1.75rem) 1.2rem;
}

.om-cmp-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem 1.2rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--om-line);
}

.om-cmp-category:last-child {
  border-bottom: 0;
}

.om-cmp-category h3 {
  margin: 0 0 .32rem;
  color: #fff;
  font-size: .96rem;
  font-weight: 750;
}

.om-cmp-category p {
  margin: 0;
  color: #aeb9b3;
  font-size: .8rem;
  line-height: 1.55;
}

.om-cmp-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.om-cmp-switch input {
  width: 3.1rem;
  height: 1.72rem;
  margin: 0;
  appearance: none;
  background: #465159;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2rem;
  cursor: pointer;
  transition: background .18s ease;
}

.om-cmp-switch input::before {
  display: block;
  width: 1.22rem;
  height: 1.22rem;
  margin: .19rem;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
  transition: transform .18s ease;
}

.om-cmp-switch input:checked {
  background: var(--om-accent);
}

.om-cmp-switch input:checked::before {
  transform: translateX(1.35rem);
}

.om-cmp-switch input:disabled {
  cursor: not-allowed;
  opacity: .78;
}

.om-cmp-settings__footer {
  position: sticky;
  bottom: 0;
  justify-content: flex-end;
  background: rgba(21, 27, 31, .98);
  border-top: 1px solid var(--om-line);
}

.om-cmp-settings__footer .om-cmp__button {
  min-width: 12rem;
}

.om-cmp button:focus-visible,
.om-cmp a:focus-visible,
.om-cmp-settings button:focus-visible,
.om-cmp-settings input:focus-visible,
.om-footer a:focus-visible,
.om-footer button:focus-visible {
  outline: 3px solid var(--om-focus);
  outline-offset: 3px;
}

.om-form-notice {
  margin: .25rem 0 0;
  color: var(--text-muted, #68736d);
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.6;
}

.om-form-notice a {
  color: var(--om-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.om-legal {
  position: relative;
  padding: clamp(5rem, 9vw, 7.5rem) 0 clamp(4.5rem, 8vw, 7rem);
  color: var(--text-body, #303b36);
  background:
    radial-gradient(circle at 85% 3%, rgba(244, 81, 30, .08), transparent 28rem),
    var(--bg, #f7f9f7);
}

.om-legal__container {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.om-legal__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 2rem;
  color: var(--text-muted, #6d7771);
  font-size: .75rem;
}

.om-legal__breadcrumbs a {
  color: inherit;
}

.om-legal__breadcrumbs a:hover {
  color: var(--om-accent);
}

.om-legal__hero {
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.om-legal__hero h1 {
  margin: 0;
  color: var(--text-heading, #11161a);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.om-legal__lead {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: var(--text-muted, #65706a);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.om-legal__date {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.35rem;
  padding: .58rem .8rem;
  color: var(--text-body, #303b36);
  font-size: .78rem;
  font-weight: 700;
  background: rgba(244, 81, 30, .08);
  border: 1px solid rgba(244, 81, 30, .22);
  border-radius: .35rem;
}

.om-legal__date::before {
  width: .45rem;
  height: .45rem;
  content: "";
  background: var(--om-accent);
  border-radius: 50%;
}

.om-legal__layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.om-legal__toc {
  position: sticky;
  top: 7rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(17, 22, 26, .1);
  border-radius: .6rem;
  box-shadow: 0 14px 40px rgba(17, 22, 26, .05);
}

.om-legal__toc strong {
  display: block;
  margin-bottom: .8rem;
  color: var(--text-heading, #11161a);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.om-legal__toc ol {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: om-toc;
}

.om-legal__toc li {
  counter-increment: om-toc;
}

.om-legal__toc a {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: .35rem;
  color: var(--text-muted, #68736d);
  font-size: .76rem;
  line-height: 1.45;
}

.om-legal__toc a::before {
  content: counter(om-toc, decimal-leading-zero);
  color: var(--om-accent);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.om-legal__toc a:hover {
  color: var(--text-heading, #11161a);
}

.om-legal__content {
  min-width: 0;
}

.om-legal__section {
  scroll-margin-top: 7rem;
  padding: 0 0 2.4rem;
}

.om-legal__section + .om-legal__section {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(17, 22, 26, .1);
}

.om-legal__section h2 {
  margin: 0 0 1.15rem;
  color: var(--text-heading, #11161a);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.om-legal__section h3 {
  margin: 1.4rem 0 .55rem;
  color: var(--text-heading, #11161a);
  font-size: 1.03rem;
  font-weight: 750;
}

.om-legal__section p,
.om-legal__section li {
  color: var(--text-body, #3f4944);
  font-size: .95rem;
  line-height: 1.78;
}

.om-legal__section p {
  margin: 0 0 .9rem;
}

.om-legal__section ul {
  display: grid;
  gap: .42rem;
  margin: .8rem 0 1rem;
  padding-left: 1.2rem;
}

.om-legal__section li::marker {
  color: var(--om-accent);
}

.om-legal__section a {
  color: #d94318;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.om-legal__inline-button {
  padding: 0;
  color: #d94318;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

.om-legal__identity,
.om-legal__notice {
  margin: 1rem 0 1.2rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(17, 22, 26, .1);
  border-left: 3px solid var(--om-accent);
  border-radius: .38rem;
  box-shadow: 0 10px 30px rgba(17, 22, 26, .045);
}

.om-legal__identity p:last-child,
.om-legal__notice p:last-child {
  margin-bottom: 0;
}

.om-company-card {
  width: min(100% - 2rem, 72rem);
  margin: clamp(2.5rem, 6vw, 5rem) auto;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--text-body, #3f4944);
  background: linear-gradient(145deg, #fff, #f4f7f5);
  border: 1px solid rgba(17, 22, 26, .1);
  border-left: 3px solid var(--om-accent);
  border-radius: .65rem;
  box-shadow: 0 18px 50px rgba(17, 22, 26, .07);
}

.om-company-card h2 {
  margin: 0 0 1.2rem;
  color: var(--text-heading, #11161a);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
}

.om-company-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(13rem, .75fr);
  gap: 1.5rem 3rem;
}

.om-company-card p {
  margin: 0 0 .35rem;
  font-size: .9rem;
  line-height: 1.65;
}

.om-company-card strong {
  color: var(--text-heading, #11161a);
}

.om-company-card a {
  color: #d94318;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .om-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-cmp__card {
    grid-template-columns: 1fr;
  }

  .om-legal__layout {
    grid-template-columns: 1fr;
  }

  .om-legal__toc {
    position: static;
  }

  .om-legal__toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .om-footer {
    padding-bottom: calc(5.25rem + var(--safe-bottom, 0px));
  }

  .om-footer__grid,
  .om-company-card__grid {
    grid-template-columns: 1fr;
  }

  .om-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .om-footer__service {
    text-align: left;
  }

  .om-cmp {
    padding: .55rem max(.55rem, env(safe-area-inset-right)) max(.55rem, env(safe-area-inset-bottom)) max(.55rem, env(safe-area-inset-left));
  }

  .om-cmp__card {
    max-height: calc(100vh - 1.1rem);
    overflow-y: auto;
    padding: 1rem;
  }

  .om-cmp__copy {
    font-size: .8rem;
  }

  .om-cmp__actions {
    grid-template-columns: 1fr;
  }

  .om-cmp__button {
    min-height: 2.85rem;
  }

  .om-cmp-settings {
    align-items: end;
    padding: 0;
  }

  .om-cmp-settings__panel {
    width: 100%;
    max-height: calc(100vh - max(.5rem, env(safe-area-inset-top)));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: .9rem .9rem 0 0;
  }

  .om-cmp-settings__footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .om-cmp-settings__footer .om-cmp__button {
    width: 100%;
  }

  .om-legal__toc ol {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .om-footer *,
  .om-cmp *,
  .om-cmp-settings * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
