/* NiviLoop service pages — shared with homepage design system (2026) */
:root {
  --teal: #0D9488;
  --teal-light: #5EEAD4;
  --teal-dark: #0F766E;
  --teal-deep: #134E4A;
  --surface-dark: #134E4A;
  --surface-dark-mid: #115E59;
  --surface-dark-soft: #0F5C54;
  --teal-pale: #CCFBF1;
  --teal-glow: rgba(13,148,136,.2);
  --ink: #0A1214;
  --anthracite: #1C1917;
  --stone: #6B6560;
  --warm-gray: #A8A29E;
  --off-white: #FAFAF9;
  --smoke: #F3F1ED;
  --white: #FFFFFF;
  --accent-amber: #F59E0B;
  --accent-violet: #7C3AED;
  --border: rgba(10,18,20,.08);
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-section-y: clamp(3rem, 6vw, 4.5rem);
  --space-section-x: clamp(1.5rem, 4vw, 2rem);
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.75rem, 3.8vw, 2.65rem);
  --text-4xl: clamp(2.1rem, 4.5vw, 3rem);
  --text-on-dark-muted: rgba(255,255,255,.72);
  --text-on-dark-subtle: rgba(255,255,255,.62);
  --shadow-card: 0 1px 0 rgba(10,18,20,.04), 0 12px 40px -8px rgba(10,18,20,.08);
  --shadow-glow: 0 0 0 1px rgba(13,148,136,.08), 0 24px 48px -12px var(--teal-glow);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --content-wide: 1080px;
  --accent: var(--teal-dark);
  --accent-soft: rgba(13,148,136,.1);
  /* Wayfinding hint — halk, szolgáltatásonkénti másodlagos jelzőszín. Sosem domináns. */
  --hint: var(--teal-deep);
  --hint-soft: rgba(19,78,74,.10);
}

/* Akcentus mindenhol teal; a téma csak a halk --hint-ben különbözik (wayfinding). */
.theme-nis2 { --accent: var(--teal-dark); --accent-soft: rgba(13,148,136,.1); --hint: var(--teal-deep); --hint-soft: rgba(19,78,74,.10); }
.theme-ai-act { --accent: var(--teal-dark); --accent-soft: rgba(13,148,136,.1); --hint: #7C3AED; --hint-soft: rgba(124,58,237,.10); }
.theme-gdpr { --accent: var(--teal-dark); --accent-soft: rgba(13,148,136,.1); --hint: #B45309; --hint-soft: rgba(180,83,9,.10); }
.theme-compliance { --accent: var(--teal-dark); --accent-soft: rgba(13,148,136,.1); --hint: var(--teal-deep); --hint-soft: rgba(19,78,74,.10); }

* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--teal-dark) }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 8px 8px;
}
.skip-link:focus-visible { left: 1rem; top: 0; z-index: 200 }

:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 4px }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px }

/* Interactive :active — press affordance */
.header-nav .cta:active,
aside.facts .cta:active,
.bottom-cta .cta:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.96);
}
.related-card:active {
  transform: translateY(-1px) scale(0.995);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,249,.78);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
}
.header-inner {
  max-width: var(--content-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem var(--space-section-x);
  min-height: 72px;
}
.site-header a.brand { display: flex; align-items: center; text-decoration: none }
.site-header a.brand img { height: 28px; width: auto }
.header-nav { display: flex; gap: var(--space-5); align-items: center; font-size: var(--text-sm); font-weight: 500 }
.header-nav a {
  color: var(--stone); text-decoration: none;
  transition: color .2s ease;
  cursor: pointer;
}
.header-nav a:hover,
.header-nav a:focus-visible { color: var(--teal-dark) }
.header-nav .cta {
  background: linear-gradient(145deg, var(--teal-dark), var(--teal));
  color: var(--white);
  padding: .5rem var(--space-4); border-radius: var(--radius-md); font-weight: 600;
  box-shadow: 0 4px 14px rgba(15,118,110,.22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  cursor: pointer;
}
.header-nav .cta:hover,
.header-nav .cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15,118,110,.3);
}
@media (max-width: 640px) { .header-nav a:not(.cta) { display: none } }

