/* ==========================================================================
   DGTEAM: jogi dokumentumok (Adatvédelmi Tájékoztató, ÁSZF)
   Shared by dgteam-adatvedelem.html and dgteam-aszf.html
   ========================================================================== */

:root {
  color-scheme: light dark;

  --paper: #f5f4ef;
  --paper-2: #ebe9e1;
  --ink: #0e1430;
  --ink-2: #363c53;
  --ink-3: #62677d;
  --rule: rgba(14, 20, 48, 0.13);
  --rule-strong: rgba(14, 20, 48, 0.34);
  --hatch: rgba(30, 58, 138, 0.09);

  --accent: #1e3a8a;          /* the logo's own blue */
  --accent-fill: #1e3a8a;
  --accent-soft: #9fb3f1;     /* accent on dark surfaces */
  --accent-wash: rgba(30, 58, 138, 0.055);
  --on-accent: #ffffff;

  --panel: #0e1430;
  --panel-ink: #eef0f7;
  --panel-rule: rgba(238, 240, 247, 0.14);
  --footer: #0e1430;
  --footer-ink: #f5f4ef;

  --font-display: "Archivo", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 86rem;
  --header-h: 3.75rem;
  --measure: 40rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0f1d;
    --paper-2: #141a2d;
    --ink: #eef0f7;
    --ink-2: #bfc5d6;
    --ink-3: #8a91a8;
    --rule: rgba(238, 240, 247, 0.11);
    --rule-strong: rgba(238, 240, 247, 0.28);
    --hatch: rgba(159, 179, 241, 0.08);

    --accent: #9fb3f1;
    --accent-fill: #1e3a8a;
    --accent-wash: rgba(159, 179, 241, 0.035);

    --panel: #141a2d;
    --panel-rule: rgba(238, 240, 247, 0.1);
    --footer: #060913;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  interpolate-size: allow-keywords;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-fill); color: #fff; }

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent);
  transition: text-decoration-color 0.2s, color 0.2s;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
[tabindex="-1"]:focus { outline: none; }

strong { font-weight: 650; color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent-fill);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 3px;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 2.15rem; height: auto; aspect-ratio: 434 / 296; fill: var(--accent); flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.doc-switch { display: flex; align-items: center; }
.doc-switch a {
  position: relative;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
}
.doc-switch a:hover { color: var(--ink); }
.doc-switch a[aria-current="page"] { color: var(--ink); }
.doc-switch a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--accent);
}

.toc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 600 0.875rem/1 var(--font-display);
  cursor: pointer;
}
.toc-button[hidden] { display: none; }
.toc-button:hover { border-color: var(--ink); }
.toc-button svg { width: 1rem; height: 1rem; stroke: currentColor; }
.toc-button__count { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc-button__count:empty { display: none; }

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
html:not(.js) .progress { display: none; }

@media (max-width: 639px) {
  .brand__name { display: none; }
  .doc-switch a { padding-inline: 0.55rem; font-size: 0.875rem; }
  .doc-switch a[aria-current="page"]::after { left: 0.55rem; right: 0.55rem; }
  .toc-button__label { display: none; }
}
@media (min-width: 1100px) {
  .toc-button { display: none; }
}

/* ---------- Hero ---------- */

.doc-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3.25rem, 8vw, 8rem) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.doc-hero__inner { position: relative; z-index: 1; }

.doc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(2.6rem, 0.6rem + 6.6vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  overflow-wrap: break-word;
}
.doc-title em { font-style: normal; color: var(--accent); }
@media (max-width: 559px) {
  .doc-title { font-size: 13.6vw; font-stretch: 100%; letter-spacing: -0.035em; }
}

