/* /adatvedelem/ – adatvédelmi tájékoztató (demó: docs/partyactivo-adatvedelem-demo.html) */
.privacy-page {
  --gold-ink: #7a5a12;
  --line-2: #d9d0b8;
  --info: #2a6fc9;
  --tint-gold: rgba(232, 184, 74, 0.18);
  --tint-info: rgba(42, 111, 201, 0.1);
  --tint-success: rgba(31, 138, 82, 0.12);
  --tint-adult: rgba(200, 71, 90, 0.12);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .privacy-page {
    --gold-ink: #f4d58a;
    --line-2: #2a4675;
    --info: #7fb2ff;
    --tint-gold: rgba(232, 184, 74, 0.16);
    --tint-info: rgba(127, 178, 255, 0.12);
    --tint-success: rgba(76, 201, 133, 0.14);
    --tint-adult: rgba(255, 138, 156, 0.14);
  }
}

:root[data-theme="dark"] .privacy-page {
  --gold-ink: #f4d58a;
  --line-2: #2a4675;
  --info: #7fb2ff;
  --tint-gold: rgba(232, 184, 74, 0.16);
  --tint-info: rgba(127, 178, 255, 0.12);
  --tint-success: rgba(76, 201, 133, 0.14);
  --tint-adult: rgba(255, 138, 156, 0.14);
}

html:has(.privacy-page) {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

.privacy-page {
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  color: var(--ink);
  line-height: 1.6;
}

.privacy-page h1,
.privacy-page h2,
.privacy-page h3 {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

.privacy-page p {
  margin: 0;
}

.privacy-page code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.84em;
  background: var(--card-2);
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.privacy-page .fill {
  background: var(--tint-gold);
  color: var(--gold-ink);
  border-radius: 6px;
  padding: 0 5px;
  font-weight: 600;
  font-size: 0.94em;
  white-space: normal;
}

.privacy-page .muted {
  color: var(--muted);
}

.privacy-page .small {
  font-size: 0.88rem;
}

.privacy-page .privacy-hero {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--on-dark);
  padding-block: 44px 52px;
}

.privacy-page .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.privacy-page .privacy-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 8px 0 12px;
  color: #fff;
}

.privacy-page .privacy-hero h1 em {
  font-style: normal;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(232, 184, 74, 0.35);
  text-underline-offset: 6px;
  text-decoration-thickness: 4px;
}

.privacy-page .privacy-hero .lead {
  font-size: 1.1rem;
  color: var(--on-dark-muted);
  max-width: 62ch;
}

.privacy-page .privacy-hero .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.privacy-page .privacy-hero .meta span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pill);
  padding: 4px 12px;
  font-size: 0.84rem;
  color: #dfe7f5;
}

.privacy-page .privacy-hero .meta b {
  color: #fff;
}

.privacy-page .tldr {
  margin-top: -28px;
  position: relative;
}

.privacy-page .tldr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.privacy-page .tl {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.privacy-page .tl-icon {
  width: 26px;
  height: 26px;
  flex: none;
  stroke: var(--gold-ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.privacy-page .tl b {
  display: block;
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.privacy-page .tl p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.privacy-page .privacy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding-block: 40px 80px;
  align-items: start;
}

.privacy-page .privacy-toc {
  position: sticky;
  top: 88px;
  font-size: 0.88rem;
}

.privacy-page .privacy-toc .kicker {
  color: var(--gold-ink);
  margin-bottom: 8px;
  display: block;
}

.privacy-page .privacy-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.privacy-page .privacy-toc a {
  display: block;
  padding: 5px 12px;
  text-decoration: none;
  color: var(--muted);
  margin-left: -2px;
  border-left: 2px solid transparent;
  line-height: 1.35;
}

.privacy-page .privacy-toc a:hover {
  color: var(--ink);
}

.privacy-page .privacy-toc a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--gold);
}

.privacy-page .privacy-toc .btn {
  margin-top: 16px;
  width: 100%;
}

.privacy-page .toc-mobile {
  display: none;
}

.privacy-page .privacy-article {
  min-width: 0;
  max-width: 760px;
}

.privacy-page section.s {
  padding-top: 8px;
  margin-bottom: 46px;
}

.privacy-page section.s > h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.privacy-page section.s > h2 .n {
  font-size: 0.95rem;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
}

.privacy-page section.s p + p,
.privacy-page section.s p + ul,
.privacy-page section.s ul + p {
  margin-top: 12px;
}

.privacy-page section.s ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.privacy-page section.s li {
  margin-bottom: 6px;
}

.privacy-page h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 22px 0 8px;
}

