/*
  Legal — the adatkezelesi-tajekoztato.html page. Reuses page-hero.css for
  its header; this file covers the long-form policy body only: a
  full-width article (.legal__inner carries no max-width of its own, so
  it just takes .container's standard --content-max like every other
  page section) with a fact-card grid for "Az adatkezelő adatai" and a
  definition list for "Fogalmak", both styled like product-detail.css's
  spec grid (diagonal 24px 0 24px 0 radius, --color-surface background,
  --shadow-sm) so this page reads as part of the same system rather than
  a plain text dump.
*/

.legal {
  background: var(--color-white);
  padding-block: var(--space-9);
}

.legal__updated {
  color: var(--color-slate-600);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal__lead {
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  color: var(--color-slate-600);
}

.legal__body {
  margin-top: var(--space-6);
}

.legal__body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-8);
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body h3 {
  font-size: var(--fs-h4);
  margin-top: var(--space-6);
}

.legal__divider {
  width: 56px;
  height: 3px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
  background: var(--color-red-600);
  border-radius: 2px;
}

.legal__body p {
  margin-top: var(--space-4);
}

.legal__body p:first-child {
  margin-top: 0;
}

.legal__body ul {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal__body ul li {
  position: relative;
  padding-left: var(--space-5);
}

.legal__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--color-red-600);
  border-radius: 50%;
}

.legal__body a {
  color: var(--color-red-600);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-out);
}

.legal__body a:hover {
  color: var(--color-red-700);
}

.legal__body a:focus-visible {
  outline: 2px solid var(--color-red-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- "Az adatkezelő adatai" fact card ----
   3-per-row with the last (odd) row centered rather than left-aligned —
   same flex-wrap/justify-center technique as .certifications__grid's
   5-card grid, needed now that the section is full container width
   rather than a narrow reading column, where a plain 2-column grid left
   each card too wide and sparse. */
.legal__facts {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.legal__fact {
  flex: 0 1 calc(33.333% - var(--space-4) * 2 / 3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-radius: 24px 0 24px 0;
  box-shadow: var(--shadow-sm);
}

.legal__fact-label {
  color: var(--color-slate-600);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal__fact-value {
  margin-top: var(--space-2);
  color: var(--color-navy-900);
  font-weight: var(--fw-bold);
  line-height: 1.4;
}

/* ---- "Fogalmak" definitions ---- */
.legal__definitions {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.legal__definitions dt {
  color: var(--color-navy-900);
  font-weight: var(--fw-bold);
}

.legal__definitions dd {
  margin-top: var(--space-1);
  color: var(--color-slate-600);
}

.legal__signature {
  margin-top: var(--space-7);
  color: var(--color-slate-600);
  font-weight: var(--fw-bold);
}

@media (max-width: 1024px) {
  .legal__fact {
    flex-basis: calc(50% - var(--space-4) / 2);
  }
}

@media (max-width: 560px) {
  .legal__fact {
    flex: 1 1 100%;
  }
}