.doc-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.25rem 2.5rem;
  max-width: 64rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--font-display);
}
.doc-meta dt { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); margin-bottom: 0.3rem; }
.doc-meta dd { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
@media (min-width: 900px) {
  .doc-meta { max-width: min(64rem, 60%); }
}
@media (max-width: 699px) {
  .doc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
  .doc-meta > div:last-child { grid-column: 1 / -1; }
}

.doc-hero__mark {
  position: absolute;
  z-index: 0;
  right: -6vw;
  top: 50%;
  width: min(42vw, 46rem);
  margin-top: calc(min(42vw, 46rem) * -0.37);
  overflow: visible;
  pointer-events: none;
}
.doc-hero__mark path {
  fill: var(--accent-wash);
  stroke: var(--accent);
  stroke-width: 0.85;
  stroke-linejoin: round;
  stroke-opacity: 0.55;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
@media (max-width: 899px) {
  .doc-hero__mark { width: 74vw; right: -22vw; top: 1.25rem; margin-top: 0; }
  .doc-hero__mark path { stroke-opacity: 0.4; }
}

/* Intro guard: only hidden while JS confirms the animation is about to run */
.is-intro .doc-title,
.is-intro .doc-meta,
.is-intro .doc-hero__mark { opacity: 0; }

/* ---------- Document layout ---------- */

.doc { display: grid; grid-template-columns: minmax(0, 1fr); }

.toc { padding-block: clamp(2.5rem, 5vw, 3.5rem) 0.5rem; font-family: var(--font-display); }
.toc__title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 1rem; }
.toc__list { list-style: none; padding: 0; position: relative; }
.toc__list a {
  display: flex;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.toc__list a:hover { color: var(--accent); }
.toc__num { min-width: 1.4em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 1099px) {
  .toc__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    column-gap: 2.5rem;
    border-top: 1px solid var(--rule);
  }
  .toc__list li { border-bottom: 1px solid var(--rule); }
  .toc__list a { padding: 0.7rem 0; }
}

@media (min-width: 1100px) {
  .doc {
    grid-template-columns: 14.5rem minmax(0, 1fr);
    column-gap: clamp(3rem, 5vw, 6rem);
  }
  .toc {
    position: sticky;
    top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
    scrollbar-width: none;
  }
  .toc__list { border-left: 1px solid var(--rule); }
  .toc__list a { padding: 0.42rem 0 0.42rem 1rem; color: var(--ink-3); }
  .toc__list a[aria-current="location"] { color: var(--ink); }
  .toc__list::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: var(--marker-h, 0);
    background: var(--accent);
    transform: translateY(var(--marker-y, 0));
    opacity: var(--marker-o, 0);
    transition: transform 0.5s var(--ease-out), height 0.5s var(--ease-out), opacity 0.3s;
  }
}

/* ---------- Clauses ---------- */

.doc__body { min-width: 0; max-width: 55rem; }

