/* Family Memory – jogi és kiegészítő oldalak (adatvédelem, ÁSZF, impresszum, angol párjaik).
   Ugyanazok a változók és betűk, mint az index.html-ben; hosszú szövegre hangolt elrendezés. */
:root {
  --paper: #f7f1e8;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #2a211b;
  --ink-2: #5b4d42;
  --ink-3: #8a7a6c;
  --accent: #c2410c;
  --accent-2: #ea7a3c;
  --accent-soft: #fde7d6;
  --line: rgba(42, 33, 27, .1);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(42,33,27,.06), 0 12px 32px -12px rgba(42,33,27,.22);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; flex: none; }
.nav-links { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a.lang { font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 6px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); }
.nav-links a.lang:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--paper) !important;
}
.btn:hover { background: #000; }

/* ---------- dokumentum ---------- */
.doc-head { padding: clamp(40px, 6vw, 72px) 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.doc-head h1 { font-size: clamp(36px, 5vw, 60px); margin: 14px 0 14px; max-width: 16em; }
.doc-meta { color: var(--ink-3); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.doc-intro { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 44em; margin-top: 18px; }

.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: clamp(60px, 8vw, 110px); }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14.5px; padding: 4px 4px 4px 0; }
.toc h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }

.doc { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px); min-width: 0; }
.doc > section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 0 0 16px; }
.doc h3 { font-size: 21px; margin: 28px 0 10px; }
.doc p, .doc ul, .doc ol, .doc dl, .doc .table { margin: 0 0 14px; }
.doc p, .doc li, .doc dd { color: var(--ink-2); overflow-wrap: anywhere; }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc dl { display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr); gap: 8px 22px; }
.doc dt { font-weight: 600; color: var(--ink); }
.doc dd { margin: 0; }
.callout { background: var(--accent-soft); border-radius: 18px; padding: 18px 22px; margin: 0 0 18px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout p, .callout li { color: #4a2a17; }

/* táblázatok: kis képernyőn vízszintesen görgethető dobozban, az oldal nem csúszik szét */
.table { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.55; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.table th { background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }

/* kitöltendő adat (a tulajdonosnak feltűnjön) */
.fill { background: #fff1a8; color: #5a4300; border-radius: 5px; padding: 0 5px; box-shadow: inset 0 0 0 1px #e8cf55; white-space: normal; }

/* ---------- footer ---------- */
footer { padding: 36px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; max-height: none; background: var(--card); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
}
/* keskeny kijelzőn a táblázat sorai kártyák: minden cella előtt az oszlop neve (data-label) */
@media (max-width: 640px) {
  .table { overflow: visible; box-shadow: none; border-radius: 0; }
  .table table { min-width: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table table, .table tbody, .table tr, .table td { display: block; }
  .table tr { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 0; }
  .table tr + tr { margin-top: 12px; }
  .table td { border-bottom: 0; padding: 6px 16px; }
  .table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .table td:first-child { color: var(--ink); font-weight: 600; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .doc { border-radius: 20px; }
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc dd { margin-bottom: 10px; }
  .nav-links .btn { display: none; }
}
@media print {
  .nav, .toc, footer { display: none; }
  .doc-grid { display: block; }
  .doc { box-shadow: none; padding: 0; }
  .fill { box-shadow: none; }
}
