/* ======================================================================
   ✅ Moon-Host — Legal/Docs Unified Styles (mh-legal-docs.css)
   v4.3 — “SQUARED UI + BORDER OFF + LANDING v2 AMBIENT BG”
   ====================================================================== */

:root{
  /* ✅ Landing v2 tokens */
  --mh-bg:#07080c;
  --mh-bg2:#0b0d12;

  --mh-red:#ff4a4a;
  --mh-red2:#e83a3a;
  --mh-accent-rgb: 255, 74, 74;

  --mh-blue-rgb: 130, 160, 255;

  /* ✅ Biztosan nem lóg ki (vw helyett calc) */
  --wrap: min(1840px, calc(100% - 32px));
  --nav-w: 340px;

  /* ✅ FULL SQUARED UI */
  --r-lg: 0px;
  --r-md: 0px;
  --r-sm: 0px;

  /* ✅ ONLY BUTTONS: MINIMAL ROUND */
  --mh-btn-radius: 8px;
  --mh-btn-radius-sm: 6px;

  --glass: rgba(20, 20, 26, .42);
  --glass-2: rgba(20, 20, 26, .28);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --shadow-soft: 0 18px 70px rgba(0,0,0,.46);
  --shadow-nav: 0 18px 80px rgba(0,0,0,.52);
}

/* ✅ Anti “1-2px kifutás” csomag */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{
  max-width: 100%;
  overflow-x: hidden; /* ✅ NINCS jobbra görgetés */
}

/* Base font */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, select,
.heading, .main-two, .boxy, .features, .faq, .searchdomain, .ordernow{
  font-family: 'Poppins', sans-serif;
}

body{
  color: var(--text);

  /* ✅ Landing v2 ambient background (no JS needed) */
  background:
    radial-gradient(1200px 600px at 18% 25%, rgba(var(--mh-accent-rgb), .14), transparent 60%),
    radial-gradient(900px 500px at 80% 15%, rgba(var(--mh-blue-rgb), .10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.80)),
    var(--mh-bg);
}

/* extra vignette / pro depth */
body:before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(1100px 680px at 52% 12%, rgba(0,0,0,.20), transparent 62%),
    radial-gradient(900px 540px at 16% 72%, rgba(0,0,0,.18), transparent 66%),
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.58));
}

/* content mindig felette */
#content{ display:none; position:relative; z-index:2; }

/* Scroll progress */
.scroll-progress{
  position: fixed;
  top:0; left:0;
  width:100%;
  height:3px;
  z-index:9998;
  background: rgba(255,255,255,.06);
}
.scroll-progress span{
  display:block;
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(var(--mh-accent-rgb), .92), rgba(var(--mh-accent-rgb), .10));
  box-shadow: 0 0 16px rgba(var(--mh-accent-rgb), .30);
}

/* npage neutral */
.npage{
  background: transparent !important;
  box-shadow: none !important;
  padding: 18px 0 44px 0;
}

/* HERO */
.docs-hero{ padding: 18px 0 10px; }
.docs-hero .wrap{
  width: var(--wrap);
  margin: 0 auto;
  max-width: 100%;
}
.docs-title{
  font-size: clamp(30px, 3.1vw, 48px);
  font-weight: 950;
  letter-spacing:.2px;
  margin:0;
  color:#fff;
  text-shadow: 0 14px 48px rgba(0,0,0,.55);
}
.docs-subtitle{
  margin-top:8px;
  max-width: 1180px;
  color: var(--muted);
  line-height:1.7;
  font-size: 15px;
}

/* docs-shell: csak layout keret */
.docs-shell{
  width: var(--wrap);
  margin: 14px auto 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  max-width: 100%;
}

/* Layout default */
.docs-layout{
  display:grid;
  grid-template-columns: 1fr var(--nav-w);
  gap: 18px;
  align-items: start;
  max-width: 100%;
}

/* Main */
.docs-main{ padding: 0; min-width: 0; } /* ✅ grid overflow ellen */
.docs-nav{ min-width: 0; }              /* ✅ grid overflow ellen */

