/* Loop Magazin — Legal pages stylesheet
   Inherits the magazine's monochrome editorial system. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #ffffff;
  --paper-soft: #fafafa;
  --paper-deep: #f0f0f0;
  --ink: #000000;
  --ink-soft: #1a1a1a;
  --ink-muted: #6e6e6e;
  --ink-quiet: #a8a8a8;
  --border: #000000;
  --border-soft: #d4d4d4;
  --border-mute: #ebebeb;
  --accent-red: #c8102e;
  --font-display: "Playfair Display", "Bodoni 72", "Didot", "Times New Roman", serif;
  --font-body: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.legal-header {
  border-bottom: 2px solid var(--ink);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.back-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--ink); }
.masthead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.masthead span { font-weight: 400; font-style: italic; }

/* ===== PAGE LAYOUT ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 40px 120px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.deck {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 640px;
}

.meta-line {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 48px;
  font-family: var(--font-mono);
}
.meta-line strong { color: var(--ink); font-weight: 600; }

/* ===== BLOCK ===== */
.block {
  margin-bottom: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-mute);
}
.block:first-of-type { border-top: 0; padding-top: 0; }

h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
h2 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
}

h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  margin: 28px 0 12px;
}

p {
  margin-bottom: 14px;
  max-width: 660px;
}
p strong { font-weight: 700; color: var(--ink); }
p em { font-style: italic; }

.note {
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--border-soft);
}

/* ===== INFO TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 14.5px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--border-mute);
  vertical-align: top;
}
.info-table th {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  width: 200px;
  white-space: nowrap;
}
.info-table td a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.info-table td a:hover { color: var(--accent-red); }

/* ===== LISTS ===== */
ul, ol { margin: 14px 0 18px 0; padding-left: 22px; max-width: 660px; }
li { margin-bottom: 8px; line-height: 1.55; }
.link-list { list-style: none; padding-left: 0; }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--border-mute); }
.link-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}
.link-list a:hover { color: var(--accent-red); border-color: var(--accent-red); }

/* ===== CALLOUT ===== */
.callout {
  background: var(--paper-soft);
  border-left: 4px solid var(--ink);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14.5px;
}
.callout-warn { border-left-color: var(--accent-red); background: #fdf3f3; }
.callout-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.callout-warn .callout-eyebrow { color: var(--accent-red); }
.callout p { margin-bottom: 6px; max-width: none; }
.callout p:last-child { margin-bottom: 0; }

/* ===== DEFINITION TABLE for Adatkezelési ===== */
.def-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 14px 0 24px;
  border: 1px solid var(--ink);
}
.def-table thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.def-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-mute);
  vertical-align: top;
}
.def-table tr:last-child td { border-bottom: 0; }
.def-table td:first-child { font-weight: 600; width: 30%; }

/* ===== TOC ===== */
.toc {
  background: var(--paper-soft);
  border: 1px solid var(--border-soft);
  padding: 22px 26px;
  margin: 28px 0 48px;
  font-size: 14px;
}
.toc-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.toc ol { list-style: none; padding: 0; counter-reset: toc; margin: 0; }
.toc li {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px dotted var(--border-soft);
}
.toc li:last-child { border-bottom: 0; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--ink-quiet);
  margin-right: 14px;
  font-size: 12px;
}
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-red); }

/* ===== FOOTER ===== */
.legal-footer {
  border-top: 2px solid var(--ink);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  .legal-header { padding: 14px 20px; }
  .legal-page { padding: 40px 22px 80px; }
  .legal-footer { padding: 24px 22px; flex-direction: column; }
  h1 { font-size: 40px; }
  h2 { font-size: 26px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .info-table th { width: 140px; font-size: 10px; }
  .info-table { font-size: 13px; }
}
