/* Multi-function portal and legal pages */
.portal-page,
.terms-page {
  padding-bottom: 36px;
}

.portal-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  align-items: center;
  gap: 30px;
  padding: 78px 0 34px;
}

.portal-hero::before {
  content: "";
  position: absolute;
  top: 9%;
  left: -14%;
  width: 42%;
  height: 58%;
  border: 1px solid rgba(121, 231, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(44, 125, 255, 0.08);
  transform: rotate(-17deg);
  pointer-events: none;
}

.portal-hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  max-width: 680px;
}

.portal-hero h1,
.terms-hero h1 {
  margin: 22px 0 0;
  color: var(--ice);
  font-size: clamp(64px, 7.1vw, 112px);
  font-weight: 1000;
  line-height: 0.83;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.portal-hero h1 span,
.terms-hero h1 span {
  display: block;
  margin-top: 12px;
  background: linear-gradient(100deg, var(--cyan-bright) 2%, var(--blue) 48%, #a493ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(44, 125, 255, 0.26));
}

.portal-hero h1.portal-logo-title {
  width: min(680px, 100%);
  max-width: 100%;
  margin-top: 14px;
  line-height: 0;
  letter-spacing: 0;
}

.portal-logo-title img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(33, 94, 212, 0.28));
}

.portal-logo-title picture,
.service-store-art picture,
.terms-art picture,
.legal-character picture {
  display: block;
  width: 100%;
}

.portal-lead {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.72;
}

.portal-actions {
  margin-top: 34px;
}

.portal-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
  color: rgba(201, 248, 255, 0.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-pulse span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-pulse i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 13px var(--success);
  animation: portal-signal 2s ease-in-out infinite;
}

.portal-pulse span:nth-child(2) i { animation-delay: 0.4s; }
.portal-pulse span:nth-child(3) i { animation-delay: 0.8s; }

.portal-hero-visual {
  position: relative;
  min-height: 660px;
  isolation: isolate;
}

.portal-hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% -8% 0 4%;
  z-index: -3;
  border-radius: 50% 38% 46% 42%;
  background:
    radial-gradient(circle at 50% 45%, rgba(14, 57, 126, 0.26), transparent 48%),
    linear-gradient(135deg, rgba(7, 31, 77, 0.28), transparent 66%);
  filter: blur(8px);
  animation: portal-aura 5.5s ease-in-out infinite;
}

.portal-character {
  --base-x: 0px;
  --base-y: 0px;
  position: absolute;
  z-index: 4;
  right: 7%;
  bottom: 0;
  height: 650px;
  width: auto;
  filter:
    drop-shadow(0 30px 35px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 25px rgba(98, 190, 255, 0.28));
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0);
  transform-origin: bottom center;
}

.portal-character-aura {
  position: absolute;
  right: 4%;
  bottom: 5%;
  z-index: 1;
  width: 510px;
  height: 560px;
  border-radius: 48% 52% 44% 56%;
  background: radial-gradient(circle, rgba(42, 103, 178, 0.18), rgba(9, 38, 91, 0.11) 42%, transparent 70%);
  filter: blur(20px);
  animation: portal-breathe 3.8s ease-in-out infinite;
}

.portal-rune {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(121, 231, 255, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(44, 125, 255, 0.08), 0 0 40px rgba(44, 125, 255, 0.08);
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) rotate(0deg);
}

.portal-rune::before,
.portal-rune::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(121, 231, 255, 0.22);
  border-radius: inherit;
}

.portal-rune::after {
  inset: 22%;
  border-style: solid;
  border-color: rgba(128, 103, 255, 0.24);
}

.rune-one {
  top: 8%;
  right: 0;
  width: 570px;
  height: 570px;
  animation: portal-rune-spin 22s linear infinite;
}

.rune-two {
  right: 16%;
  bottom: 9%;
  width: 350px;
  height: 350px;
  animation: portal-rune-spin-reverse 16s linear infinite;
}

.portal-brand-orbit {
  position: absolute;
  z-index: 8;
  top: 4%;
  right: 4%;
  width: 190px;
  padding: 14px;
  border: 1px solid rgba(121, 231, 255, 0.28);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(8, 26, 60, 0.88), rgba(3, 8, 23, 0.84));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42), 0 0 45px rgba(44, 125, 255, 0.16);
  backdrop-filter: blur(18px);
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) rotate(3deg);
}