.service-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}
.service-hero:not(.legal-hero)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/hero-compliance.png') center 35% / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.service-hero:not(.legal-hero)::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(250,250,249,.96) 0%,
      rgba(250,250,249,.88) 32%,
      rgba(250,250,249,.65) 52%,
      rgba(250,250,249,.28) 72%,
      rgba(250,250,249,.08) 100%);
  pointer-events: none;
  z-index: 1;
}
.service-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,18,20,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,18,20,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  pointer-events: none;
  z-index: 2;
}
.service-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space-section-x) clamp(2.5rem, 5vw, 3.5rem);
  display: block;
}
.service-hero-copy {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.breadcrumb {
  font-size: var(--text-sm); color: var(--stone);
  margin-bottom: 0;
}
.breadcrumb a { color: var(--stone); text-decoration: none; transition: color .2s ease }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--teal-dark) }
.breadcrumb .sep { margin: 0 .45rem; opacity: .45 }
.breadcrumb .current { color: var(--ink); font-weight: 600 }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--hint); margin-bottom: 0;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--hint), transparent);
  border-radius: 2px;
}

.service-hero h1,
article h1 {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 0;
  text-wrap: balance;
}
.lede, .service-hero-lede {
  font-size: var(--text-lg);
  color: var(--stone);
  line-height: 1.6;
  max-width: 52ch;
}

.page {
  max-width: var(--content-wide); margin: 0 auto;
  padding: var(--space-section-y) var(--space-section-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-6);
}
@media (max-width: 900px) { .page { grid-template-columns: 1fr; gap: 2rem } }

article { max-width: 680px }
article h2 {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.8rem; margin-bottom: 1rem;
  letter-spacing: -.025em;
  line-height: 1.2;
  position: relative;
  padding-left: 1rem;
  text-wrap: balance;
}
article h2::before {
  content: "";
  position: absolute;
  left: 0; top: .2rem; bottom: .2rem;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}
article p { margin-bottom: 1.25rem; color: var(--ink); max-width: 68ch }
article p strong { color: var(--ink); font-weight: 600 }
article em { font-style: italic; color: var(--teal-dark); font-weight: 500 }
article .divider { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0 2rem }
article .closing {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
}
article .closing p { margin-bottom: .8rem }
article .closing p:last-child { margin-bottom: 0 }

.back-link {
  display: inline-block;
  font-size: var(--text-sm); color: var(--teal-dark);
  font-weight: 600; text-decoration: none;
  margin-bottom: var(--space-5);
  cursor: pointer;
  transition: color .2s ease;
}
.back-link:hover,
.back-link:focus-visible { text-decoration: underline; color: var(--teal-deep) }
.back-link:active { color: var(--teal-deep) }

aside.facts {
  position: sticky; top: 5.5rem; align-self: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-size: .92rem;
  box-shadow: var(--shadow-card);
}
aside.facts h3 {
  font-family: var(--font-head);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--stone);
  margin-bottom: 1.2rem;
  font-weight: 700;
}
aside.facts dl { margin: 0 0 1.5rem 0 }
aside.facts dt {
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--stone);
  margin-top: 1rem; margin-bottom: .3rem; font-weight: 600;
}
aside.facts dt:first-child { margin-top: 0 }
aside.facts dd {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -.02em;
}
aside.facts .sub {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 400;
  color: var(--stone); margin-top: .25rem; line-height: 1.45;
}
aside.facts .cta {
  display: block;
  background: linear-gradient(145deg, var(--teal-dark), var(--teal));
  color: var(--white);
  text-decoration: none;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 4px 14px rgba(15,118,110,.22);
  cursor: pointer;
}
aside.facts .cta:hover,
aside.facts .cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,118,110,.3);
}
@media (max-width: 900px) { aside.facts { position: static } }

