/* ============================================================
   Revenue Matrix — Document / legal page base
   Shared shell for content pages (Impresszum, Adatvédelem, ÁSZF)
   and a reusable foundation for future documents (e.g. kérdőív).
   Links colors_and_type.css for fonts + type/space tokens; the
   v2 "cinematic" colour layer is declared locally (same values
   the shipped landing uses), so these pages match the live site.
   ============================================================ */

:root {
  --bg-canvas:   #0B0E13;
  --bg-elevated: #141821;
  --bg-recessed: #070A0F;
  --line-soft:   rgba(246, 244, 240, 0.06);
  --line-strong: rgba(246, 244, 240, 0.14);
  --frost:       #82BFDC;
  --frost-ink:   #0B1E36;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--rm-fg-secondary);
  font-family: var(--rm-font-body);
  font-size: var(--rm-text-base);
  line-height: var(--rm-leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 34px; /* clears the pre-launch ribbon — remove at launch */
}

/* ============================================================
   Pre-launch "fejlesztés alatt" ribbon — remove .devbar markup +
   this block + body padding-top + .doc-top top offset at launch.
   ============================================================ */
.devbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(7, 10, 15, 0.94);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(130, 191, 220, 0.22);
  font-family: var(--rm-font-data, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-fg-tertiary);
  white-space: nowrap;
}
.devbar__lead { color: var(--frost); font-weight: 600; }
.devbar__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--frost);
  animation: devpulse 2.4s ease-out infinite;
}
@keyframes devpulse {
  0%   { box-shadow: 0 0 0 0 rgba(130,191,220,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(130,191,220,0); }
  100% { box-shadow: 0 0 0 0 rgba(130,191,220,0); }
}
@media (prefers-reduced-motion: reduce) { .devbar__dot { animation: none; } }
@media (max-width: 560px) {
  .devbar { letter-spacing: 0.1em; font-size: 10.5px; }
  .devbar__rest { display: none; }
}

/* subtle frost glow anchored top-right, like the landing */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 100% 0%, rgba(130,191,220,0.06), transparent 70%);
  z-index: 0;
}

/* ---------- top bar -------------------------------------- */
.doc-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-canvas) 80%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 34px; /* sits below the pre-launch ribbon — reset to 0 at launch */
}
.doc-top__brand { display: inline-flex; align-items: center; }
.doc-top__brand img { height: 26px; width: auto; display: block; }
.doc-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--rm-fg-tertiary);
  font-size: var(--rm-text-sm);
  text-decoration: none;
  transition: color var(--rm-dur-fast) var(--rm-ease-out);
}
.doc-back:hover { color: var(--frost); }
.doc-back svg { width: 14px; height: 8px; fill: currentColor; }

/* ---------- article -------------------------------------- */
.doc {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 48px) 96px;
}

.doc__eyebrow {
  font-family: var(--rm-font-data);
  font-size: var(--rm-text-data);
  font-weight: var(--rm-w-semibold);
  letter-spacing: var(--rm-tracking-caps);
  text-transform: uppercase;
  color: var(--frost);
  margin: 0 0 18px;
}
.doc__title {
  font-family: var(--rm-font-display);
  font-weight: 400;
  color: var(--rm-fg-primary);
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.doc__meta {
  font-family: var(--rm-font-data);
  font-size: var(--rm-text-xs);
  letter-spacing: 0.04em;
  color: var(--rm-fg-tertiary);
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

/* draft / disclaimer banner */
.doc-note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin: 0 0 40px;
  border: 1px solid rgba(224, 169, 59, 0.30);
  background: rgba(224, 169, 59, 0.07);
  border-radius: var(--rm-radius-md);
}
.doc-note__icon {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  color: var(--rm-warning);
}
.doc-note__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.doc-note p { margin: 0; font-size: var(--rm-text-sm); line-height: var(--rm-leading-normal); color: var(--rm-ink-200); }
.doc-note strong { color: var(--rm-fg-primary); font-weight: 600; }

/* section blocks */
.doc h2 {
  font-family: var(--rm-font-body);
  font-weight: var(--rm-w-semibold);
  color: var(--rm-fg-primary);
  font-size: var(--rm-text-xl);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 56px 0 4px;
  scroll-margin-top: 90px;
}
.doc h2 .doc__num {
  font-family: var(--rm-font-data);
  font-size: var(--rm-text-sm);
  color: var(--frost);
  margin-right: 12px;
  letter-spacing: 0.06em;
}
.doc h3 {
  font-family: var(--rm-font-body);
  font-weight: var(--rm-w-semibold);
  color: var(--rm-fg-primary);
  font-size: var(--rm-text-md);
  margin: 32px 0 4px;
}
.doc p { margin: 14px 0; }
.doc a:not(.doc-back):not(.doc-top__brand) {
  color: var(--frost);
  text-decoration: none;
  border-bottom: 1px solid rgba(130,191,220,0.3);
  transition: border-color var(--rm-dur-fast) var(--rm-ease-out);
}
.doc a:not(.doc-back):not(.doc-top__brand):hover { border-color: var(--frost); }
.doc ul, .doc ol { margin: 14px 0; padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--rm-fg-tertiary); }
.doc strong { color: var(--rm-ink-100); font-weight: 600; }
.doc small { color: var(--rm-fg-tertiary); font-size: var(--rm-text-xs); }

/* a key/value table for the Impresszum data */
.doc-data {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--rm-radius-md);
  overflow: hidden;
}
.doc-data tr { border-bottom: 1px solid var(--line-soft); }
.doc-data tr:last-child { border-bottom: 0; }
.doc-data th {
  text-align: left;
  vertical-align: top;
  width: 40%;
  padding: 14px 18px;
  background: var(--bg-elevated);
  color: var(--rm-fg-tertiary);
  font-family: var(--rm-font-data);
  font-size: var(--rm-text-xs);
  font-weight: var(--rm-w-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.doc-data td {
  padding: 14px 18px;
  color: var(--rm-fg-primary);
  font-size: var(--rm-text-sm);
}
/* clearly-marked placeholder token */
.ph {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--rm-radius-xs);
  background: rgba(130,191,220,0.10);
  border: 1px dashed rgba(130,191,220,0.45);
  color: var(--frost);
  font-family: var(--rm-font-data);
  font-size: 0.92em;
  letter-spacing: 0;
}

/* ---------- footer --------------------------------------- */
.doc-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-soft);
  padding: 32px clamp(20px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.doc-foot__copy { color: var(--rm-fg-tertiary); font-size: var(--rm-text-xs); }
.doc-foot__links { display: flex; flex-wrap: wrap; gap: 20px; }
.doc-foot__links a {
  color: var(--rm-fg-secondary);
  font-size: var(--rm-text-sm);
  text-decoration: none;
  transition: color var(--rm-dur-fast) var(--rm-ease-out);
}
.doc-foot__links a:hover { color: var(--frost); }
.doc-foot__links a[aria-current="page"] { color: var(--frost); }
