/* LeadsForged — shared styling for the standalone legal pages.
   Scoped entirely under .lf-legal (no bare * or body selectors), so it can never
   leak into the main site if these blocks are ever inlined elsewhere. */

.lf-legal {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0a0a0a;
  color: #e7e7e7;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.lf-legal .lf-legal-wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* header */
.lf-legal .lf-legal-header {
  border-bottom: 1px solid #1c1c1c;
  background: #0a0a0a;
  position: sticky; top: 0; z-index: 10;
}
.lf-legal .lf-legal-header .lf-legal-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.lf-legal .lf-legal-logo {
  font-weight: 900; font-size: 20px; letter-spacing: .5px; color: #fff;
  text-decoration: none;
}
.lf-legal .lf-legal-logo span { color: #F36828; }
.lf-legal .lf-legal-home {
  color: #b9b9b9; text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid #2a2a2a; border-radius: 8px; padding: 8px 14px; transition: .15s;
}
.lf-legal .lf-legal-home:hover { color: #fff; border-color: #F36828; }

/* body */
.lf-legal .lf-legal-main { padding: 40px 0 64px; }
.lf-legal .lf-legal-kicker {
  color: #F36828; font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 8px;
}
.lf-legal h1 { color: #fff; font-size: 34px; font-weight: 900; line-height: 1.2; margin: 0 0 8px; }
.lf-legal .lf-legal-updated { color: #8a8a8a; font-size: 14px; margin: 0 0 32px; }
.lf-legal h2 {
  color: #fff; font-size: 22px; font-weight: 800; margin: 50px 0 18px;
  padding-bottom: 10px; border-bottom: 1px solid #242424;
}
.lf-legal h3 { color: #fff; font-size: 16.5px; font-weight: 700; margin: 28px 0 8px; }
.lf-legal h3.lf-legal-sub { letter-spacing: .2px; }
.lf-legal h3.lf-legal-sub + p { margin-top: 0; }
.lf-legal p { margin: 0 0 15px; color: #d6d6d6; }
.lf-legal a { color: #F58a5b; text-decoration: underline; }
.lf-legal a:hover { color: #F36828; }
.lf-legal ul, .lf-legal ol { margin: 0 0 16px; padding-left: 22px; color: #d2d2d2; }
.lf-legal li { margin-bottom: 8px; }
.lf-legal strong { color: #fff; }

/* fill-in marker for data only the operator can supply */
.lf-legal .lf-fill {
  background: #3a2a12; color: #ffcf9e; border: 1px dashed #F36828;
  border-radius: 5px; padding: 1px 7px; font-weight: 600; font-size: .95em; white-space: nowrap;
}

/* data table (impresszum / processors) */
.lf-legal .lf-legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; }
.lf-legal .lf-legal-table th, .lf-legal .lf-legal-table td {
  text-align: left; padding: 11px 14px; border: 1px solid #232323; vertical-align: top; font-size: 15px;
}
.lf-legal .lf-legal-table th { background: #141414; color: #fff; font-weight: 700; width: 38%; }
.lf-legal .lf-legal-table td { color: #d2d2d2; }
/* multi-column data tables with a top header row (GDPR §10.2 / §10.4) */
.lf-legal .lf-legal-tablewrap { overflow-x: auto; margin: 6px 0 20px; }
.lf-legal .lf-legal-tablewrap .lf-legal-table { margin: 0; }
.lf-legal .lf-legal-table thead th { width: auto; white-space: nowrap; }

/* callout box (e.g. SimplePay notice) */
.lf-legal .lf-legal-box {
  background: #121212; border: 1px solid #262626; border-left: 3px solid #F36828;
  border-radius: 10px; padding: 16px 18px; margin: 16px 0 22px;
}
.lf-legal .lf-legal-box p:last-child { margin-bottom: 0; }

/* footer */
.lf-legal .lf-legal-footer {
  border-top: 1px solid #1c1c1c; padding: 28px 0; color: #8a8a8a; font-size: 14px;
}
.lf-legal .lf-legal-footer .lf-legal-wrap {
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
}
.lf-legal .lf-legal-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lf-legal .lf-legal-footer-links a { color: #b9b9b9; text-decoration: none; font-weight: 600; }
.lf-legal .lf-legal-footer-links a:hover { color: #F36828; }

/* styles for rendered-Markdown content (the migrated ÁSZF) */
.lf-legal blockquote { border-left: 3px solid #F36828; background: #121212; margin: 16px 0; padding: 12px 16px; border-radius: 0 8px 8px 0; color: #e7e7e7; }
.lf-legal blockquote p:last-child { margin-bottom: 0; }
.lf-legal h4 { color: #fff; font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.lf-legal h5, .lf-legal h6 { color: #fff; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.lf-legal hr { border: 0; border-top: 1px solid #232323; margin: 26px 0; }
.lf-legal em { color: #e7e7e7; font-style: italic; }
.lf-legal code { background: #1a1a1a; padding: 1px 6px; border-radius: 4px; font-size: .9em; color: #ffcf9e; }

@media (max-width: 560px) {
  .lf-legal h1 { font-size: 27px; }
  .lf-legal .lf-legal-table th { width: 42%; }
}

/* ============================================================
   ÁSZF long-document layout (scoped to .lf-legal--doc):
   sticky TOC sidebar, accent section numbers, preamble card,
   refined tables. Short legal pages are unaffected.
   ============================================================ */
.lf-legal--doc .lf-legal-wrap { max-width: 1140px; }
.lf-legal-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 56px; align-items: start; }
.lf-legal-content { min-width: 0; max-width: 800px; }
.lf-legal-content p, .lf-legal-content li { font-size: 15.5px; }

/* sticky table of contents */
.lf-legal-toc-wrap { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 98px); overflow-y: auto; padding-bottom: 20px; }
.lf-legal-toc .lf-legal-toc-title { color:#7e7e7e; font-size:11px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; margin:0 0 10px 13px; }
.lf-legal-toc ol { list-style:none; margin:0; padding:0; }
.lf-legal-toc li { margin:0; }
.lf-legal-toc a { display:flex; gap:7px; padding:6px 13px; border-left:2px solid #1d1d1d; color:#9a9a9a; font-size:12.5px; line-height:1.45; text-decoration:none; transition:.12s; }
.lf-legal-toc a:hover { color:#fff; background:#131313; border-left-color:#3a3a3a; }
.lf-legal-toc a.active { color:#fff; background:#171717; border-left-color:#F36828; font-weight:600; }
.lf-legal-toc .lf-legal-toc-num { color:#F36828; font-weight:700; flex-shrink:0; }

/* accent section numbers + subtitle */
.lf-legal .lf-legal-secnum { color:#F36828; font-weight:900; margin-right:5px; }
.lf-legal--doc .lf-legal-subtitle { border-bottom:0; color:#9a9a9a; font-size:17px; font-weight:600; margin:2px 0 10px; padding:0; }

/* preamble card */
.lf-legal .lf-legal-preamble {
  background:#101010; border:1px solid #242424; border-left:3px solid #F36828;
  border-radius:14px; padding:4px 24px 20px; margin:16px 0 42px;
}
.lf-legal .lf-legal-preamble h2 { border-bottom:0; font-size:16px; letter-spacing:.6px; margin-top:20px; }
.lf-legal .lf-legal-preamble p { color:#c4c4c4; font-size:14.5px; }
.lf-legal .lf-legal-preamble hr { display:none; }

/* refined doc tables (border on the wrapper; horizontal row separators only) */
.lf-legal--doc .lf-legal-tablewrap { border:1px solid #242424; border-radius:10px; }
.lf-legal--doc .lf-legal-table th, .lf-legal--doc .lf-legal-table td { border:0; border-bottom:1px solid #1f1f1f; }
.lf-legal--doc .lf-legal-table tbody tr:last-child td { border-bottom:0; }
.lf-legal--doc .lf-legal-table thead th { background:#121212; color:#F58a5b; font-size:12px; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid #2c2c2c; }

@media (max-width: 900px) {
  .lf-legal-layout { grid-template-columns: 1fr; gap: 0; }
  .lf-legal-toc-wrap { display: none; }
}

/* ---- mobile navigation + tables (ÁSZF long-doc only) ----
   Below 900px the desktop sticky sidebar is hidden; this collapsible
   table of contents takes its place so phone readers can still jump
   between the 17 sections. Scoped to the .lf-legal-toc-m element and
   .lf-legal--doc, so the short legal pages are completely unaffected. */
.lf-legal-toc-m { display: none; }
@media (max-width: 900px) {
  .lf-legal-toc-m {
    display: block; background: #101010; border: 1px solid #242424;
    border-radius: 12px; margin: 6px 0 30px; overflow: hidden;
  }
  .lf-legal-toc-m > summary {
    list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 18px; color: #fff; font-weight: 700; font-size: 14.5px; letter-spacing: .3px;
  }
  .lf-legal-toc-m > summary::-webkit-details-marker { display: none; }
  .lf-legal-toc-m-chev { color: #F36828; font-size: 11px; transition: transform .2s ease; }
  .lf-legal-toc-m[open] .lf-legal-toc-m-chev { transform: rotate(180deg); }
  .lf-legal-toc-m nav { padding: 6px 8px 10px; border-top: 1px solid #1f1f1f; }
  .lf-legal-toc-m ol { list-style: none; margin: 0; padding: 0; }
  .lf-legal-toc-m li { margin: 0; }
  .lf-legal-toc-m a { display: flex; gap: 8px; padding: 10px 12px; border-radius: 8px; color: #c4c4c4; font-size: 14px; line-height: 1.4; text-decoration: none; }
  .lf-legal-toc-m a:hover, .lf-legal-toc-m a:active { background: #1a1a1a; color: #fff; }
  .lf-legal-toc-m .lf-legal-toc-num { color: #F36828; font-weight: 700; flex-shrink: 0; }
  .lf-legal-toc-m-prev { margin-top: 4px; padding: 10px 12px 2px; border-top: 1px solid #1f1f1f; }
  .lf-legal-toc-m-prev-t { color: #7e7e7e; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; padding: 0 0 4px; }
  .lf-legal-toc-m-prev a { display: inline-block; color: #9a9a9a; font-size: 13.5px; padding: 6px 0; text-decoration: none; }
  .lf-legal-toc-m-prev a:hover { color: #fff; }
}
/* tighten the GDPR data tables on small screens so more fits before scrolling */
@media (max-width: 560px) {
  .lf-legal--doc .lf-legal-table th, .lf-legal--doc .lf-legal-table td { padding: 9px 11px; font-size: 13px; }
  .lf-legal--doc .lf-legal-tablewrap { -webkit-overflow-scrolling: touch; }
}