.portal-brand-orbit img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(2, 7, 22, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(121, 231, 255, 0.16),
    0 12px 34px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(44, 125, 255, 0.12);
}

.portal-brand-orbit div {
  display: grid;
  gap: 4px;
  padding: 12px 3px 2px;
}

.portal-brand-orbit small {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 0.2em;
}

.portal-brand-orbit strong {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.portal-float-card {
  position: absolute;
  z-index: 9;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(121, 231, 255, 0.22);
  border-radius: 17px;
  background: rgba(4, 13, 32, 0.8);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0);
}

.portal-float-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(44, 125, 255, 0.35), rgba(128, 103, 255, 0.16));
  color: var(--cyan-bright);
  font-size: 10px;
  font-weight: 1000;
}

.portal-float-card div { display: grid; gap: 3px; }
.portal-float-card small { color: var(--cyan); font-size: 8px; font-weight: 1000; letter-spacing: 0.16em; }
.portal-float-card strong { font-size: 12px; }
.float-store { top: 24%; left: -3%; }
.float-support { top: 49%; right: -5%; }
.float-access { bottom: 8%; left: 1%; }

.portal-marquee {
  position: relative;
  overflow: hidden;
  margin: 6px 0 30px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(44, 125, 255, 0.07), transparent);
}

.portal-marquee::before,
.portal-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  pointer-events: none;
}

.portal-marquee::before { left: 0; background: linear-gradient(90deg, var(--midnight), transparent); }
.portal-marquee::after { right: 0; background: linear-gradient(-90deg, var(--midnight), transparent); }

.portal-marquee > div {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 26px;
  color: rgba(201, 248, 255, 0.68);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.2em;
}

.portal-marquee i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.portal-section {
  position: relative;
  padding: 94px 0;
  scroll-margin-top: 24px;
}

.portal-heading {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.portal-heading h2,
.portal-community h2,
.portal-final h2,
.terms-content-head h2,
.terms-support h2 {
  margin: 10px 0 0;
  color: var(--ice);
  font-size: clamp(44px, 5.1vw, 72px);
  font-weight: 1000;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.portal-heading h2 em {
  color: var(--cyan);
  font-family: Georgia, serif;
  font-weight: 400;
}

.portal-services {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.88fr);
  gap: 18px;
  margin-top: 44px;
}

.service-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background:
    linear-gradient(145deg, rgba(10, 29, 63, 0.78), rgba(3, 9, 24, 0.88)),
    var(--surface);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(121, 231, 255, 0.42);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35), 0 0 50px rgba(44, 125, 255, 0.09);
}

.service-panel::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -28%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 125, 255, 0.2), transparent 66%);
  pointer-events: none;
}

.service-index {
  position: relative;
  z-index: 2;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.2em;
}

.service-store {
  grid-row: span 3;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background:
    linear-gradient(155deg, rgba(11, 41, 91, 0.84), rgba(5, 11, 29, 0.92) 64%),
    var(--surface);
}

.service-store::before {
  content: "BUXX";
  position: absolute;
  right: -0.08em;
  bottom: -0.12em;
  color: rgba(121, 231, 255, 0.035);
  font-size: clamp(110px, 17vw, 220px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.service-store-art {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 24px 0 30px;
  overflow: hidden;
  border: 1px solid rgba(121, 231, 255, 0.22);
  border-radius: 18px;
  background: rgba(2, 7, 22, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(44, 125, 255, 0.1);
}

.service-store-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 585;
  object-fit: contain;
}

.service-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-top: auto;
}

.service-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-store h3 {
  margin: 0;
  font-size: clamp(47px, 5vw, 74px);
  font-weight: 1000;
  line-height: 0.93;
  letter-spacing: -0.06em;
}

.service-store h3 span { color: var(--cyan); }
.service-store .service-copy > p:not(.service-kicker) { max-width: 560px; margin: 24px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.service-store .button { width: fit-content; }

.service-energy {
  position: absolute;
  top: 84px;
  right: 30px;
  bottom: 32%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  opacity: 0.48;
}

.service-energy span {
  width: 5px;
  border-radius: 99px;
  background: linear-gradient(to top, var(--blue), var(--cyan-bright));
  box-shadow: 0 0 14px var(--blue);
  animation: energy-meter 2.4s ease-in-out infinite;
}

.service-energy span:nth-child(1) { height: 24%; }
.service-energy span:nth-child(2) { height: 70%; animation-delay: 0.3s; }
.service-energy span:nth-child(3) { height: 42%; animation-delay: 0.6s; }

.service-support,
.service-terms,
.service-verify,
.service-account {
  min-height: 214px;
  padding: 26px;
}

.service-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 231, 255, 0.2);
  border-radius: 14px;
  background: rgba(44, 125, 255, 0.11);
  color: var(--cyan-bright);
  font-size: 21px;
  box-shadow: 0 0 25px rgba(44, 125, 255, 0.09);
}