.related {
  background: var(--smoke);
  padding: var(--space-section-y) var(--space-section-x);
  border-top: 1px solid var(--border);
}
.related-inner { max-width: var(--content-wide); margin: 0 auto }
.related h2 {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr } }
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: rgba(13,148,136,.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.related-card .eyebrow { margin-bottom: .45rem }
.related-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
  letter-spacing: -.02em;
}
.related-card p {
  font-size: .86rem;
  color: var(--stone);
  line-height: 1.5;
  margin: 0;
}

.bottom-cta {
  background:
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(13,148,136,.2), transparent 55%),
    linear-gradient(168deg, var(--surface-dark) 0%, var(--surface-dark-mid) 50%, var(--surface-dark-soft) 100%);
  color: var(--white);
  padding: var(--space-section-y) var(--space-section-x);
  text-align: center;
}
.bottom-cta-inner { max-width: 680px; margin: 0 auto }
.bottom-cta h2 {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .8rem;
  text-wrap: balance;
}
.bottom-cta p {
  color: var(--text-on-dark-muted);
  margin-bottom: 1.8rem;
  font-size: var(--text-lg);
  line-height: 1.6;
}
.bottom-cta .cta {
  display: inline-block;
  background: linear-gradient(145deg, var(--teal-dark), var(--teal-light));
  color: var(--white);
  text-decoration: none;
  padding: .95rem 1.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 8px 24px rgba(13,148,136,.3);
  cursor: pointer;
}
.bottom-cta .cta:hover,
.bottom-cta .cta:focus-visible { transform: translateY(-2px) }

footer {
  padding: var(--space-5) var(--space-section-x);
  text-align: center;
  background: linear-gradient(180deg, var(--off-white), var(--smoke));
  color: var(--stone);
  font-size: var(--text-sm);
  border-top: 1px solid var(--border);
}
footer a {
  color: var(--teal-dark); text-decoration: none;
  transition: color .2s ease;
  cursor: pointer;
}
footer a:hover,
footer a:focus-visible { text-decoration: underline; color: var(--teal-deep) }

@media (max-width: 768px) {
  .service-hero:not(.legal-hero)::before { background-position: 75% 25% }
  .service-hero:not(.legal-hero)::after {
    background: linear-gradient(180deg,
      rgba(250,250,249,.96) 0%,
      rgba(250,250,249,.9) 60%,
      rgba(250,250,249,.75) 100%);
  }
}

/* Legal pages — impresszum, adatvédelem */
.legal-page .legal-hero-inner {
  grid-template-columns: 1fr;
  max-width: 820px;
  align-items: start;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.legal-page .page.legal-content {
  max-width: 820px;
  display: block;
  padding-top: 0;
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  letter-spacing: -.025em;
  line-height: 1.2;
  position: relative;
  padding-left: 1rem;
  text-wrap: balance;
}
.legal-content h2::before {
  content: "";
  position: absolute;
  left: 0; top: .15rem; bottom: .15rem;
  width: 4px;
  background: var(--teal-dark);
  border-radius: 2px;
}
.legal-content h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: .55rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.legal-content p { margin-bottom: 1.1rem; max-width: 72ch }
.legal-content ul,
.legal-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
  max-width: 72ch;
}
.legal-content li { margin-bottom: .45rem }
.legal-content code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .88em;
  background: var(--smoke);
  padding: .12em .4em;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.legal-content .meta-table {
  width: 100%;
  margin: 1rem 0 2rem;
  border-collapse: collapse;
  font-size: .94rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.legal-content .meta-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-content .meta-table tr:last-child td { border-bottom: none }
.legal-content .meta-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 38%;
  background: var(--smoke);
}
.legal-content .update-line {
  font-size: .85rem;
  color: var(--stone);
  margin-bottom: 2rem;
  border-left: 4px solid var(--teal-dark);
  padding: .55rem 1rem;
  background: var(--white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-card);
  max-width: 72ch;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .related-card:hover, .related-card:active, .related-card:focus-visible,
  .bottom-cta .cta:hover, .bottom-cta .cta:active,
  .header-nav .cta:hover, .header-nav .cta:active,
  aside.facts .cta:hover, aside.facts .cta:active {
    transform: none !important;
    filter: none !important;
  }
}
