.page-privacy {
  --policy-panel-bg: rgba(16, 31, 59, 0.82);
  --policy-line: rgba(179, 195, 214, 0.18);
  --policy-dim: #B3C3D6;
  --policy-cut: 0 18px 0 18px;
}

.page-privacy .page-hero {
  position: relative;
  overflow: hidden;
}

.page-privacy .page-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.18), transparent 68%);
  pointer-events: none;
}

.page-privacy .page-hero::after {
  content: "";
  position: absolute;
  left: 4%;
  bottom: 24px;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-2), transparent);
  transform: rotate(-12deg);
  pointer-events: none;
}

.page-privacy .page-hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-privacy__crumb {
  margin-bottom: 18px;
}

.page-privacy__layout {
  display: grid;
  gap: 42px;
  padding: 8px 0 72px;
}

.page-privacy__main {
  min-width: 0;
}

.policy-section {
  border-left: 2px solid rgba(255, 107, 53, 0.38);
  padding-left: 16px;
  margin-bottom: 44px;
}

.policy-section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.policy-marker {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  background: var(--color-accent);
  color: #0A1428;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  border-radius: 12px 0 12px 0;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

.policy-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.35;
  margin: 0;
  color: var(--color-text);
}

.policy-section > p,
.policy-section > div > p,
.policy-list li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.policy-section > p {
  margin: 0 0 16px;
}

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

.policy-list li {
  position: relative;
  padding-left: 22px;
  margin: 0;
}

.policy-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-accent-2);
  position: absolute;
  left: 0;
  top: 0.68em;
  transform: rotate(45deg);
}

.policy-list strong {
  color: var(--color-text);
  font-weight: 600;
}

.policy-note {
  background: rgba(184, 255, 62, 0.07);
  border-left: 3px solid var(--color-accent-2);
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.policy-note strong {
  color: var(--color-accent-2);
  font-weight: 700;
}

.policy-storage {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.policy-storage__item {
  background: var(--policy-panel-bg);
  border: 1px solid var(--policy-line);
  border-radius: 0 16px 0 16px;
  padding: 18px;
}

.policy-storage__tag {
  display: inline-block;
  background: rgba(255, 107, 53, 0.14);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.policy-storage__item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.policy-figure {
  margin: 24px 0 8px;
}

.policy-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0 18px 0 18px;
  border: 1px solid var(--policy-line);
}

.policy-figure__cap {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.rights-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-privacy__side {
  display: grid;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.flow-panel {
  background: linear-gradient(160deg, rgba(16, 31, 59, 0.92), rgba(10, 20, 40, 0.96));
  border: 1px solid var(--policy-line);
  border-radius: 0 28px 0 28px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.flow-panel .eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
}

.flow-panel__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 6px 0 16px;
  color: var(--color-text);
}

.flow-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
}

.flow-node-rect {
  fill: rgba(184, 255, 62, 0.07);
  stroke: rgba(184, 255, 62, 0.4);
  stroke-width: 1.4;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.flow-node-g:hover .flow-node-rect,
.flow-node-g:focus-within .flow-node-rect {
  stroke: var(--color-accent);
  fill: rgba(255, 107, 53, 0.12);
}

.flow-node-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  fill: var(--color-text);
}

.flow-node-sub {
  font-size: 11px;
  fill: var(--color-text-muted);
}

.flow-arc {
  fill: none;
  stroke-width: 2;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.flow-arc--sync {
  stroke: rgba(184, 255, 62, 0.75);
}

.flow-arc--check {
  stroke: rgba(255, 107, 53, 0.8);
}

.flow-arc--return {
  stroke: rgba(179, 195, 214, 0.6);
  stroke-dasharray: 5 5;
}

.flow-svg:hover .flow-arc {
  stroke: var(--color-accent);
  stroke-width: 2.6;
  stroke-dasharray: none;
}

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}

.flow-steps li {
  counter-increment: flow;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(179, 195, 214, 0.12);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.flow-steps li::before {
  content: "0" counter(flow);
  flex: 0 0 36px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 107, 53, 0.14);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 8px 0 8px 0;
}

.quick-check {
  border: 1px dashed rgba(255, 107, 53, 0.5);
  border-radius: 0 16px 0 16px;
  padding: 16px;
  background: rgba(255, 107, 53, 0.05);
}

.quick-check__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--color-text);
}

.quick-check p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.quick-check__mail {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-accent-2) !important;
  word-break: break-all;
}

@media (min-width: 600px) {
  .policy-storage {
    grid-template-columns: 1fr 1fr;
  }

  .flow-panel {
    padding: 26px;
  }

  .quick-check {
    padding: 20px;
  }
}

@media (min-width: 920px) {
  .page-privacy__layout {
    grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    gap: 48px;
    align-items: start;
    padding-top: 16px;
  }

  .page-privacy__side {
    position: sticky;
    top: 112px;
  }

  .policy-section {
    padding-left: 26px;
    margin-bottom: 52px;
  }

  .policy-section__title {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-privacy .flow-arc,
  .page-privacy .flow-node-rect {
    transition: none;
  }
}