.service-support h3,
.service-terms h3,
.service-verify h3,
.service-account h3 {
  max-width: calc(100% - 42px);
  margin: 38px 0 10px;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.service-support p,
.service-terms p,
.service-verify p,
.service-account p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.service-icon-image { padding: 5px; overflow: hidden; }
.service-icon-image img { width: 100%; height: 100%; border-radius: 9px; object-fit: contain; }
.service-account { background: linear-gradient(145deg, rgba(29, 69, 157, 0.6), rgba(3, 9, 24, 0.9)); }

.service-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-bright);
  font-size: 12px;
  font-weight: 900;
}

.service-link span { transition: transform 180ms ease; }
.service-link:hover span { transform: translateX(4px); }

.portal-community {
  min-height: 530px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 80px 5%;
  border: 1px solid var(--line);
  border-radius: 33px;
  background: linear-gradient(125deg, rgba(9, 34, 76, 0.78), rgba(4, 10, 25, 0.88));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.portal-community { margin-bottom: 78px; }

.community-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(121, 231, 255, 0.24);
  border-radius: 27px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 0 60px rgba(44, 125, 255, 0.11);
}

.community-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: scale(1.015); }

.community-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(121, 231, 255, 0.11), transparent 42%, rgba(128, 103, 255, 0.1));
  pointer-events: none;
}

.community-copy > p:not(.eyebrow) { max-width: 600px; margin: 24px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.72; }
.community-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.portal-final {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  margin: 84px 0 58px;
  padding: 52px;
  overflow: hidden;
  border: 1px solid rgba(121, 231, 255, 0.22);
  border-radius: 31px;
  background:
    linear-gradient(120deg, rgba(12, 55, 120, 0.82), rgba(8, 14, 52, 0.88) 64%),
    var(--surface);
  box-shadow: var(--shadow);
}

.portal-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 12%, rgba(121, 231, 255, 0.08) 30%, transparent 47%);
  transform: translateX(-110%);
  animation: final-sweep 5.6s ease-in-out infinite;
}

.portal-final-mark {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(121, 231, 255, 0.3);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(44, 125, 255, 0.36), rgba(128, 103, 255, 0.14));
  box-shadow: 0 0 45px rgba(44, 125, 255, 0.18), inset 0 0 24px rgba(121, 231, 255, 0.08);
}

.portal-final-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 23px;
  object-fit: contain;
  background: rgba(2, 7, 22, 0.78);
  filter: saturate(1.08) contrast(1.04);
  box-shadow: inset 0 0 0 1px rgba(121, 231, 255, 0.14);
}

.portal-final > div:not(.portal-final-mark),
.portal-final > a { position: relative; z-index: 2; }
.portal-final h2 { font-size: clamp(40px, 4.3vw, 64px); }
.portal-final p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); }

.portal-footer nav {
  justify-self: end;
  display: flex;
  gap: 18px;
  color: rgba(121, 231, 255, 0.62);
  font-weight: 900;
}

.portal-footer nav a:hover { color: var(--cyan-bright); }

/* Terms */
.terms-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: 54px;
  padding: 82px 0 58px;
}

