/* Public offer / privacy policy — prodef.llc/{lang}/offer/ (hub visual language) */

.of-body {
  --of-red: #ef1a33;
  --of-red-hot: #ff2d45;
  --of-ink: #f5f5f7;
  --of-mute: #a1a1a6;
  --of-dim: #6e6e73;
  --of-line: rgba(255, 255, 255, 0.1);
  --of-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --of-font: "Gilroy", "Segoe UI", system-ui, sans-serif;
  --of-body: "Inter", "Gilroy", "Segoe UI", system-ui, sans-serif;
  background: #000;
  color: var(--of-ink);
}

html:has(.of-body) {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

.of-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* ========== Hero ========== */
.of-hero {
  position: relative;
  padding: clamp(110px, 14vw, 150px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--of-line);
  background:
    radial-gradient(55% 70% at 80% 0%, rgba(239, 26, 51, 0.13), transparent 70%),
    linear-gradient(180deg, #070707, #000);
  overflow: hidden;
}

.of-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.of-hero .of-shell {
  position: relative;
  z-index: 1;
}

.of-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--of-dim);
}

.of-crumbs a {
  color: var(--of-mute);
  text-decoration: none;
}

.of-crumbs a:hover {
  color: #fff;
}

.of-kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--of-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--of-red);
}

.of-hero h1 {
  margin: 0 0 12px;
  font-family: var(--of-font);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
}

.of-hero__sub {
  margin: 0 0 26px;
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: var(--of-mute);
}

.of-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.of-meta li {
  padding: 8px 14px;
  border: 1px solid var(--of-line);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  line-height: 1.3;
  color: #d8d8dc;
}

.of-meta a {
  color: inherit;
  text-decoration: none;
}

.of-hero__intro {
  margin: 0 0 22px;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--of-mute);
}

.of-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 50rem;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 26, 51, 0.32);
  border-radius: 16px;
  background: rgba(239, 26, 51, 0.06);
  font-size: 0.93rem;
  line-height: 1.5;
  color: #e6e6ea;
}

.of-note a {
  color: #ff6b7a;
  white-space: nowrap;
}

.of-note__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--of-red);
  font-family: var(--of-font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.of-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 980px;
  background: transparent;
  font-family: var(--of-font);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.25s var(--of-ease),
    border-color 0.25s var(--of-ease);
}

.of-btn:hover {
  border-color: var(--of-red);
  background: rgba(239, 26, 51, 0.12);
}

.of-btn:focus-visible {
  outline: 2px solid var(--of-red-hot);
  outline-offset: 3px;
}

/* ========== Layout: sticky contents + document ========== */
.of-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 110px);
}

.of-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px 8px 18px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.of-toc__toggle {
  display: none;
}

.of-toc__list,
.of-toc__list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.of-toc__part + .of-toc__part {
  margin-top: 18px;
}

.of-toc__part-link {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--of-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.of-toc__part-link span {
  color: var(--of-red);
}

.of-toc__list ol a {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px 10px 6px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--of-mute);
  text-decoration: none;
  transition:
    color 0.2s var(--of-ease),
    background 0.2s var(--of-ease);
}

.of-toc__list ol a span {
  flex: 0 0 auto;
  min-width: 1.6em;
  color: var(--of-dim);
  font-variant-numeric: tabular-nums;
}

.of-toc__list ol a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--of-red);
  transform: scaleY(0);
  transition: transform 0.3s var(--of-ease);
}

.of-toc__list ol a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.of-toc__list ol a.is-active {
  color: #fff;
  background: rgba(239, 26, 51, 0.08);
}

.of-toc__list ol a.is-active span {
  color: var(--of-red);
}

.of-toc__list ol a.is-active::before {
  transform: scaleY(1);
}

/* ========== Document ========== */
.of-doc {
  min-width: 0;
  font-family: var(--of-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #d2d2d7;
}

.of-part + .of-part {
  margin-top: clamp(56px, 7vw, 88px);
}

.of-part__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--of-line);
}

.of-part__roman {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(239, 26, 51, 0.45);
  background: linear-gradient(145deg, rgba(239, 26, 51, 0.16), rgba(239, 26, 51, 0.03));
  font-family: var(--of-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--of-red-hot);
}

.of-part__head h2 {
  margin: 0;
  font-family: var(--of-font);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.of-sec {
  padding: 26px 28px 22px;
  border: 1px solid var(--of-line);
  border-radius: 22px;
  background: #0b0b0b;
}

.of-sec + .of-sec {
  margin-top: 14px;
}

.of-sec h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--of-font);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.of-sec__num {
  flex: 0 0 auto;
  font-size: 0.9em;
  color: var(--of-red);
  font-variant-numeric: tabular-nums;
}

