/* JoyFlock info pages (membership / terms / privacy / contact).
   Viewport shell: fixed header, independently scrolling content, footer
   pinned to the bottom of the viewport at all times.
   Loaded after portal.css and site-cursor.css. */

html,body{height:100%}
html{color-scheme:dark}
body{
  height:100dvh;min-height:0;margin:0;
  display:flex;flex-direction:column;overflow:hidden;
  background:#0b1020;color:#eaf0ff;
  font:16px/1.65 Inter,"Microsoft YaHei",system-ui,sans-serif;
}

/* ---------------------------------------------------------------- header */
.topbar{
  position:static;flex:0 0 auto;height:var(--chrome-height);
  padding:0 4vw;gap:30px;
  border-bottom:1px solid #ffffff0c;background:#0b1020;
}
.topbar nav{align-self:stretch;gap:8px;overflow:visible;min-width:0;white-space:normal}
.topbar nav a,.topbar nav a:last-child{
  display:inline-flex;align-items:center;
  padding:0 14px;border-radius:9px;
  color:#94a0be;font-size:12px;font-weight:700;
}
.topbar nav a:hover{color:#e7eeff;background:#ffffff0a}
.topbar nav .active,.topbar nav a.active{
  color:#fff;border-bottom:0;background:#1b254a;
}
.top-note{display:none}
.portal-language{
  margin-left:auto;flex:0 0 auto;min-width:96px;max-width:none;
  font:inherit;font-size:13px;font-weight:700;color:#e3eaff;
  background:#1b254a;border:1px solid #46518a;border-radius:10px;padding:8px 10px;
}
.portal-language:focus-visible{outline:2px solid #a8b8ff;outline-offset:3px}

/* -------------------------------------------------------------- content */
main{
  flex:1 1 auto;min-height:0;width:100%;max-width:none;
  display:flex;flex-direction:column;
  margin:0;padding:24px 4vw;overflow:hidden;
  background:none;border:0;border-radius:0;
}
/* The card keeps its full frame; long copy scrolls inside it. */
main article{
  flex:1 1 auto;min-height:0;width:min(880px,100%);
  margin:0 auto;padding:clamp(22px,3.4vw,42px);
  overflow-y:auto;overscroll-behavior:contain;
  background:#141b30;border:1px solid #ffffff0c;border-radius:12px;
  scrollbar-width:thin;scrollbar-color:#3b4878 transparent;
  scrollbar-gutter:stable;
}
main article::-webkit-scrollbar{width:10px}
main article::-webkit-scrollbar-track{background:transparent}
main article::-webkit-scrollbar-thumb{background:#3b4878;border:3px solid #141b30;border-radius:10px}
main article h1{
  margin:0 0 10px;font-size:clamp(24px,2.4vw,30px);
  line-height:1.3;letter-spacing:-.5px;color:#f6f7ff;
}
main article h2{
  margin:30px 0 10px;padding-top:18px;
  border-top:1px solid #ffffff0d;
  font-size:16px;line-height:1.4;color:#f0f4ff;
}
main article p{
  margin:0 0 14px;color:#aebcd9;font-size:14px;line-height:1.85;
  overflow-wrap:anywhere;
}
main article strong{color:#e7eeff}
main article a{color:#aab9ff;text-decoration:underline;text-underline-offset:3px}
main article a:hover{color:#d2dcff}

/* --------------------------------------------------------------- footer */
body>footer{
  flex:0 0 auto;display:flex;align-items:center;gap:14px;
  width:100%;margin:0;padding:7px 4vw;
  border-top:1px solid #ffffff1a;background:#0e1428;
  box-shadow:0 -10px 30px #00000055;
  color:#6f7d9c;font-size:10px;
}
body>footer .brand{
  font:900 15px Nunito,system-ui;letter-spacing:-1px;color:#a4b1d4;
}
body>footer span{margin-left:6px}
body>footer div{margin-left:auto;display:flex;gap:14px}
body>footer div a:hover{color:#aab9ff}

/* ------------------------------------------------------------ responsive */
@media(max-width:920px){
  .topbar{padding:0 20px;gap:18px}
  main{padding:18px 20px}
  body>footer{padding:7px 20px}
}
@media(max-width:600px){
  .topbar{height:var(--chrome-height);padding:0 14px;gap:12px}
  .topbar nav{gap:4px}
  .topbar nav a,.topbar nav a:last-child{font-size:12px;padding:0 9px}
  .portal-language{min-width:88px;font-size:11px;padding:6px}
  main{padding:14px}
  main article{padding:20px}
  main article h1{font-size:22px}
  body>footer{flex-wrap:wrap;gap:10px;font-size:10px}
  body>footer div{margin-left:0;width:100%;gap:16px}
}