.terms-hero-copy > p:not(.eyebrow):not(.terms-date) {
  max-width: 700px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.terms-hero h1 { font-size: clamp(58px, 6.6vw, 94px); }
.terms-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.terms-date {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  color: rgba(167, 187, 210, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terms-date span { width: 20px; height: 1px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.terms-art {
  position: relative;
  margin: 8px 0 34px;
  overflow: hidden;
  border: 1px solid rgba(121, 231, 255, 0.24);
  border-radius: 27px;
  background: rgba(2, 7, 22, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36), 0 0 50px rgba(44, 125, 255, 0.09);
}

.terms-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 585;
  object-fit: contain;
}

.terms-hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.legal-orbit {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(121, 231, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(44, 125, 255, 0.08), 0 0 70px rgba(44, 125, 255, 0.08);
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0);
  animation: portal-rune-spin 24s linear infinite;
}

.legal-orbit::before,
.legal-orbit::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(121, 231, 255, 0.2);
  border-radius: inherit;
}

.legal-orbit::after { inset: 23%; border-color: rgba(128, 103, 255, 0.24); }

.legal-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 18px var(--cyan);
}

.legal-orbit span:nth-child(1) { top: 7%; left: 48%; }
.legal-orbit span:nth-child(2) { right: 8%; bottom: 24%; }
.legal-orbit span:nth-child(3) { bottom: 12%; left: 20%; }

.legal-character {
  position: relative;
  z-index: 3;
  width: min(440px, 100%);
  display: grid;
  place-items: center;
  animation: legal-character-float 5.2s ease-in-out infinite;
}

.legal-character img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 34px rgba(67, 163, 255, 0.24));
}

.terms-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 18px 0 76px;
  padding: 30px 34px;
  border: 1px solid rgba(121, 231, 255, 0.25);
  border-radius: 25px;
  background: linear-gradient(120deg, rgba(15, 63, 137, 0.62), rgba(6, 14, 38, 0.86));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.05);
}

.terms-notice-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 231, 255, 0.34);
  border-radius: 22px;
  background: rgba(44, 125, 255, 0.2);
  color: var(--cyan-bright);
  font-size: 34px;
  font-weight: 1000;
  box-shadow: 0 0 35px rgba(44, 125, 255, 0.16);
}

.terms-notice h2 {
  margin: 6px 0 5px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.035em;
}

.terms-notice p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }

.terms-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
  scroll-margin-top: 24px;
}

.terms-index {
  position: sticky;
  top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(4, 12, 29, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.terms-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.terms-index-head span { color: var(--cyan); font-size: 10px; font-weight: 1000; letter-spacing: 0.18em; }
.terms-index-head small { color: var(--muted); font-size: 9px; }
.terms-index nav { display: grid; padding: 10px; }

.terms-index nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 9px;
  border-radius: 11px;
  color: rgba(167, 187, 210, 0.8);
  font-size: 11px;
  font-weight: 750;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.terms-index nav a:hover {
  transform: translateX(3px);
  background: rgba(44, 125, 255, 0.1);
  color: var(--cyan-bright);
}

.terms-index nav span { color: var(--cyan); font-size: 8px; font-weight: 1000; }

.terms-index-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: rgba(44, 125, 255, 0.08);
  color: var(--cyan-bright);
  font-size: 11px;
  font-weight: 900;
}

.terms-content { min-width: 0; }
.terms-content-head { margin-bottom: 30px; padding: 0 8px; }
.terms-content-head > p:not(.eyebrow) { max-width: 800px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.terms-content-head h2 { font-size: clamp(42px, 5vw, 68px); }

.term-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 16px;
  padding: 30px;
  overflow: hidden;
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(9, 31, 69, 0.76), rgba(4, 10, 26, 0.88)),
    var(--surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.term-card::before {
  content: "";
  position: absolute;
  top: -80%;
  right: -15%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 125, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.term-card:hover {
  transform: translateY(-3px);
  border-color: rgba(121, 231, 255, 0.34);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28), 0 0 40px rgba(44, 125, 255, 0.06);
}

.term-number {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 231, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(44, 125, 255, 0.24), rgba(128, 103, 255, 0.1));
  color: var(--cyan-bright);
  font-size: 19px;
  font-weight: 1000;
  box-shadow: 0 0 28px rgba(44, 125, 255, 0.1);
}

.term-card > div:last-child { position: relative; z-index: 2; }
.term-label { margin: 0 0 5px; color: var(--cyan); font-size: 9px; font-weight: 1000; letter-spacing: 0.18em; text-transform: uppercase; }

.term-card h3 {
  margin: 0;
  color: var(--ice);
  font-size: clamp(25px, 2.6vw, 34px);
  letter-spacing: -0.035em;
}

.term-card > div:last-child > p:last-of-type {
  max-width: 860px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.term-card-emphasis {
  border-color: rgba(101, 243, 196, 0.26);
  background: linear-gradient(135deg, rgba(8, 58, 73, 0.74), rgba(4, 14, 31, 0.9));
}

.term-card-emphasis .term-number {
  border-color: rgba(101, 243, 196, 0.3);
  background: rgba(101, 243, 196, 0.1);
  color: var(--success);
  box-shadow: 0 0 30px rgba(101, 243, 196, 0.12);
}

.term-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(101, 243, 196, 0.2);
  border-radius: 12px;
  background: rgba(101, 243, 196, 0.06);
  color: #bafbe6;
  font-size: 12px;
  font-weight: 850;
}

.term-action span { color: var(--success); }

.terms-support {
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin: 38px 0 70px;
  padding: 40px;
  border: 1px solid rgba(121, 231, 255, 0.25);
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(12, 55, 120, 0.8), rgba(7, 13, 43, 0.9));
  box-shadow: var(--shadow);
}