.of-sub {
  margin: 22px 0 8px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-family: var(--of-font);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.of-p {
  margin: 0 0 10px;
  max-width: 76ch;
  text-wrap: pretty;
}

.of-n {
  margin-right: 4px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.of-term {
  font-weight: 600;
  color: #fff;
}

.of-list {
  display: grid;
  gap: 6px;
  max-width: 74ch;
  margin: 4px 0 14px;
  padding: 0 0 0 22px;
}

ul.of-list {
  list-style: none;
  padding-left: 22px;
}

ul.of-list li {
  position: relative;
}

ul.of-list li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0.82em;
  width: 7px;
  height: 1.5px;
  background: var(--of-red);
}

ol.of-list li::marker {
  color: var(--of-red);
  font-weight: 700;
}

.of-doc a {
  color: #ff6b7a;
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 122, 0.35);
  text-underline-offset: 3px;
}

.of-doc a:hover {
  text-decoration-color: currentColor;
}

.of-card {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid var(--of-line);
  border-left: 2px solid var(--of-red);
  border-radius: 14px;
  background: #101010;
}

.of-card p {
  margin: 0;
  line-height: 1.6;
  color: #e6e6ea;
}

.of-card .of-card__label {
  margin-bottom: 6px;
  font-family: var(--of-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--of-mute);
}

.of-gap {
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(255, 196, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.5);
  color: #ffd25e;
  font-size: 0.92em;
}

/* Back to top */
.of-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 12, 0.86);
  backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--of-ease),
    transform 0.3s var(--of-ease),
    border-color 0.25s var(--of-ease);
}

.of-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.of-top:hover {
  border-color: var(--of-red);
}

/* ========== Tablet / phone ========== */
@media (max-width: 1000px) {
  .of-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .of-toc {
    position: sticky;
    top: 72px;
    z-index: 20;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .of-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--of-line);
    border-radius: 16px;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(12px);
    font-family: var(--of-font);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
  }

  .of-toc__chev {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.3s var(--of-ease);
  }

  .of-toc.is-open .of-toc__chev {
    transform: rotate(-135deg) translateY(-2px);
  }

  .of-toc__list {
    display: none;
    max-height: 60vh;
    overflow: auto;
    margin-top: 8px !important;
    padding: 16px 12px !important;
    border: 1px solid var(--of-line);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.97);
  }

  .of-toc.is-open .of-toc__list {
    display: block;
  }
}

@media (max-width: 640px) {
  .of-shell {
    width: calc(100% - 32px);
  }

  .of-sec {
    padding: 20px 18px 16px;
    border-radius: 18px;
  }

  .of-part__roman {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .of-doc {
    font-size: 0.97rem;
  }

  .of-btn {
    width: 100%;
    justify-content: center;
  }

  .of-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ========== Print / Save as PDF: clean black-on-white document ========== */
@media print {
  @page {
    margin: 18mm 16mm;
  }

  .of-body {
    background: #fff !important;
    color: #000 !important;
  }

  .container--header,
  .footer,
  .of-toc,
  .of-top,
  .of-hero__actions,
  .of-crumbs,
  .pv-float-cta {
    display: none !important;
  }

  .of-hero {
    padding: 0 0 12px;
    background: none;
    border-bottom: 1px solid #000;
  }

  .of-hero::after {
    display: none;
  }

  .of-hero h1,
  .of-part__head h2,
  .of-sec h3,
  .of-sub,
  .of-n,
  .of-term {
    color: #000 !important;
  }

  .of-hero__sub,
  .of-hero__intro,
  .of-meta li,
  .of-doc,
  .of-note,
  .of-card p {
    color: #111 !important;
  }

  .of-meta li,
  .of-note,
  .of-card {
    background: none !important;
    border-color: #999 !important;
  }

  .of-layout {
    display: block;
    padding: 12px 0 0;
  }

  .of-shell {
    width: 100%;
  }

  .of-sec {
    padding: 0;
    border: 0;
    background: none;
    break-inside: auto;
  }

  .of-sec + .of-sec {
    margin-top: 14px;
  }

  .of-part {
    break-before: page;
  }

  .of-part:first-child {
    break-before: auto;
  }

  .of-part__roman {
    color: #000;
    border-color: #000;
    background: none;
  }

  .of-doc a {
    color: #000;
    text-decoration: none;
  }

  ul.of-list li::before {
    background: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.of-body) {
    scroll-behavior: auto;
  }
}
