html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  box-sizing: border-box;
}

body {
  color: #E6EBFB;
  margin: 0;
  font-size: 12px;
  font-family: 'Oxanium', Tahoma, sans-serif;
  background-color: #040e1e;
  background-image:
    radial-gradient(circle, rgba(80,150,210,0.09) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0px, transparent 47px, rgba(50,110,170,0.055) 47px, rgba(50,110,170,0.055) 48px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 47px, rgba(50,110,170,0.055) 47px, rgba(50,110,170,0.055) 48px),
    radial-gradient(ellipse at center, transparent 48%, rgba(2,5,12,0.78) 100%);
  background-attachment: fixed, fixed, fixed, fixed;
}

#ogxStarCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.portal-space {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.portal-space-grid {
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(rgba(80, 140, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 140, 220, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .25;
}

.portal-space-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.portal-space-glow-a {
  width: 340px;
  height: 340px;
  background: rgba(42, 121, 255, 0.18);
  top: 12%;
  left: 7%;
}

.portal-space-glow-b {
  width: 300px;
  height: 300px;
  background: rgba(0, 196, 255, 0.12);
  right: 8%;
  bottom: 10%;
}

.ogx-legacy-topnav {
  background: #111827;
  padding: 8px 14px;
  color: #a0a0a0;
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 0 6px #000;
  gap: 14px;
  min-height: 58px;
}

.ogx-topnav-side {
  display: flex;
  align-items: center;
}

.ogx-topnav-side-left { justify-content: flex-start; }
.ogx-topnav-side-right { justify-content: flex-end; }
.ogx-topnav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
}

.ogx-topnav-title-main {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  letter-spacing: 0.20em;
  color: #f2f6ff;
  text-shadow: 0 0 10px rgba(120,180,255,.12);
}

.ogx-topnav-title-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #9ba7bc;
  margin-top: 5px;
  white-space: nowrap;
}

.ogx-topnav-title-sub2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #19a0ee;
  margin-top: 3px;
  white-space: nowrap;
  text-transform: uppercase;
}

.ogx-topnav-spacer { height: 74px; }
.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #415680;
  text-decoration: none;
  color: #e6ebfb;
  background: linear-gradient(180deg, #344566 0%, #253046 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 6px rgba(0,0,0,.35);
}
.top-link:hover { filter: brightness(1.08); }

.portal-mobile-topbar,
.portal-mobile-menu-overlay,
.portal-mobile-menu,
.desktop-hidden { display: none; }

.portal-content {
  width: 100%;
  padding: 0 16px 50px;
}

.portal-solo-wrap {
  max-width: 1240px;
  margin: 0 auto;
}

.legal-wrap {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 88px;
}

.legal-panel,
.legal-article,
.legal-card,
.notice-card {
  border: 1px solid #415680;
  background: linear-gradient(180deg, rgba(17,29,52,.95) 0%, rgba(10,18,34,.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 34px rgba(0,0,0,.28);
}

.legal-panel {
  padding: 14px;
  margin-bottom: 14px;
}

.legal-panel-title,
.article-head,
.card-title {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-panel-title {
  font-size: 11px;
  color: #dce9ff;
  margin-bottom: 12px;
}

.legal-nav {
  display: grid;
  gap: 8px;
}

.legal-nav-link,
.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: #d9e7ff;
  border: 1px solid rgba(92,122,173,.45);
  background: rgba(42,57,87,.65);
  padding: 9px 11px;
}

.legal-nav-link:hover,
.mobile-nav-link:hover { background: rgba(57,77,118,.85); }
.legal-nav-link.is-active,
.mobile-nav-link.is-active {
  background: linear-gradient(180deg, rgba(38,90,168,.78) 0%, rgba(25,60,118,.88) 100%);
  border-color: #72a6ff;
  box-shadow: 0 0 12px rgba(47,128,255,.22);
}

.legal-meta-line {
  margin: 7px 0;
  color: #b9c8e4;
}

.legal-main { min-width: 0; }

.legal-article {
  margin-bottom: 18px;
  overflow: hidden;
}

.article-head {
  padding: 12px 16px;
  background: #253046;
  color: #f1f6ff;
  font-size: 11px;
}

.article-body {
  padding: 18px;
}

.hero-grid,
.card-grid,
.quick-grid {
  display: grid;
  gap: 14px;
}

.hero-grid { grid-template-columns: 1.2fr .8fr; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.legal-card,
.notice-card { padding: 16px; }
.card-title {
  font-size: 11px;
  color: #ebf3ff;
  margin-bottom: 8px;
}

.lead {
  font-size: 14px;
  line-height: 1.7;
  color: #eef5ff;
}

.muted { color: #b4c1d9; }

h1, h2, h3 {
  margin: 0 0 12px;
  color: #f3f7ff;
  font-weight: 600;
}

h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }

p, li {
  color: #d5e0f4;
  font-size: 13px;
  line-height: 1.72;
}

ul, ol { padding-left: 20px; }
li + li { margin-top: 6px; }

.notice-card {
  border-left: 3px solid #72a6ff;
  background: linear-gradient(180deg, rgba(22,39,69,.95) 0%, rgba(11,19,35,.98) 100%);
}

.table-wrap {
  overflow-x: auto;
}

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.legal-table th,
table.legal-table td {
  border: 1px solid #415680;
  padding: 10px;
  text-align: left;
  font-size: 12px;
  vertical-align: top;
}

table.legal-table th {
  background: #253046;
  color: #eef4ff;
  font-weight: 600;
}

table.legal-table td { background: rgba(37,48,70,.55); }

a { color: #87b7ff; }
a:hover { color: #a8ccff; }

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(114,166,255,.45);
  background: rgba(51,73,112,.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #d9e8ff;
}

.legal-footer {
  border-top: 1px solid rgba(83,111,160,.5);
  background: rgba(7,12,23,.85);
  margin-top: 20px;
}

.legal-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #aebbd3;
}

.legal-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .portal-mobile-topbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: 56px; background: #111827; box-shadow: 0 0 6px #000; align-items: center; justify-content: space-between; padding: 0 10px; }
  .portal-mobile-topbar-left, .portal-mobile-topbar-right { width: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }
  .portal-mobile-topbar-title { flex: 1; text-align: center; color: #fff; line-height: 1; user-select: none; }
  .portal-burger-btn { appearance:none; border:0; background:transparent; color:#fff; font-size:28px; line-height:1; cursor:pointer; padding:0; width:40px; height:40px; }
  .portal-mobile-menu-overlay.is-open { display:block; position:fixed; top:56px; left:0; right:0; bottom:0; background:rgba(0,0,0,.45); z-index:1198; }
  .portal-mobile-menu { position: fixed; top:56px; left:-300px; bottom:0; width:285px; max-width:86vw; background:#0f1726; box-shadow: 2px 0 14px rgba(0,0,0,.45); z-index:1199; overflow-y:auto; padding:14px; transition:left .22s ease; }
  .portal-mobile-menu.is-open { display:block; left:0; }
  .portal-mobile-menu-title { font-family:'Orbitron', sans-serif; font-size:12px; letter-spacing:.18em; color:#9fb4d8; text-transform:uppercase; margin-bottom:10px; }
  .portal-mobile-nav { display:grid; gap:8px; }
  .ogx-legacy-topnav { display:none; }
  .ogx-topnav-spacer { height: 56px; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-sidebar { display:none; }
  .hero-grid, .card-grid, .quick-grid { grid-template-columns: 1fr; }
}
