/* ==========================================================
   Legal pages (adatvédelem, impresszum) — tz-legal__*
   Uses tokens and buttons from main.css
   ========================================================== */

/* ---------- Hero (light band) ---------- */
.tz-legal__hero {
  padding: 56px 0 56px;
  background: var(--color-surface-2);
  border-bottom: 1px solid #ececec;
}
.tz-legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: #6b6b6b;
  font-size: 13px;
  font-weight: 600;
}
.tz-legal__crumbs a {
  color: var(--tz-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--duration-base) var(--easing-base), text-decoration-color var(--duration-base) var(--easing-base);
  cursor: pointer;
}
.tz-legal__crumbs a:hover,
.tz-legal__crumbs a:focus-visible { color: #b45f00; text-decoration-color: currentColor; }
.tz-legal__crumbs span[aria-current] { color: #6b6b6b; }

.tz-legal__title {
  max-width: 820px;
  margin-top: 4px;
  color: var(--tz-ink);
  font-size: var(--type-h1-size);
  font-weight: 800;
  line-height: 1.2;
}
.tz-legal__lead {
  max-width: 720px;
  margin-top: 20px;
  color: #555555;
  font-size: 16px;
  line-height: 1.75;
}
.tz-legal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.tz-legal__chips li {
  position: relative;
  padding: 9px 18px 9px 32px;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--tz-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.tz-legal__chips li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--tz-accent);
}

/* ---------- Body layout ---------- */
.tz-legal__body { padding: 70px 0 90px; background: var(--color-surface-page); }
.tz-legal__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.tz-legal__layout > * { min-width: 0; }

/* Table of contents */
.tz-legal__toc {
  position: sticky;
  top: 150px;
  padding: 26px 24px 24px;
  background: var(--color-surface-2);
  border-top: 3px solid var(--tz-accent);
}
.tz-legal__toc-title {
  color: var(--tz-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tz-legal__toc-list { margin-top: 14px; counter-reset: legal-toc; }
.tz-legal__toc-list li { counter-increment: legal-toc; border-top: 1px solid #e8e8e8; }
.tz-legal__toc-list li:first-child { border-top: 0; }
.tz-legal__toc-list a {
  display: block;
  position: relative;
  padding: 10px 0 10px 30px;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  transition: color var(--duration-base) var(--easing-base), padding-left var(--duration-base) var(--easing-base);
  cursor: pointer;
}
.tz-legal__toc-list a::before {
  content: counter(legal-toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  color: #b45f00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.tz-legal__toc-list a:hover,
.tz-legal__toc-list a:focus-visible { color: var(--tz-ink); padding-left: 34px; }

/* ---------- Document typography ---------- */
.tz-legal__doc { max-width: 780px; }
.tz-legal__sec { padding-top: 44px; scroll-margin-top: 150px; }
.tz-legal__sec:first-child { padding-top: 0; }
.tz-legal__sec + .tz-legal__sec { margin-top: 44px; border-top: 1px solid #ececec; }

.tz-legal__h2 {
  position: relative;
  color: var(--tz-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
}
.tz-legal__h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 14px;
  background: var(--tz-accent);
}
.tz-legal__h3 {
  margin-top: 28px;
  color: var(--tz-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}
.tz-legal__doc p {
  margin-top: 16px;
  color: #555555;
  font-size: 15.5px;
  line-height: 1.8;
}
.tz-legal__h2 + p,
.tz-legal__h2 + .tz-legal__kv { margin-top: 20px; }
.tz-legal__doc strong { color: var(--tz-ink); font-weight: 700; }

.tz-legal__list { margin-top: 16px; }
.tz-legal__list li {
  position: relative;
  padding: 0 0 0 24px;
  margin-top: 10px;
  color: #555555;
  font-size: 15.5px;
  line-height: 1.75;
}
.tz-legal__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tz-accent);
}

/* Inline links inside the text */
.tz-legal__link {
  color: var(--tz-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--tz-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color var(--duration-base) var(--easing-base), text-decoration-color var(--duration-base) var(--easing-base);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.tz-legal__link:hover,
.tz-legal__link:focus-visible { color: #b45f00; text-decoration-color: currentColor; }

/* Note box */
.tz-legal__note {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--color-surface-2);
  border-left: 4px solid var(--tz-accent);
}
.tz-legal__note-title { color: var(--tz-ink); font-size: 16px; font-weight: 800; line-height: 1.4; }
.tz-legal__doc .tz-legal__note p { margin-top: 8px; font-size: 15px; }
.tz-legal__doc .tz-legal__note .tz-legal__note-title + p { margin-top: 8px; }

/* Key / value rows */
.tz-legal__kv {
  margin-top: 20px;
  border: 1px solid #ececec;
  background: #ffffff;
}
.tz-legal__kv-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 22px;
  border-top: 1px solid #ececec;
}
.tz-legal__kv-row:first-child { border-top: 0; }
.tz-legal__kv-row > * { min-width: 0; }
.tz-legal__kv dt {
  color: var(--tz-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}
.tz-legal__kv dd {
  color: #555555;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Closing contact card */
.tz-legal__contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 28px;
  padding: 30px 32px;
  background: var(--color-surface-2);
  border-left: 5px solid var(--tz-accent);
}
.tz-legal__contact > * { min-width: 0; }
.tz-legal__doc .tz-legal__contact p { margin-top: 0; font-size: 15px; }
.tz-legal__contact-title { color: var(--tz-ink); font-size: 20px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }
.tz-legal__contact-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1200px) {
  .tz-legal__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 1024px) {
  .tz-legal__hero { padding: 48px 0 48px; }
  .tz-legal__body { padding: 56px 0 70px; }
  .tz-legal__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tz-legal__toc { position: static; }
  .tz-legal__toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
  .tz-legal__toc-list li:nth-child(2) { border-top: 0; }
  .tz-legal__doc { max-width: none; }
  .tz-legal__sec { scroll-margin-top: 90px; }
}

@media (max-width: 768px) {
  .tz-legal__hero { padding: 40px 0 40px; }
  .tz-legal__crumbs { margin-bottom: 22px; }
  .tz-legal__lead { font-size: 15px; }
  .tz-legal__body { padding: 44px 0 56px; }
  .tz-legal__h2 { font-size: 24px; }
  .tz-legal__sec { padding-top: 36px; }
  .tz-legal__sec + .tz-legal__sec { margin-top: 36px; }
  .tz-legal__contact { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 26px 24px; }
}

@media (max-width: 480px) {
  .tz-legal__chips { gap: 8px; }
  .tz-legal__chips li { padding: 8px 14px 8px 28px; font-size: 12px; }
  .tz-legal__chips li::before { left: 12px; }
  .tz-legal__toc { padding: 22px 18px 18px; }
  .tz-legal__toc-list { grid-template-columns: minmax(0, 1fr); }
  .tz-legal__toc-list li:nth-child(2) { border-top: 1px solid #e8e8e8; }
  .tz-legal__h2 { font-size: 22px; }
  .tz-legal__h3 { font-size: 17px; }
  .tz-legal__doc p,
  .tz-legal__list li { font-size: 15px; }
  .tz-legal__kv-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; }
  .tz-legal__note { padding: 16px 18px; }
  .tz-legal__contact { padding: 22px 18px; }
  .tz-legal__contact-btns { flex-direction: column; }
  .tz-legal__contact-btns .tz-btn { width: 100%; }
}

@media (max-width: 375px) {
  .tz-legal__hero { padding: 36px 0 34px; }
  .tz-legal__h2 { font-size: 21px; }
  .tz-legal__toc-list a { font-size: 13.5px; }
}