.privacy-page .idcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.privacy-page .kv {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.privacy-page .kv:last-child {
  border-bottom: 0;
}

.privacy-page .kv dt {
  color: var(--muted);
  font-weight: 600;
}

.privacy-page .kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.privacy-page details.pa {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 12px;
  overflow: hidden;
}

.privacy-page details.pa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}

.privacy-page details.pa summary::-webkit-details-marker {
  display: none;
}

.privacy-page details.pa summary .t {
  flex: 1;
  min-width: 0;
}

.privacy-page details.pa summary b {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 1.06rem;
  display: block;
}

.privacy-page details.pa summary small {
  color: var(--muted);
  font-size: 0.84rem;
}

.privacy-page details.pa summary .pl {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-weight: 800;
  color: var(--gold-ink);
  font-size: 1.4rem;
  transition: transform 0.2s;
  flex: none;
}

.privacy-page details.pa[open] summary .pl {
  transform: rotate(45deg);
}

.privacy-page details.pa .body {
  padding: 0 18px 14px;
  border-top: 1px solid var(--line);
}

.privacy-page details.pa .row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
}

.privacy-page details.pa .row:last-child {
  border-bottom: 0;
}

.privacy-page details.pa .row > span:first-child {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
}

.privacy-page .tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--pill);
  padding: 1px 9px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--card-2);
  color: var(--muted);
  vertical-align: 1px;
}

.privacy-page .tag.c {
  background: var(--tint-info);
  color: var(--info);
}

.privacy-page .tag.ok {
  background: var(--tint-success);
  color: var(--success);
}

.privacy-page .tag.g {
  background: var(--tint-gold);
  color: var(--gold-ink);
}

.privacy-page .pa-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.privacy-page .tw {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-top: 12px;
}

.privacy-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 620px;
}

.privacy-page th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
  white-space: nowrap;
}

.privacy-page td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.privacy-page tr:last-child td {
  border-bottom: 0;
}

.privacy-page .chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.privacy-page .chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: var(--pill);
  padding: 5px 12px;
  font: 600 0.84rem var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

.privacy-page .chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--tint-gold);
}

.privacy-page .rights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.privacy-page .right {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-page .right b {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 1.02rem;
}

.privacy-page .right p {
  font-size: 0.9rem;
  color: var(--muted);
}

.privacy-page .right .btn {
  align-self: flex-start;
  margin-top: auto;
}

.privacy-page .note {
  display: flex;
  gap: 10px;
  background: var(--tint-info);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-top: 14px;
}

.privacy-page .note-icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: var(--info);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.privacy-page .note.a {
  background: var(--tint-adult);
}

.privacy-page .note.a .note-icon {
  stroke: var(--adult);
}

.privacy-page .history {
  margin-top: 12px;
}

.privacy-page .history div {
  display: grid;
  grid-template-columns: 110px 80px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.privacy-page .history div:last-child {
  border-bottom: 0;
}

.privacy-page .archived-banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0 80px;
  max-width: 760px;
}

@media (max-width: 960px) {
  .privacy-page .privacy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 28px;
  }

  .privacy-page .privacy-toc {
    display: none;
  }

  .privacy-page .toc-mobile {
    display: block;
    margin-bottom: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .privacy-page .toc-mobile summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    list-style: none;
  }

  .privacy-page .toc-mobile summary::-webkit-details-marker {
    display: none;
  }

  .privacy-page .toc-mobile ol {
    margin: 0;
    padding: 0 18px 14px 36px;
    font-size: 0.92rem;
  }

  .privacy-page .toc-mobile li {
    margin-bottom: 6px;
  }

  .privacy-page .tldr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .privacy-page .tldr-grid,
  .privacy-page .rights {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-page .kv,
  .privacy-page details.pa .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .privacy-page .history div {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .privacy-page .history div span:nth-child(2) {
    display: none;
  }

  .privacy-page .privacy-hero {
    padding-block: 32px 48px;
  }

  .privacy-page .hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.privacy-page) {
    scroll-behavior: auto;
  }

  .privacy-page details.pa summary .pl {
    transition: none;
  }
}