/* 1 db prémium felület (SQUARED + BORDER OFF) */
.doc-surface{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    var(--glass);
  border: 0;                 /* ✅ border OFF */
  border-radius: 0;          /* ✅ squared */
  padding: clamp(18px, 2vw, 28px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  max-width: 100%;
  overflow: hidden; /* ✅ belső kifutások ellen */
}

/* doc-content wrapper NE adjon plusz réteget */
.doc-content{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0;
}

/* Typography */
.doc-content h1, .doc-surface h1{
  font-size: 28px;
  font-weight: 950;
  margin: 0 0 14px 0;
  color:#fff;
}
.doc-content h2, .doc-surface h2{
  font-size: 20px;
  font-weight: 950;
  margin: 18px 0 10px 0;
  color:#fff;
}
.doc-content h3, .doc-surface h3{
  font-size: 16px;
  font-weight: 900;
  margin: 14px 0 8px 0;
  color: rgba(255,255,255,.92);
}
.doc-content p, .doc-content li, .doc-content address,
.doc-surface p, .doc-surface li, .doc-surface address{
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.95;
}
.doc-content ul, .doc-content ol,
.doc-surface ul, .doc-surface ol{
  padding-left: 1.2rem;
}
.doc-content li, .doc-surface li{ margin: .28rem 0; }

.doc-content a, .doc-surface a{
  color:#fff;
  text-decoration:none;
  border-bottom: 1px solid rgba(var(--mh-accent-rgb), .55);
}
.doc-content a:hover, .doc-surface a:hover{ border-bottom-color:#fff; }

hr{
  border:0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 18px 0;
}

/* Callout (SQUARED + BORDER OFF) */
.doc-callout, .docs-callout{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 0;
  background: rgba(255,255,255,.06);
  border: 0;
  color: rgba(255,255,255,.90);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.doc-callout strong, .docs-callout strong{ color:#fff; }

/* =========================================================
   ✅ USERCENTRICS “DON’T BREAK MY LAYOUT” PACK
   ========================================================= */
.uc-privacy-policy,
.uc-privacy-policy *{
  box-sizing: border-box;
  max-width: 100%;
}

.uc-privacy-policy{
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

/* Headings */
.uc-privacy-policy h1,
.uc-privacy-policy h2,
.uc-privacy-policy h3,
.uc-privacy-policy h4{
  color:#fff;
  font-weight: 950;
  letter-spacing:.1px;
}
.uc-privacy-policy h1{ font-size: 28px; margin: 0 0 14px 0; }
.uc-privacy-policy h2{ font-size: 20px; margin: 18px 0 10px 0; }
.uc-privacy-policy h3{ font-size: 16px; margin: 14px 0 8px 0; }

.uc-privacy-policy p,
.uc-privacy-policy li{
  color: rgba(255,255,255,.88);
}

/* Links */
.uc-privacy-policy a{
  color:#fff;
  text-decoration:none;
  border-bottom: 1px solid rgba(var(--mh-accent-rgb), .55);
}
.uc-privacy-policy a:hover{ border-bottom-color:#fff; }

/* Media */
.uc-privacy-policy img,
.uc-privacy-policy video,
.uc-privacy-policy iframe,
.uc-privacy-policy svg{
  max-width: 100%;
  height: auto;
}

/* ✅ Táblák: soha ne lógjanak ki (SQUARED + BORDER OFF) */
.uc-privacy-policy table{
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 14px 0;
  background: rgba(0,0,0,.18);
  border: 0;
  border-radius: 0;
  overflow-x: auto;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.uc-privacy-policy table thead,
.uc-privacy-policy table tbody{
  display: table;
  width: 100%;
}
.uc-privacy-policy table th,
.uc-privacy-policy table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Code (SQUARED + BORDER OFF) */
.uc-privacy-policy pre,
.uc-privacy-policy code{
  background: rgba(0,0,0,.30);
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  color: rgba(255,255,255,.90);
  max-width: 100%;
  overflow:auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* =========================================================
   ✅ NAV (Inhalt)
   - Mobile: drawer (marad)
   - Desktop: felül TOP BAR + vízszintes scroll (téglalap)
   ========================================================= */
.docs-nav{
  padding: 0;
  background: transparent;
  border: 0;
  max-width: 100%;
}

.nav-card{
  width: 100%;
  max-width: 100%;
  position: sticky;
  top: 88px;

  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    var(--glass-2);
  border: 0;             /* ✅ border OFF */
  border-radius: 0;      /* ✅ squared */
  padding: 14px;

  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  overflow: hidden;
}

.nav-title{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin: 0 0 12px 0;
}
.nav-title h3{
  margin:0;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.nav-badge{
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,255,255,.74);
  border: 0;            /* ✅ border OFF */
  background: rgba(255,255,255,.07);
  padding: 4px 8px;
  border-radius: 0;     /* ✅ squared */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.nav-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  max-width: 100%;
}

.nav-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 0;            /* ✅ squared */
  background: rgba(255,255,255,.06);
  border: 0;                   /* ✅ border OFF */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);

  color: rgba(255,255,255,.88);
  text-decoration:none;
  font-size: 13.3px;
  font-weight: 850;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  user-select:none;
}
.nav-chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  color:#fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.nav-chip.active{
  background: rgba(var(--mh-accent-rgb), .16);
  color:#fff;
  box-shadow:
    inset 0 0 0 1px rgba(var(--mh-accent-rgb), .22),
    0 10px 30px rgba(var(--mh-accent-rgb), .12);
}
.nav-dot{
  width:8px; height:8px;
  border-radius: 0; /* ✅ squared */
  background: rgba(255,255,255,.34);
}
.nav-chip.active .nav-dot{
  background: var(--mh-red);
  box-shadow: 0 0 14px rgba(var(--mh-accent-rgb), .45);
}

/* =========================================================
   ✅ TOC TOP BAR (DESKTOP) — 1 sor, ha nem fér: vízszintes scroll
   ========================================================= */
@media (min-width: 981px){
  .docs-layout{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: start;
  }

  .docs-nav{
    order: -1;
    margin: 0 0 14px 0;
  }

  .nav-card{
    position: relative !important;
    top: auto !important;
  }

  .nav-chips{
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    max-width: 100%;
  }

  .nav-chip{
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-chips::-webkit-scrollbar{ height: 8px; }
  .nav-chips::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.16);
    border-radius: 999px; /* scrollbar lehet kerek */
  }
  .nav-chips::-webkit-scrollbar-track{
    background: rgba(255,255,255,.06);
    border-radius: 999px; /* scrollbar lehet kerek */
  }
}

/* Mobile nav drawer (BUTTONS: minimal round) */
.nav-fab{
  display:none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9997;
  border: 0;
  border-radius: var(--mh-btn-radius);
  padding: 12px 14px;
  font-weight: 950;
  font-size: 13px;
  color:#fff;
  background: rgba(var(--mh-accent-rgb), .95);
  box-shadow: 0 18px 46px rgba(var(--mh-accent-rgb), .18);
}
.nav-overlay{
  display:none;
  position: fixed;
  inset:0;
  z-index:9996;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-drawer{
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  bottom: 14px;
  width: min(900px, 95vw);
  max-width: 95vw;
  z-index: 9997;

  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    rgba(10,10,12,.74);

  border: 0;                 /* ✅ border OFF */
  border-radius: 0;          /* ✅ squared */
  padding: 14px;

  box-shadow: 0 28px 110px rgba(0,0,0,.70);
  transition: transform .18s ease;
  overflow: hidden;
}
.nav-drawer .nav-title{ margin-bottom: 12px; }

.nav-close{
  border: 0;
  background: rgba(255,255,255,.07);
  color:#fff;
  padding: 6px 10px;
  border-radius: var(--mh-btn-radius-sm);
  font-weight: 950;
  font-size: 12px;
  cursor:pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
body.nav-open .nav-overlay{ display:block; }
body.nav-open .nav-drawer{ transform: translateX(-50%) translateY(0%); }

/* Footer terms */
.legal-terms{
  width: var(--wrap);
  margin: 16px auto 0;
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  text-align:center;
  max-width: 100%;
}
.legal-terms a{
  color:#fff;
  border-bottom: 1px solid rgba(var(--mh-accent-rgb), .55);
  text-decoration:none;
}
.legal-terms a:hover{ border-bottom-color:#fff; }

/* Responsive */
@media (max-width: 1200px){
  :root{ --nav-w: 320px; }
}
@media (max-width: 980px){
  .docs-layout{ grid-template-columns: 1fr; }
  .docs-nav{ display:none; }
  .nav-fab{ display:inline-flex; align-items:center; gap:8px; }
}