.clause {
  position: relative;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

.clause__head {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.05rem + 1.6vw, 2.6rem);
  line-height: 1.08;
}
.clause__num {
  flex-shrink: 0;
  font-weight: 300;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.clause h2 {
  font: inherit;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
}

@media (min-width: 720px) {
  .doc__body { padding-left: 5.5rem; }
  .clause__head { display: block; position: relative; }
  .clause__num { position: absolute; right: calc(100% + 1.4rem); top: 0; }
}
@media (min-width: 1100px) {
  .doc__body > .clause:first-child { border-top: 0; }
}

.clause p { max-width: var(--measure); color: var(--ink-2); }
.clause p + p { margin-top: 1em; }
.clause p + :is(ul, ol, dl, table, div),
.clause :is(ul, ol, dl, table, div) + p { margin-top: 1.75rem; }

.fineprint { font-size: 0.875em; color: var(--ink-3) !important; }
.clause .fineprint { margin-top: 1.5rem; }

@media (max-width: 719px) {
  .clause p, .clause li, .clause dd { hyphens: auto; -webkit-hyphens: auto; }
}

/* Bulleted rows; the inverted triangle comes from the logo */
.list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.list > li {
  position: relative;
  /* rules run the full column; text keeps the reading measure */
  padding: 0.85rem max(0px, calc(100% - var(--measure))) 0.85rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.list > li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: calc(0.85rem + 0.6em);
  width: 0.6rem;
  height: 0.48rem;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Term / description rows */
.terms { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.terms > div {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.terms dt {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.45;
  padding-top: 0.12em;
  color: var(--ink);
}
.terms dd { color: var(--ink-2); }
@media (max-width: 639px) {
  .terms > div { grid-template-columns: minmax(0, 1fr); }
}

/* Register-style facts (controller, company details) */
.register { margin-top: 2rem; }
.register__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.facts { border-top: 1px solid var(--rule-strong); font-family: var(--font-display); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.15rem 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { font-size: 0.875rem; color: var(--ink-3); padding-top: 0.15em; }
.facts dd { font-size: 1.0625rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 519px) {
  .facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* Big statement */
.statement {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.statement strong { color: var(--accent); font-weight: 700; }

/* Notes */
.note {
  margin-top: 2rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.1rem, 2.5vw, 1.75rem);
  background: var(--paper-2);
  border-radius: 4px;
  font-size: 0.95em;
}
.note p { color: var(--ink-2); max-width: var(--measure); }
.note__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink) !important;
  margin-bottom: 0.35rem;
}
.note--caution {
  background-color: transparent;
  background-image: repeating-linear-gradient(-45deg, transparent 0 10px, var(--hatch) 10px 11px);
  border: 1px solid var(--rule-strong);
}
.note--caution .note__title { color: var(--accent) !important; }
.clause .note + .list,
.clause .note + p { margin-top: 1.75rem; }

/* Purpose & legal basis table */
.basis {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}
.basis th {
  padding: 0 1.25rem 0.75rem 0;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
  text-align: left;
}
.basis td {
  padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-2);
}
.basis td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.basis td:last-child, .basis th:last-child { padding-right: 0; }
.basis__ref {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 639px) {
  .basis, .basis tbody, .basis tr, .basis td { display: block; }
  .basis thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .basis { border-top: 1px solid var(--rule-strong); }
  .basis tr { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .basis td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.2rem 0; border: 0; }
  .basis td:first-child { display: block; margin-bottom: 0.4rem; font-size: 1.0625rem; }
  .basis td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    color: var(--ink-3);
    padding-top: 0.15em;
  }
}

/* Third parties */
.parties { list-style: none; padding: 0; margin-top: 2rem; border-top: 1px solid var(--rule-strong); }
.party {
  display: grid;
  grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.party__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.party__alias {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--ink-3);
}
.party p { font-size: 0.98em; }
@media (max-width: 639px) {
  .party { grid-template-columns: minmax(0, 1fr); }
}

/* Disclosure (company details) */
.disclosure { margin-top: 0.75rem; }
.disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease-out), margin 0.35s var(--ease-out);
}
.disclosure[open] summary::after { transform: rotate(-135deg); margin-top: 0.2rem; }
.disclosure summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.disclosure::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}
.disclosure[open]::details-content { block-size: auto; }
.disclosure__body { padding-top: 0.6rem; }
.disclosure__body .facts dd { font-size: 0.9375rem; font-weight: 500; }
.disclosure__body .facts > div { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); padding: 0.5rem 0; }
.disclosure__lead { font-family: var(--font-display); font-weight: 650; font-size: 0.9375rem; color: var(--ink) !important; margin-bottom: 0.4rem; }
@media (max-width: 519px) {
  .disclosure__body .facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* Retention spec */
.retention {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 0.5rem;
}
.retention > div { padding-top: 1rem; border-top: 1px solid var(--rule-strong); }
.retention dt { font-family: var(--font-display); font-size: 0.875rem; font-weight: 500; color: var(--ink-3); line-height: 1.4; }
.retention dd {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.retention dd::first-letter, .services dd::first-letter { text-transform: uppercase; }
@media (max-width: 759px) {
  .retention { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* Rights */
.rights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  column-gap: 2.5rem;
  margin-top: 2rem;
}
.rights > div { padding: 1.25rem 0 1.4rem; border-top: 1px solid var(--rule); }
.rights dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.3rem;
}
.rights dd { color: var(--ink-2); font-size: 0.98em; line-height: 1.5; }

/* Call-to-action panel */
.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.75rem 3rem;
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  background: var(--accent-fill);
  color: var(--on-accent);
  border-radius: 4px;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
}
.cta-panel p { color: rgba(255, 255, 255, 0.82); max-width: 30rem; }
.cta-panel__mark {
  position: absolute !important;
  z-index: 0 !important;
  right: -4rem;
  bottom: -5rem;
  width: 22rem;
  fill: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
@media (max-width: 719px) {
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-panel__mark { width: 15rem; right: -3rem; bottom: -3.5rem; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  background: #fff;
  color: #1e3a8a;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s;
  will-change: transform;
}
.button:hover { background: #e3e9fb; }
.button__arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.button:hover .button__arrow { transform: translateX(0.3rem); }
.button:focus-visible { outline-color: #fff; outline-offset: 4px; }

/* Age limit */
.age {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
}
.age__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(5.5rem, 3rem + 7vw, 10rem);
  line-height: 0.74;
  letter-spacing: -0.06em;
  color: var(--accent);
  padding-top: 0.06em;
}
@media (max-width: 559px) {
  .age { grid-template-columns: minmax(0, 1fr); }
}

/* Steps */
.steps { list-style: none; padding: 0; margin-top: 2rem; max-width: var(--measure); }
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-bottom: 1.6rem;
  color: var(--ink-2);
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 2.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--rule-strong);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps { counter-reset: step; }

/* Services (ÁSZF) */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.services > div { padding-top: 1rem; border-top: 1px solid var(--rule-strong); }
.services dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.services dd { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.98em; line-height: 1.5; }
@media (max-width: 759px) {
  .services { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* Prohibited activities (ÁSZF) */
.prohibited {
  list-style: none;
  margin-top: 2rem;
  padding: clamp(0.5rem, 1.5vw, 0.9rem) clamp(1.25rem, 3vw, 2.25rem);
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 4px;
}
.prohibited li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  padding: 1rem 0;
  border-bottom: 1px solid var(--panel-rule);
  line-height: 1.5;
}
.prohibited li:last-child { border-bottom: 0; }
.prohibited li::before {
  content: "\2715";
  font-family: var(--font-display);
  font-size: 0.8em;
  padding-top: 0.25em;
  color: var(--accent-soft);
}

/* End-of-document links */
.endlinks { margin-top: 2.5rem; border-top: 1px solid var(--rule-strong); }
.endlinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.endlinks a:hover { color: var(--accent); }
.endlinks .arrow { color: var(--accent); transition: transform 0.4s var(--ease-out); }
.endlinks a:hover .arrow { transform: translateX(0.5rem); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--footer);
  color: var(--footer-ink);
  overflow: clip;
}
.marquee {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3.5vw, 3rem);
  overflow: clip;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  padding-right: 0.32em;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(3.25rem, 1.2rem + 9vw, 11rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.marquee__sep {
  width: 0.62em;
  height: auto;
  aspect-ratio: 434 / 296;
  margin-right: 0.32em;
  fill: var(--accent-soft);
  font-size: clamp(3.25rem, 1.2rem + 9vw, 11rem);
}
@keyframes marquee { to { transform: translateX(-50%); } }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  position: relative;
  padding-block: 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: rgba(245, 244, 239, 0.7);
}
.site-footer__bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(245, 244, 239, 0.14);
}
.site-footer__bar nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer a { color: var(--footer-ink); text-decoration-color: rgba(245, 244, 239, 0.35); }
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer :focus-visible { outline-color: var(--accent-soft); }

/* ---------- Mobile table of contents (built by legal.js) ---------- */

.toc-dialog {
  width: 100%;
  max-width: 100%;
  max-height: min(85vh, 44rem);
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  overflow: hidden;
}
.toc-dialog[open] { display: flex; flex-direction: column; animation: sheet-in 0.45s var(--ease-out); }
.toc-dialog::backdrop { background: rgba(6, 9, 19, 0.5); animation: fade-in 0.3s ease; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.toc-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.toc-dialog__head h2 { font-size: 1.125rem; font-weight: 700; }
.toc-dialog__close {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 600 0.875rem/1 var(--font-display);
  cursor: pointer;
}
.toc-dialog ol {
  list-style: none;
  margin: 0;
  padding: 0.25rem var(--gutter) 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.toc-dialog li { border-bottom: 1px solid var(--rule); }
.toc-dialog a {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.toc-dialog a[aria-current="location"] { color: var(--accent); }
.toc-dialog a[aria-current="location"] .toc__num { color: var(--accent); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .marquee__track { animation: none; }
}

/* ---------- Print ---------- */

@media print {
  :root {
    --paper: #fff; --paper-2: #f2f2f2; --ink: #000; --ink-2: #111; --ink-3: #444;
    --rule: #bbb; --rule-strong: #666; --accent: #1e3a8a; --hatch: transparent;
  }
  body { font-size: 11pt; background: #fff; }
  .site-header, .skip-link, .toc, .toc-dialog, .marquee, .doc-hero__mark, .cta-panel__mark, .site-footer__bar nav { display: none !important; }
  .doc { display: block; }
  .doc__body { padding-left: 0; max-width: none; }
  .clause { padding-block: 1.25rem; break-inside: auto; }
  .clause__head { display: flex; break-after: avoid; }
  .clause__num { position: static; }
  .doc-hero { padding-block: 0.5rem 1rem; }
  [data-revealed] { opacity: 1 !important; transform: none !important; }
  .doc-title { font-size: 34pt; }
  .cta-panel { background: none; color: #000; border: 1px solid #666; }
  .cta-panel p { color: #111; }
  .button { padding: 0; background: none; color: #1e3a8a; }
  .prohibited { background: none; color: #000; border: 1px solid #666; }
  .prohibited li::before { color: #000; }
  .site-footer { background: none; color: #000; margin-top: 1rem; }
  .site-footer__bar { color: #000; }
  .clause a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; overflow-wrap: anywhere; }
  .disclosure::details-content { block-size: auto; content-visibility: visible; }
}
