/* Közös stílus a Terms of Service és a Privacy Policy oldalhoz */
:root {
  --bg: #ffffff;
  --text: #17171a;
  --muted: #64646b;
  --line: #e6e6ea;
  --soft: #f6f6f8;
  --accent: #f08a1c;      /* a logó narancssárgája */
  --accent-dark: #1d2a3a; /* a logó sötétkékje */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Fejléc: logó + domainnév ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}
.brand img { height: 46px; width: auto; display: block; }
.brand-name {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.header-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.header-link:hover { color: var(--text); text-decoration: underline; }

/* ---- Cím blokk ---- */
.doc-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 28px;
}
.doc-hero h1 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.doc-hero .lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
}
.doc-meta {
  margin-top: 16px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

/* ---- Tartalom + oldalsó tartalomjegyzék ---- */
.doc-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 48px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  font-size: 14px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 6px 0; line-height: 1.4; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a::before { content: counter(toc) ". "; color: var(--accent); font-weight: 600; }
.toc a:hover { color: var(--text); }

.doc { counter-reset: article; min-width: 0; }

/* Egy-egy fejezet */
.article {
  counter-increment: article;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.article:first-child { border-top: 0; padding-top: 0; }
.article h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.article h2::before {
  content: counter(article);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-2px);
}
.article h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 6px;
}
.article p { margin: 0 0 12px; text-align: justify; hyphens: auto; }
.article ul { margin: 4px 0 14px 0; padding-left: 0; list-style: none; }
.article li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}
.article li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.article a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--accent); }
.article li strong { display: block; }
.article li span { color: var(--muted); }

/* Kiemelt bekezdés */
.highlight {
  margin: 14px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #fff6ec;
}
.highlight p:last-child { margin-bottom: 0; }

.contact-card {
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.contact-card a { color: var(--accent-dark); font-weight: 600; }

/* Kitöltendő adat (cégnév, cím, ország, email) – élesítés előtt cseréld le */
.fill {
  padding: 0 5px;
  border-radius: 5px;
  background: #fff1b8;
  outline: 1px dashed #d9a400;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Lábléc ---- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--text); }

/* ---- Mobil ---- */
@media (max-width: 820px) {
  .doc-layout { grid-template-columns: 1fr; gap: 8px; }
  .toc {
    position: static;
    border-left: 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--soft);
    margin-bottom: 20px;
  }
  .article p { text-align: left; }
}
@media (max-width: 480px) {
  .site-header-inner { padding: 10px 16px; }
  .brand img { height: 36px; }
  .brand-name { font-size: 16px; }
  .header-link { font-size: 13px; }
  .hide-sm { display: none; }
  .doc-hero { padding: 32px 16px 20px; }
  .doc-layout { padding: 0 16px 56px; }
  .article h2 { font-size: 19px; }
  .site-footer-inner { padding: 20px 16px; }
}