.terms-support h2 { font-size: clamp(36px, 4vw, 56px); }
.terms-support p:not(.eyebrow) { max-width: 650px; margin: 14px 0 0; color: var(--muted); line-height: 1.65; }

@keyframes portal-signal {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes portal-aura {
  0%, 100% { opacity: 0.7; transform: scale(0.96) rotate(-2deg); }
  50% { opacity: 1; transform: scale(1.04) rotate(2deg); }
}

@keyframes portal-breathe {
  0%, 100% { opacity: 0.72; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes legal-character-float {
  0%, 100% { transform: translate3d(var(--shift-x, 0), calc(var(--shift-y, 0px) + 7px), 0) scale(0.99); }
  50% { transform: translate3d(var(--shift-x, 0), calc(var(--shift-y, 0px) - 7px), 0) scale(1.01); }
}

@keyframes portal-rune-spin {
  to { transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) rotate(360deg); }
}

@keyframes portal-rune-spin-reverse {
  to { transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) rotate(-360deg); }
}

@keyframes energy-meter {
  0%, 100% { transform: scaleY(0.75); opacity: 0.45; }
  50% { transform: scaleY(1.12); opacity: 1; }
}

@keyframes final-sweep {
  0%, 20% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(130%); }
}

@media (max-width: 1050px) {
  .portal-hero { grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr); }
  .portal-character { right: 0; }
  .float-store { left: -8%; }
  .float-support { right: -8%; }
  .portal-services { grid-template-columns: 1fr 1fr; }
  .service-store { grid-column: 1 / -1; grid-row: auto; min-height: 520px; }
  .service-support, .service-terms, .service-verify { min-height: 240px; }
  .service-verify { grid-column: 1 / -1; }
  .terms-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 24px; }
  .terms-hero { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr); }
}

@media (max-width: 860px) {
  .portal-section,
  .portal-marquee,
  .portal-community,
  .terms-notice,
  .terms-art,
  .terms-layout,
  .portal-footer { content-visibility: auto; }
  .portal-section { contain-intrinsic-size: auto 1700px; }
  .portal-marquee { contain-intrinsic-size: auto 150px; }
  .portal-community { contain-intrinsic-size: auto 850px; }
  .terms-notice { contain-intrinsic-size: auto 260px; }
  .terms-art { contain-intrinsic-size: auto 280px; }
  .terms-layout { contain-intrinsic-size: auto 2800px; }
  .portal-footer { contain-intrinsic-size: auto 220px; }
  .portal-hero,
  .terms-hero { grid-template-columns: minmax(0, 1fr); }
  .portal-hero { padding-top: 70px; }
  .portal-hero-copy,
  .terms-hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
  .portal-hero h1.portal-logo-title { margin: 14px auto 0; }
  .portal-hero-copy .eyebrow,
  .terms-hero-copy .eyebrow,
  .portal-actions,
  .terms-hero-actions,
  .portal-pulse { justify-content: center; }
  .portal-lead,
  .terms-hero-copy > p:not(.eyebrow):not(.terms-date) { margin-right: auto; margin-left: auto; }
  .terms-date { justify-content: center; }
  .portal-hero-visual { width: min(650px, 100%); margin: -30px auto 0; }
  .terms-hero-visual { width: min(520px, 100%); margin: -20px auto 0; }
  .portal-community { grid-template-columns: 1fr; gap: 38px; }
  .community-media { width: min(650px, 100%); margin: 0 auto; }
  .portal-final { grid-template-columns: auto 1fr; }
  .portal-final > .button { grid-column: 2; justify-self: start; }
  .terms-layout { grid-template-columns: 1fr; }
  .terms-index { position: relative; top: 0; }
  .terms-index nav { grid-template-columns: 1fr 1fr; }
  .terms-support { grid-template-columns: 1fr; }
  .terms-support .button { width: fit-content; }
}

@media (max-width: 680px) {
  .portal-hero { min-height: auto; padding: 58px 0 22px; }
  .portal-hero h1,
  .terms-hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .portal-lead { font-size: 16px; }
  .portal-pulse { gap: 10px 15px; }
  .portal-hero-visual { min-height: 580px; }
  .portal-character { right: 50%; height: 565px; transform: translate3d(calc(50% + var(--shift-x, 0px)), var(--shift-y, 0px), 0); }
  .portal-character-aura { right: calc(50% - 220px); width: 440px; height: 500px; }
  .rune-one { right: calc(50% - 255px); width: 510px; height: 510px; }
  .rune-two { right: calc(50% - 170px); width: 340px; height: 340px; }
  .portal-brand-orbit { top: 2%; right: 2%; width: 145px; }
  .portal-float-card { min-width: 176px; padding: 10px; }
  .portal-float-card > span { width: 31px; height: 31px; flex-basis: 31px; }
  .portal-float-card strong { font-size: 10px; }
  .float-store { top: 22%; left: 0; }
  .float-support { top: 52%; right: 0; }
  .float-access { bottom: 4%; left: 1%; }
  .portal-marquee { margin-top: 0; }
  .portal-section { padding: 68px 0; }
  .portal-services { grid-template-columns: 1fr; }
  .service-store,
  .service-verify { grid-column: auto; }
  .service-store { min-height: 560px; padding: 25px; }
  .service-store h3 { font-size: clamp(43px, 12.8vw, 62px); }
  .service-energy { opacity: 0.28; }
  .service-support,
  .service-terms,
  .service-verify { min-height: 235px; }
  .portal-community { padding: 30px 22px 36px; border-radius: 25px; }
  .portal-community h2,
  .portal-heading h2 { font-size: clamp(40px, 12vw, 55px); }
  .community-actions { display: grid; }
  .community-actions .button { width: 100%; }
  .portal-final { grid-template-columns: 1fr; margin-top: 58px; padding: 30px 24px; text-align: left; }
  .portal-final-mark { width: 86px; height: 86px; padding: 5px; border-radius: 23px; }
  .portal-final-mark img { border-radius: 18px; }
  .portal-final > .button { grid-column: auto; width: 100%; }
  .portal-footer nav { justify-self: center; }
  .terms-hero { min-height: auto; padding-top: 60px; }
  .terms-hero-visual { min-height: 520px; }
  .legal-character { width: min(440px, 90vw); }
  .terms-notice { grid-template-columns: 1fr; padding: 25px; text-align: left; }
  .terms-notice-icon { width: 56px; height: 56px; border-radius: 17px; font-size: 27px; }
  .terms-index nav { grid-template-columns: 1fr; }
  .term-card { grid-template-columns: 1fr; gap: 16px; padding: 24px 21px; }
  .term-number { width: 54px; height: 54px; border-radius: 16px; font-size: 15px; }
  .term-card h3 { font-size: 28px; }
  .terms-support { padding: 28px 23px; }
  .terms-support .button { width: 100%; }
}

@media (max-width: 430px) {
  .portal-pulse span:nth-child(3) { display: none; }
  .portal-hero-visual { min-height: 535px; }
  .portal-character { height: 520px; }
  .portal-brand-orbit { width: 125px; }
  .portal-float-card { min-width: 158px; }
  .float-support { top: 56%; }
  .terms-hero-visual { min-height: 470px; }
  .legal-character { width: min(395px, 92vw); }
}

@media (forced-colors: active) {
  .service-panel,
  .portal-community,
  .portal-final,
  .terms-notice,
  .terms-index,
  .term-card,
  .terms-support { border: 1px solid CanvasText; }
}
